Skip to content

Commit 37441e9

Browse files
test(client-runtime): long-resume offline probe runs on a non-primary entry
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent ac3aea0 commit 37441e9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/client-runtime/src/connection/supervisor.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ describe("EnvironmentSupervisor", () => {
10041004
const harness = yield* makeHarness({
10051005
probe: (attempt) => (attempt === 1 ? Effect.never : Effect.void),
10061006
});
1007-
const supervisor = yield* EnvironmentSupervisor.make(TARGET_ENTRY, {
1007+
const supervisor = yield* EnvironmentSupervisor.make(LAN_ENTRY, {
10081008
initiallyDesired: true,
10091009
}).pipe(Effect.provide(harness.dependencies));
10101010

‎packages/client-runtime/src/connection/supervisor.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ export const make = Effect.fn("EnvironmentSupervisor.make")(function* (
283283
const connectivity = yield* Connectivity.Connectivity;
284284
const driver = yield* ConnectionDriver.ConnectionDriver;
285285
const wakeups = yield* ConnectionWakeups.ConnectionWakeups;
286-
// The primary environment served this client, so the device reporting
287-
// offline (often wrongly) never parks it. The report still probes its live
288-
// session, like any other network change.
286+
// The primary environment served this client or runs beside it on loopback,
287+
// so the device reporting offline (often wrongly) never parks it. The report
288+
// still probes its live session, like any other network change.
289289
const targetNetwork = (network: NetworkStatus): NetworkStatus =>
290290
network === "offline" && target._tag === "PrimaryConnectionTarget" ? "unknown" : network;
291291
const initialIntent: SupervisorIntent = {

0 commit comments

Comments
 (0)