|
| 1 | +--- |
| 2 | +title: "Switching flows from the Flows popdown doesn't surface the new flow's stage — a rotation-step click is required" |
| 3 | +lede: "Picking 'Augment from DB' from the Flows popdown flips the pill but (with persisted layout state from a prior flow) the stage keeps showing nothing until the operator clicks the '1 Org Workbench' step bubble. Fresh browser contexts don't reproduce it — persisted tiling/layout state is the differing ingredient." |
| 4 | +date_created: 2026-07-24 |
| 5 | +date_modified: 2026-07-24 |
| 6 | +authors: |
| 7 | + - Michael Staton |
| 8 | +augmented_with: |
| 9 | + - Claude Code on Claude Fable 5 |
| 10 | +semantic_version: 0.0.0.1 |
| 11 | +tags: |
| 12 | + - Issue |
| 13 | + - Usability |
| 14 | + - Augment-It |
| 15 | + - Shell |
| 16 | + - Flows |
| 17 | + - Tiling-Host |
| 18 | +status: Open · Jotted |
| 19 | +--- |
| 20 | + |
| 21 | +# Flow switch doesn't surface the new stage |
| 22 | + |
| 23 | +## The symptom (operator-confirmed, 2026-07-24 evening) |
| 24 | + |
| 25 | +Flows popdown → "Augment from DB": the FLOW pill updates to "1 Org |
| 26 | +Workbench" but the stage shows nothing (or the prior flow's panes). Clicking |
| 27 | +the **rotation-step bubble** ("1 Org Workbench") in the FlowWidget is what |
| 28 | +actually mounts/surfaces the workbench. Discovered during the |
| 29 | +workspace-reset debugging — after the humain-vc reset was fixed, this |
| 30 | +remained the last inch of "doesn't load." |
| 31 | + |
| 32 | +## Why it's slippery |
| 33 | + |
| 34 | +Headless drives against the same stack did NOT reproduce: a fresh browser |
| 35 | +context (no persisted layout) renders the new flow's stage immediately on |
| 36 | +popdown selection. The differing ingredient is **persisted tiling/layout |
| 37 | +state** (`layout.svelte.ts` — pane modes ⇲ ⊟ ▢, per-flow visible-set |
| 38 | +memory) carried in the operator's long-lived tab. The flow switch updates |
| 39 | +`activeFlow`; the stage derivation apparently keeps honoring stale layout |
| 40 | +state until a step-bubble click resets focus to the rotation's first step. |
| 41 | + |
| 42 | +## Direction (jotted) |
| 43 | + |
| 44 | +- On flow switch, the stage should surface the new rotation's step 1 as if |
| 45 | + the operator had clicked its bubble — one code path for both gestures. |
| 46 | +- Audit `layout.svelte.ts`'s persisted keys for flow-scoped state that |
| 47 | + outlives a flow switch (the same class of stale-persisted-state bug as |
| 48 | + today's active-workspace reset and per-workspace org restore — third |
| 49 | + instance today; the pattern is becoming its own theme, see |
| 50 | + [[No-User-Visibility-Into-State-Needs-A-State-Inspector]]). |
0 commit comments