Skip to content

Commit 83b0d27

Browse files
committed
fix: keep Limrun recovery binding app-log only
1 parent 76197dc commit 83b0d27

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

packages/provider-limrun/src/app-log-runtime.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
appStateUse,
3+
appsRuntimeUse,
34
bootTargetUse,
45
narrowDeviceBinding,
56
type PlatformRequestScope,
@@ -154,6 +155,7 @@ test('keeps exact-owner app-log recovery available without a process-local sessi
154155
expect(binding.operations.appLogReattach).toEqual(expect.any(Function));
155156
expect(binding.operations.appState).toBeUndefined();
156157
expect(binding.operations.ensureReady).toBeUndefined();
158+
expect(binding.operations.listApps).toBeUndefined();
157159
expect(binding.facts.operations.appLogInspect).toMatchObject({
158160
available: false,
159161
reason: 'unsupported-provider-mode',
@@ -168,8 +170,13 @@ test('keeps exact-owner app-log recovery available without a process-local sessi
168170
available: false,
169171
reason: 'unsupported-provider-mode',
170172
});
173+
expect(binding.facts.operations.listApps).toMatchObject({
174+
available: false,
175+
reason: 'unsupported-provider-mode',
176+
});
171177
expect(() => narrowDeviceBinding(binding, appStateUse)).toThrow();
172178
expect(() => narrowDeviceBinding(binding, bootTargetUse)).toThrow();
179+
expect(() => narrowDeviceBinding(binding, appsRuntimeUse)).toThrow();
173180
await expect(binding.operations.appLogReattach?.({ envelope })).resolves.toEqual({
174181
status: 'missing',
175182
});

packages/provider-limrun/src/app-log-runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ function recoveryFacts(device: DeviceInfo): RuntimeFacts<PlatformRuntimeOperatio
321321
ensureReady: liveSessionUnavailable,
322322
bootTarget: liveSessionUnavailable,
323323
bootTargetHeadless: liveSessionUnavailable,
324+
listApps: liveSessionUnavailable,
324325
},
325326
});
326327
}

0 commit comments

Comments
 (0)