The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 07:15 UTC
fix(server): Antigravity native slash commands reach the composer after a restart (#38955)
Julius Marminge committed
Nov 18, 2026 at 21:52 UTC
91f166adf39ca29ef012e123a4362bf707e8e101
2 files changed
+23
-1
apps/server/src/provider/AntigravityProvider.test.ts
+14
@@ -386,6 +386,20 @@ it.layer(layerTest)("Antigravity provider snapshots", (it) => {
386
}),
387
);
388
389
+ it.effect("shows a thread session's native commands in that workspace's snapshot", () =>
390
+ Effect.gen(function* () {
391
+ const harness = yield* makeHarness();
392
+ yield* harness.initialize;
393
+ yield* harness.provider.snapshotForCwd("/workspace", []);
394
+ // The thread adapter reports the cwd on session start; command updates arrive without one.
395
+ yield* harness.provider.onSessionStarted(started, "/workspace");
396
+ yield* harness.provider.onAvailableCommands(commands);
397
+ expect((yield* harness.provider.snapshotForCwd("/workspace")).slashCommands).toEqual(
398
+ expectedCommands,
399
+ );
400
+ }),
401
+ );
402
+
403
it.effect("clears all account metadata on sign-out and authentication failure", () =>
404
Effect.gen(function* () {
405
const auth = { type: "gemini-api-key", label: "Gemini API key" };
apps/server/src/provider/AntigravityProvider.ts
+9
-1
@@ -456,7 +456,15 @@ export const makeAntigravityProvider = Effect.fn("makeAntigravityProvider")(func
456
},
457
].slice(-MAX_WORKSPACE_SNAPSHOTS),
458
}
459
- : {}),
459
+ : state.draft.workspaceSnapshots
460
+ ? // Thread sessions report commands without a cwd; folder entries seeded on start follow.
461
+ {
462
+ workspaceSnapshots: state.draft.workspaceSnapshots.map((entry) => ({
463
+ ...entry,
464
+ slashCommands,
465
+ })),
466
+ }
467
+ : {}),
468
},
469
};
470
});