Commit 6fdc73d
fix(workspace, workspaces): the active workspace survives service restarts — no more silent resets to humain-vc
Every workspace-service container rebuild re-ran the boot fallback:
initial_active_id empty → slugs[0] alphabetical → humain-vc. Every
surface then followed workspace.active into the wrong (empty) tenant
slice — "no organizations are loading" / "Augment from DB doesn't load"
were this, twice today, not the flow or the remotes (proven by headless
browser drives: the workbench mounts clean; it was rendering humain-vc's
empty world).
The operator's pick now persists to the same durable volume as
sessions (ACTIVE_STORE_PATH, /data/active-workspace.json), written
through on every switch and restored on boot. Precedence: env pin
(ACTIVE_CLIENT_ID) > persisted pick > alphabetical first. Unset path
(non-docker dev) degrades to the old in-memory behavior. Seeded to
reach-edu; boot log confirms resolved_active_id reach-edu after a
rebuild.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UvYzx7vDWeafnkAi2nEQeb1 parent c6fba08 commit 6fdc73d
2 files changed
Lines changed: 40 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
110 | 138 | | |
111 | 139 | | |
112 | 140 | | |
113 | | - | |
114 | | - | |
| 141 | + | |
| 142 | + | |
115 | 143 | | |
116 | 144 | | |
117 | 145 | | |
| |||
124 | 152 | | |
125 | 153 | | |
126 | 154 | | |
| 155 | + | |
127 | 156 | | |
128 | 157 | | |
| 158 | + | |
| 159 | + | |
129 | 160 | | |
130 | 161 | | |
131 | 162 | | |
| |||
198 | 229 | | |
199 | 230 | | |
200 | 231 | | |
| 232 | + | |
201 | 233 | | |
202 | 234 | | |
203 | 235 | | |
| |||
0 commit comments