Commit 082aa3e
fix: [AI-7520] first-run gate keys off sync.status; scan-gate fallback; port cleanup; marker
Round-3 review (rizvi):
- BLOCKING (app.tsx): the first-run onboarding gate keyed off `ready()` (plugin-host
startup only), which can settle before sync loads providers — transiently making a
returning, connected user look un-onboarded and re-showing the welcome picker + scan
gate. Now also require `sync.status === "complete"` (the provider-load signal) before
deciding, so a returning user never sees the first-run flow.
- scan gate (app.tsx): if the prompt ref isn't mounted, `onChoose` no longer silently
drops the Yes/No — it surfaces a toast telling the user how to continue.
- port cleanup (altimate.ts): the loopback callback server is now stopped on the
pending-flow TIMEOUT path too (not only in callback().finally), so a dismissed
sign-in can't leave port 7317 bound for the process lifetime.
- Marker Guard: wrap the fork-added `writeJsonAtomic` in `util/filesystem.ts`
(introduced by the merged #1046 into an upstream-shared file) in altimate_change
markers so the guard passes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6f42289 commit 082aa3e
3 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| 296 | + | |
295 | 297 | | |
296 | 298 | | |
297 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
566 | 572 | | |
567 | 573 | | |
568 | 574 | | |
| |||
592 | 598 | | |
593 | 599 | | |
594 | 600 | | |
595 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
596 | 611 | | |
597 | 612 | | |
598 | 613 | | |
| |||
0 commit comments