Repository navigation
feat: model choice from the UI reaches the seat — and changing it restarts the seat - #1568
Merged
Merged
Conversation
…tarts the seat
The other half of Sam's ask ("no way to … config their model from UI").
The on-my-computer hire form gains a Model select (adapter default / opus /
sonnet / haiku — aliases, not version-pinned ids, because the seat runs on
the user's own CLI install whose model ids move). The choice rides the
install as config.runtime.model, the daemon work list already serves it, and
the supervisor now writes it into the token record's environment — the exact
field the claude adapter turns into --model on every spawn AND on the
session-recovery retry path.
Live edits propagate: on each tick the supervisor compares the served model
against the record; a difference updates the record and restarts the seat
through the exit event (the D6 path — no second spawner). A row with no
declared model never strips a hand-set environment.
5 new tests (mint carries environment.model, no-model invents nothing,
change→update+restart, hand-set env preserved, UI payload shape).
cli 427 green, frontend 616 green. cli 0.1.32 → 0.1.33.
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EtwYLMJAYuZ3grLQoXWMWT
…n guard) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EtwYLMJAYuZ3grLQoXWMWT
…y into feat/model-from-ui
samxu01
pushed a commit
that referenced
this pull request
Sep 6, 2026
Both #1561 and #1568 bumped cli/package.json (0.1.33 vs 0.1.34); take main and bump once more. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01JavWvyVL478UfEhJjcfMgX
lilyshen0722
added a commit
that referenced
this pull request
Sep 6, 2026
…1570) * feat(cli): commonly daemon install — the login service (ADR-026 D1) `commonly daemon install` registers the resident daemon as a login service: a launchd LaunchAgent on macOS (KeepAlive — launchd restarts a dead daemon), a systemd user unit on Linux (Restart=always). Both run the exact interpreter + CLI entry that executed the install, resolved at install time — a PATH lookup at boot would race version managers and silently run a different install than the one the user tested. The unit's PATH carries homebrew for the CHILDREN: seats spawn the user's claude/codex by name, and launchd's default PATH would kill every seat at adapter detection while the daemon itself looked healthy. Install requires a registered daemon credential (a service without one just crash-loops at boot). `daemon uninstall` unloads and removes; a failing launchctl load surfaces instead of reporting success. 8 new tests on the generated units and both flows, side effects injected. cli 0.1.34 → 0.1.35 (0.1.33 is claimed by open #1561, 0.1.34 by #1568). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EtwYLMJAYuZ3grLQoXWMWT * chore(cli): 0.1.36 — main took 0.1.35 while this was in flight Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EtwYLMJAYuZ3grLQoXWMWT --------- Co-authored-by: Claude Fable 5 <[email protected]>
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 4 — the second half of the original ask: hire an agent onto your computer AND choose what model it runs, from the UI.
What changed
UI (machine mode only): a Model select — Adapter default / Opus / Sonnet / Haiku. Aliases rather than version-pinned ids on purpose: the seat runs on the user's own CLI install, whose concrete model ids move under it; the aliases stay valid across releases. The choice rides the install as
config.runtime.model. Default sends nothing.Daemon: the work list already serves
config.runtime(#1562), and the supervisor now writesenvironment: { model }into the token record it provisions — the exact fieldagent runhands the claude adapter, which turns it into--modelon every spawn and on the session-recovery retry path (the drifting-copy trap the adapter's own tests pin).Live reconfiguration: each tick compares the served model against the local record. A difference updates the record and restarts the seat through the exit event — the same D6 single-spawner path as crash recovery, so no code path can produce two runners. A row with no declared model never touches a hand-set environment (operator seats stay sovereign).
Known residue: the codex adapter has no model-pin flag yet (claude-only for now), and there's no UI to edit the model on an existing installation — the daemon side already handles changes, so that's a manage-surface slice.
Verification
5 new tests across both legs; cli 427 green + lint clean, frontend 616 green + 0 eslint errors. cli 0.1.32 → 0.1.33.
🤖 Generated with Claude Code
https://claude.ai/code/session_01EtwYLMJAYuZ3grLQoXWMWT