feat(web): restart the agent session from cmd+k to load new skills and plugins #14542
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/14542/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
juliusmarminge added labelsmacroscope-review
- apps/server/src/provider/Layers/ProviderRegistry.ts line 901Resolvedby t3dotgg(GitHub profile, opens in a new tab)@@ -857,5 +892,9 @@857892 next.set(instance, new Set(current).add(input.cwd));858893 return [true, next] as const;859894 });860- if (!claimed) return yield* Ref.get(providersRef);861- return yield* instance.snapshotForCwd(input.cwd).pipe(895+ // A fresh scan never joins a running one, which may predate the change.896+ if (!claimed && !input.fresh) return yield* Ref.get(providersRef);897+ // Fresh scans also re-read the machine snapshot: Claude's plugin898+ // commands come from it, not from the cwd scan.899+ const refreshMachineSnapshot = input.fresh900+ ? (instance.invalidateCaches ?? Effect.void).pipe(apps/server/src/provider/Layers/ProviderRegistry.ts line 914OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -862,10 +898,17 @@898+ // commands come from it, not from the cwd scan.899+ const refreshMachineSnapshot = input.fresh900+ ? (instance.invalidateCaches ?? Effect.void).pipe(901+ Effect.andThen(refreshInstance(input.instanceId)),902+ )903+ : Effect.void;904+ return yield* refreshMachineSnapshot.pipe(905+ Effect.andThen(instance.snapshotForCwd(input.cwd)),862906 Effect.flatMap((scopedSnapshot) =>863907 scopedSnapshot.status === "error"864908 ? Ref.get(providersRef)865909 : instanceRegistry.getInstance(input.instanceId).pipe(866910 Effect.flatMap((currentInstance) => {867911 if (currentInstance !== instance) return Ref.get(providersRef);868- return Ref.modify(providersRef, (currentProviders) => {869- const nextProviders = currentProviders.map((candidate) =>870- candidate.instanceId === input.instanceId &&871- !candidate.workspaceSnapshots?.some((s) => s.cwd === input.cwd)912+ return updateProviders((currentProviders) =>913+ currentProviders.map((candidate) =>914+ candidate.instanceId === input.instanceId && !hasSnapshot(candidate)
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline:
408ff8a· PR result:db5e0bd· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.