Commit 7c66dad
committed
fix(shell): pinned instances default to Build Corpora, not Record Collector's flow
Real bug on the live deploy, not hypothetical: every fresh sign-in at
augment.didi.sh landed on FLOWS[0] ('csvAugmentation' — Record
Collector's flow), whose remotes (recordCollector, recordDbResolver,
...) are deliberately unreachable on a humain-vc-pinned instance —
showing "remote exposes no mount function" as the very first thing a
new user saw after successfully signing in.
readStored() resolves at flows.svelte.ts's module-init time, before
workspace.list has ever resolved, so it can only ever fall back to
FLOWS[0] for a brand-new session — there was no way for it to know the
instance is pinned to humain-vc. Added activeFlow.applyPinnedDefault(),
called from a new $effect in App.svelte once workspace.pinned resolves
true; only overrides when the user has never made an explicit flow
choice (no localStorage key at all), and doesn't itself persist to
localStorage, so it stays a soft default rather than overriding a real
operator preference.
Files changed:
- shell/src/flows.svelte.ts
- shell/src/App.svelte1 parent 6792830 commit 7c66dad
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
74 | 86 | | |
75 | 87 | | |
76 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
98 | 118 | | |
99 | 119 | | |
100 | 120 | | |
0 commit comments