Repository navigation
app: Name what already-open agents pick up on the done step - #1881
Conversation
Hooks load when an agent starts, so the line says that agents already open start sending sessions to the workspace (or recording on the machine, in local mode) after a restart. It is hidden when setup turned on no recording.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
PR Summary by QodoClarify when already-open agents begin recording after setup
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper |
|
@CodeRabbit approve |
✅ Action performedComments resolved and changes approved. |
Closes #1853 — AI-4262 Stacked on #1881 (same done-step row); retargets to `main` once 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.Unit` after the rebase: 4,245 passed, 10 skipped, 0 failed. Headless renders of the real Done view: | | Workspace | Local | |---|---|---| | Before | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/before-cloud.png" width="340"> | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/before-local.png" width="340"> | | Preparing | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/after-cloud-preparing.png" width="340"> | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/after-local-preparing.png" width="340"> | | Ready | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/after-cloud-ready.png" width="340"> | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/after-local-ready.png" width="340"> | | Report failed | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/after-cloud-unreported.png" width="340"> | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/after-local-unreported.png" width="340"> | | Daemon not running | <img src="https://raw.githubusercontent.com/kurrent-io/kcap-cli/9fe9ce4f91025c497885a36ce7219fcf9b303d3e/1853/after-cloud-daemon-not-running.png" width="340"> | |
|
@CodeRabbit approve |
✅ Action performedComments resolved. CodeRabbit has already approved this PR, so no new approval was submitted. |
Closes #1854 — AI-4263
What & why
The done step said "Agents you already have open pick this up when they next start", without saying what is picked up. It now gives the reason and the action as two sentences: "Agents load new hooks at startup. Restart any agent you already have open." Workspace and local setups get the same line.
Where to look
The line is hidden when setup turned on no recording, or when the shell can't find kcap (that case has its own note), since there is nothing for an agent to pick up. The header and import copy are #1831's.
Verification
DoneStepViewModelTests9/9,OnboardingAccessibilityTests1/1,WizardSimpleStepsTests22/22 passed. Headless renders:Summary by CodeRabbit
New Features
Bug Fixes