Repository navigation
feat(v2): the where-step gains "On my computer" — pick a machine, watch the agent come up - #1564
Merged
Merged
Conversation
…ch the agent come up ADR-026 Phase 2, slice 3. When the user has daemon-registered machines (GET /api/machines), the BYO where-step offers a third mode beside hosted and bring-your-own: pick a computer, and submit installs the agent (runtimeType 'wrapper', persona carried through like the other modes) then files a placement request (POST /api/agent-binding/request) — a directive, never a binding; the daemon on that machine performs the adopt CAS, mints the credential server-side, and starts the agent. Nothing secret renders in the browser on this path either. The result panel replaces "now run this command" with watching: it polls the machine list until the daemon's heartbeat reports the agent running, and after ~2 minutes says honestly to check `commonly daemon run` on that machine. Users with no registered machines see the page exactly as before. 3 new tests: card gated on machines existing, wrapper-install + request payloads, honest waiting state. Full frontend suite 89/89 green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EtwYLMJAYuZ3grLQoXWMWT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ADR-026 Phase 2, slice 3 — the UI end of the daemon loop. With #1562 (server work surface) and #1563 (
commonly daemon run), this closes the arc Sam named: adding an agent to your own computer is now a UI act. Merge order: #1562 → #1563 → this (it degrades gracefully before then — the card only renders whenGET /api/machinesreturns machines).What changed
runtimeType: 'wrapper', persona carried through exactly like the other two modes) and files the placement request (POST /api/agent-binding/request) — a directive, never a binding: the daemon on that machine adopts via the D3 CAS, mints the runtime credential server-side, and starts the agent. No secret ever renders in the browser on this path.running, then flips live. After ~2 minutes it says honestly: checkcommonly daemon runon that machine — the agent starts the moment it's back.Verification
3 new tests (card gated on machines existing; wrapper-install + request payloads asserted; waiting-not-live honesty) — full frontend suite 89/89, eslint 0 errors.
Known residue, deliberately out of scope: model choice from the UI needs the runtime config to flow into the daemon's token record environment (next slice), and machine registration is still CLI-side (
commonly daemon register) untildaemon install(D1) ships.🤖 Generated with Claude Code
https://claude.ai/code/session_01EtwYLMJAYuZ3grLQoXWMWT