fix: isolate active workstream state per session

This commit is contained in:
LakshmanTurlapati
2026-04-02 04:13:52 -05:00
parent 2f7f317c24
commit 5ce8183928
7 changed files with 235 additions and 16 deletions

View File

@@ -321,7 +321,7 @@ Workstreams let you work on multiple milestone areas concurrently without state
### How It Works
Each workstream maintains its own `.planning/` directory subtree. When you switch workstreams, GSD swaps the active planning context so that `/gsd:progress`, `/gsd:discuss-phase`, `/gsd:plan-phase`, and other commands operate on that workstream's state.
Each workstream maintains its own `.planning/` directory subtree. When you switch workstreams, GSD swaps the active planning context so that `/gsd:progress`, `/gsd:discuss-phase`, `/gsd:plan-phase`, and other commands operate on that workstream's state. Active context is session-scoped when the runtime exposes a stable session identifier, which prevents one terminal or AI instance from repointing another instance's `STATE.md`.
This is lighter weight than `/gsd:new-workspace` (which creates separate repo worktrees). Workstreams share the same codebase and git history but isolate planning artifacts.