The acp box's log says at its top which model, effort and mode the agent runs on #94
No reviewers
Labels
No labels
No milestone
No project
No assignees
3 participants
Due date
No due date set.
Dependencies
No dependencies set
Reference
mikluko/rexcity!94
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/rexcity-49in3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The acp box's log, and so its Rex pane, now says which model, effort and mode the agent runs on: one dim line after the session's start, e.g.
17:42:05 · model claude-opus-5-5 · effort high · mode bypassPermissions.session/new(alsosession/loadandsession/resume): config optionsmodel,effort,mode(byid, else bycategory:model,thought_level,mode), read as the adapter reports them, with no lookup and no workaround for claudeacp-9lf.modes.currentModeIdgives the mode when no option does.config_option_updateandcurrent_mode_updatewrite the line again with the new values, and nothing when the line is the same. A mode change used to write· mode X; with only a mode known it still does.--model/--effortargv, and forgoosefromGOOSE_PROVIDER(shown asprovider) andGOOSE_MODEL. I made this per field, not only when the reply carries none of them, so a reply withmodesalone still gets the model gc asked for. Easy to narrow if you want the stricter reading.gc started a sessionentry rather than the header itself: the header is written at adapter start, before the adapter has said anything.·entry is already a dim one-line entry. A pane test pins it.session/newreplies carrymodes, so the log and pane goldens each gain a· mode …line (8 files, one line each).fastdoes not.Verified:
go vet ./...andgo test ./... -racepass; new tests in the renderer, settings, box (argv reaches the renderer; reply wins over argv) and pane; changelog check (changelog@v2, offline) printsvalid=true. README's log section and a fragment (.changelog/acp-settings-line.md) are included.Bead: rexcity-49in3
In a city where Workers run Sonnet, Reviewers Opus and the Goose trial Kimi, an acp agent's pane did not say which one it was showing: the header names the adapter and its pid, nothing of the model. The renderer now follows the requests that open a session (session/new, load, resume) and, on the adapter's reply, writes one dim entry, "· model M · effort E · mode D", from the reply's config options (by id, else by category) and modes.currentModeId. The values are what the adapter reports, with no lookup of ids: claudeacp-9lf changes what it reports, and this does not wait for it. A config_option_update or current_mode_update writes the line again with the new values, and nothing when the line would be the same. The mode change entry is this line now; with only a mode known it reads as before ("· mode plan"). A field the reply does not carry is taken from what gc asked: --model and --effort of the adapter's argv, and for goose GOOSE_PROVIDER and GOOSE_MODEL from the env. This is per field, not only when the reply carries none: a reply with modes alone still gets the model gc asked for. The line follows the session's start entry, not the header, because the header is written before the adapter has said anything. The pane needed no change: a "· " entry is already one dim line there. The recorded streams' goldens gain the mode line their session/new replies carry. Validation: go vet and go test ./... -race pass; renderer, settings, box (argv wired to the renderer, reply over argv) and pane tests added; the changelog check prints valid=true. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>Review of
789a5e1289for rexcity-49in3. Checks of the head: success.Verdict
pass
Findings
modesalone still shows the model gc asked for. This is a superset of the bead's reading, and it never hides what the adapter reported, so it does not block. If the stricter reading is wanted,showSettingswould user.defaultsonly whenr.reportedis empty.--model --effort high(a flag with no value, followed by another flag) takes--effortas the model. gc always passes a value, so this is theoretical.Verified
2ff3907): fast-forward, the branch is cut from main's tip;mergeable.rexcity acp -- claudeacp --permission-mode dontAsk --effort high --model claude-sonnet-5-5 --settings …, andb.argsis the argv after the adapter.startSettingsruns in openLog's deferred function, before the renderer's goroutine starts, and so reads the finalb.rwith no race. The Goose command isrexcity acp -- goose acp, and the env fallback keys on the adapter's base name.config_option_update(the ACP name, withconfigOptions) andcurrent_mode_updatewrite the line again only when it changes. The old· mode Xoutput stays the same when only the mode is known. The tests cover each of these, and the pane test pins the line as dim under the header. The eight goldens each gain one line, as the recordedmodesreplies predict..changelog/acp-settings-line.md(Added, Changed; level-3 headings only) are present.go vet ./...,GOOS=linux GOARCH=amd64 go vet ./...,go test ./...(all ok, packs included), andgo test -race -count=1 ./internal/acpbox/: all pass.changelogbuilt from mikluko/changelog tag v2 (964604a), run as the validate action runs it (-base=origin/main -warn=missing-fragment):valid=true.789a5e12891f6e96b7e3New commits pushed, approval review dismissed automatically according to repository settings
Review of
1f6e96b7e3for rexcity-49in3. Checks of the head: success.Verdict
pass
Findings
showSettings): the fallback to--model/--effort(and Goose's env) is per field, where the bead says "when the reply carries none of them". The description says so and offers to narrow it; it is a superset of the ask, and it never covers up what the adapter reports (a reporteddefaultor alias is shown as is, as the bead wants). Not blocking.--modelfollowed directly by another flag (--model --effort high) takes the flag as the model. gc does not build argv that way. Not blocking.Verified
0104764(rexcity#93), and merging it into main is a fast-forward. The three-dot diff touches only this feature and reverts nothing of #93. #93's control-character handling still applies to the new line:settings.line()cuts each value withclipTo, which maps control characters to their pictures and folds newlines, just as the old· mode Xentry did withclip.settings.go(line, or, withOptions by id then category, startSettings from argv, and the Goose env), the renderer's session tracking (session/new,load,resumeby id; an error reply writes nothing; a reply is read once),config_option_updateandcurrent_mode_updaterewriting the line only when it changes, a new session always writing it, and the box settingdefaultsinopenLog's defer, after the final renderer is in place and before the queue runs.pane_test.gopins it); (2) later updates write it again; (3) the argv and Goose env fallback is there; it renders what the adapter reports, with no workaround for claudeacp-9lf. Tests cover the renderer, settings, box (argv reaches the renderer, and the reply wins over argv) and pane, and the 8 goldens gain one· mode …line each. The README's log section is updated, the fragment.changelog/acp-settings-line.mdis present, and the PR has a description.go vet ./...andGOOS=darwin GOARCH=arm64 go vet ./...are clean, andgo test -race ./...passes in all packages. The changelog check, built from sarak.sh/mikluko/changelog v2.1.0 (thev2tag), printsvalid=true.