Repository navigation
app: Register the CLI before setup opens the dashboard - #1882
nortonandreev merged 2 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoRegister the CLI before opening the dashboard from setup
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
6b3f180 to
6010308
Compare
The dashboard asks for an install until the server has the cli-setup report, which the app used to send only after setup closed. The Done step now waits for the daemon and sends the report before it offers the link.
Ready holds only for the server that took the report, so going back to sign in elsewhere prepares the new server, and a report still in flight for the old one is discarded.
6010308 to
c042848
Compare
|
@CodeRabbit approve |
✅ Action performedComments resolved and changes approved. |
d2f4168
into
norton/ai-4263-done-step-restart-line
Closes #1853 — AI-4262
Stacked on #1881 (same done-step row); retargets to
mainonce that merges.What & why
Open your workspace opened the dashboard before the server had the cli-setup report, which the app sent only after setup closed, so the website offered a CLI download the app already includes. The Done step now brings the daemon up and sends the report first, showing "Getting your workspace ready…" until it lands. If either fails, a warning card says why and offers Try again. The report is bounded at 30 s, so a silent server never leaves a spinner.
Where to look
Ready is never revoked once reached. A failed daemon run is repeated only on Try again, so a declined service takeover is not asked again. No website change is needed: kcap-server clears its install-cli step on
POST /api/users/me/cli-setup.Verification
Full
Capacitor.App.Tests.Unitafter the rebase: 4,245 passed, 10 skipped, 0 failed. Headless renders of the real Done view: