acp pane: calls that start too early, failure reasons, thoughts, the prompt line, and colours (items 1, 5-8 of the user's brief) #85

Merged
city-root merged 2 commits from worker/rexcity-7sfmr into main 2026-11-12 17:42:12 +00:00
Contributor

Rebased onto main d252358 (#94, the settings line); head c137d59. One conflict, README.md, in the paragraph on the log's entries: kept main's #94 wording and this change's tool-call paragraph. Nothing dropped: main carries no part of this change. go build, go vet, gofmt, go test ./... and the v2 changelog check pass on the result.

Items 1, 5, 6, 7 and 8 of the user's brief of 2026-11-12 (items 2–4, terminal handling, are the other bead's: checkSize, the redraw, stdin and the follower's start are untouched).

What changed

Item Change
1 render.go: a call is started only by its own status past pending, by text or another entry, by the turn's end, or by the settle timer. A usage update or a sibling's end no longer starts it, and a call's end starts no sibling. A call said to be in_progress is timed from that message. pane.go callEnd: a registered call with no input is described from the end line's label, which also repairs logs already written.
5 A failed shell call's reason is exit 2 — <next non-empty line> (failReason).
6 ○ is kept in colour mode.
7 The prompt line shows the first line after gc's [rig] agent • time header.
8 Colours by state in the 16 ANSI colours, as the bead lists them; NO_COLOR still goes through cfg.Color. README has the table.

Choices the bead left open, or that its table leaves open: on a ✓ line the table says "green mark, dim rest" and also "tool name cyan, input default"; I took the more specific rows (name cyan, input default) and made the count and the duration dim. The prompt line is bold blue in full (▶ gc and its text); its (+N lines) stays dim. Only ? permission… entries are bold magenta, not every ? entry.

Before / after (pane, plain, 100 columns)

Log: ~/.rexcity/39545500/roles__worker-gcg-session-81c764ce….log (read only), first 45 lines, rexcity acp follow --pid 999999 --width 100 --color never, main's binary vs this branch's.

Item 1 (labels and input, repaired from a log written before the fix) and item 7 (prompt line):

before                                                          after
12:25:47 ▶ gc  [root] roles.worker • 2026-11-12T12:25:44 (+9)   12:25:47 ▶ gc  You are a Worker of the city itself. Before anything else, load the skil…  (+7 lines)
  ✓ Skill    worker  <1s                                          ✓ Skill    worker  <1s
  ✓ Skill  <1s                                                    ✓ Skill    roles.city  <1s
  ✓ Skill  <1s                                                    ✓ Skill    roles.contact  <1s

Item 5 applies to logs written from now on (the old log has only Exit code 1, which the pane shows as it was): TestAShellCallThatExitedSaysTheStatusAndTheLineAfterIt — log line ✗ Bash: false #1 (<1s) — exit 2 — grep: x: No such file, where it was — Exit code 2.

Item 6: 17:42:05 Weighing it. becomes 17:42:05 ○ Weighing it. (dim italics, in colour mode).

Item 8, testdata/pane/demo_bytes.golden (every byte the pane wrote, ␛ for ESC):

before  ␛[2m  ✓ Read     /work/bead.md (+1 line)  <1s␛[0m
after   ␛[32m✓␛[0m ␛[36mRead␛[0m     /work/bead.md␛[2m (+1 line)␛[0m  ␛[2m<1s␛[0m
before  ␛[2m  ▷ Bash     golangci-lint run ./... --timeout 5m  running 2s␛[0m
after   ␛[33m▷␛[0m ␛[36mBash␛[0m     golangci-lint run ./... --timeout 5m  ␛[33mrunning 2s␛[0m

Verification

  • go vet and go test ./cmd/... ./internal/... ./packs/... pass.
  • The changelog check (mikluko/changelog v2, from the module cache, as CI's validate@v2 runs it) says valid=true.
  • Not done: a Rex pane resized while it runs (that is item 2's check), and the live colours in Rex's theme: no Rex pane in this session.

For the reviewer

  • The recorded overlap stream (a real claudeacp recording with three overlapping calls and no in_progress) changes in both goldens: the long call is no longer started by its siblings' messages, so in the replay, which has no settle timer, it starts at its end. In the city the box's timer starts it after 2 s of quiet. A call that runs side by side with others now therefore shows its ▷ start in the log a little later than before.
  • Outside this repository, as the bead says: claudeacp must send in_progress (rexcity already stamps from it), and Rex must set TIOCSWINSZ (item 2).

Bead: rexcity-7sfmr

Round 1 (review of 78d22c5)

  • README: the paragraph after the one this change edited now gives the same start rule (own status past pending, agent text or another entry, the turn's end or 2 s of quiet; not a usage update or another call's end), the stamp (first sight, or the in_progress message), and says the log's times are not always in order.
  • startCalls comment: names the writes it precedes and no longer claims the log keeps time order.
  • This description: the changelog check is v2, as CI runs it.

Round 2 (review of 1c02312)

Rework round 2 (review 285 of 1c02312): a rebase only. The head did not merge onto main 0104764 (#93): README.md conflicted. Resolved by keeping #93's new bullet ("Nothing else the log renders carries a control character either…"), then this change's version of the pane paragraph (#93 left that paragraph as it was at 2ff3907, so nothing of either side is lost). No Go file conflicted. Nothing of this change is already on main, so nothing was dropped.

Checked on the rebased head: go vet (linux and GOOS=darwin), gofmt, go test ./..., and the v2 changelog check (valid=true). Not run: a resized Rex pane.

Rebased onto main d252358 (#94, the settings line); head c137d59. One conflict, README.md, in the paragraph on the log's entries: kept main's #94 wording and this change's tool-call paragraph. Nothing dropped: main carries no part of this change. go build, go vet, gofmt, go test ./... and the v2 changelog check pass on the result. Items 1, 5, 6, 7 and 8 of the user's brief of 2026-11-12 (items 2–4, terminal handling, are the other bead's: `checkSize`, the redraw, stdin and the follower's start are untouched). ## What changed | Item | Change | |---|---| | 1 | `render.go`: a call is started only by its own status past pending, by text or another entry, by the turn's end, or by the settle timer. A usage update or a sibling's end no longer starts it, and a call's end starts no sibling. A call said to be `in_progress` is timed from that message. `pane.go` `callEnd`: a registered call with no input is described from the end line's label, which also repairs logs already written. | | 5 | A failed shell call's reason is `exit 2 — <next non-empty line>` (`failReason`). | | 6 | `○` is kept in colour mode. | | 7 | The prompt line shows the first line after gc's `[rig] agent • time` header. | | 8 | Colours by state in the 16 ANSI colours, as the bead lists them; `NO_COLOR` still goes through `cfg.Color`. README has the table. | Choices the bead left open, or that its table leaves open: on a `✓` line the table says "green mark, dim rest" and also "tool name cyan, input default"; I took the more specific rows (name cyan, input default) and made the count and the duration dim. The prompt line is bold blue in full (`▶ gc` and its text); its `(+N lines)` stays dim. Only `? permission…` entries are bold magenta, not every `?` entry. ## Before / after (pane, plain, 100 columns) Log: `~/.rexcity/39545500/roles__worker-gcg-session-81c764ce….log` (read only), first 45 lines, `rexcity acp follow --pid 999999 --width 100 --color never`, main's binary vs this branch's. Item 1 (labels and input, repaired from a log written before the fix) and item 7 (prompt line): ``` before after 12:25:47 ▶ gc [root] roles.worker • 2026-11-12T12:25:44 (+9) 12:25:47 ▶ gc You are a Worker of the city itself. Before anything else, load the skil… (+7 lines) ✓ Skill worker <1s ✓ Skill worker <1s ✓ Skill <1s ✓ Skill roles.city <1s ✓ Skill <1s ✓ Skill roles.contact <1s ``` Item 5 applies to logs written from now on (the old log has only `Exit code 1`, which the pane shows as it was): `TestAShellCallThatExitedSaysTheStatusAndTheLineAfterIt` — log line `✗ Bash: false #1 (<1s) — exit 2 — grep: x: No such file`, where it was `— Exit code 2`. Item 6: `17:42:05 Weighing it.` becomes `17:42:05 ○ Weighing it.` (dim italics, in colour mode). Item 8, `testdata/pane/demo_bytes.golden` (every byte the pane wrote, `␛` for ESC): ``` before ␛[2m ✓ Read /work/bead.md (+1 line) <1s␛[0m after ␛[32m✓␛[0m ␛[36mRead␛[0m /work/bead.md␛[2m (+1 line)␛[0m ␛[2m<1s␛[0m before ␛[2m ▷ Bash golangci-lint run ./... --timeout 5m running 2s␛[0m after ␛[33m▷␛[0m ␛[36mBash␛[0m golangci-lint run ./... --timeout 5m ␛[33mrunning 2s␛[0m ``` ## Verification - `go vet` and `go test ./cmd/... ./internal/... ./packs/...` pass. - The changelog check (mikluko/changelog v2, from the module cache, as CI's `validate@v2` runs it) says `valid=true`. - Not done: a Rex pane resized while it runs (that is item 2's check), and the live colours in Rex's theme: no Rex pane in this session. ## For the reviewer - The recorded `overlap` stream (a real claudeacp recording with three overlapping calls and no `in_progress`) changes in both goldens: the long call is no longer started by its siblings' messages, so in the replay, which has no settle timer, it starts at its end. In the city the box's timer starts it after 2 s of quiet. A call that runs side by side with others now therefore shows its `▷` start in the log a little later than before. - Outside this repository, as the bead says: claudeacp must send `in_progress` (`rexcity` already stamps from it), and Rex must set TIOCSWINSZ (item 2). Bead: rexcity-7sfmr ### Round 1 (review of 78d22c5) - README: the paragraph after the one this change edited now gives the same start rule (own status past pending, agent text or another entry, the turn's end or 2 s of quiet; not a usage update or another call's end), the stamp (first sight, or the `in_progress` message), and says the log's times are not always in order. - `startCalls` comment: names the writes it precedes and no longer claims the log keeps time order. - This description: the changelog check is v2, as CI runs it. ### Round 2 (review of 1c02312) Rework round 2 (review 285 of 1c02312): a rebase only. The head did not merge onto main 0104764 (#93): README.md conflicted. Resolved by keeping #93's new bullet ("Nothing else the log renders carries a control character either…"), then this change's version of the pane paragraph (#93 left that paragraph as it was at 2ff3907, so nothing of either side is lost). No Go file conflicted. Nothing of this change is already on main, so nothing was dropped. Checked on the rebased head: go vet (linux and GOOS=darwin), gofmt, go test ./..., and the v2 changelog check (valid=true). Not run: a resized Rex pane.
fix: the acp pane starts calls on their own status, says why a command failed, keeps ○, shows the prompt's second line and is coloured by state (rexcity-7sfmr)
All checks were successful
test / changelog (pull_request) Successful in 4s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m44s
e41296dc1e
Items 1, 5, 6, 7 and 8 of the user's brief of 2026-11-12 (items 2-4, terminal handling, are the other bead's).

1. render.go no longer starts every unstarted call on a message that is not about it (a usage update, a sibling's end): claudeacp sends a call's input ~200 ms after the placeholder, so such a start had none and the pane labelled the call "Terminal"/"Skill". A call starts on its own status past pending, on text or any other entry, at the turn's end, or when the box's settle timer fires; a call's end no longer starts its siblings either. A call said to be in_progress is timed from that message when the adapter sends it. pane.go callEnd describes a registered call that has no input from its end line's label, which repairs logs already written.
5. A failed shell call's reason is "exit N — <next line>" where claudeacp's first line is only "Exit code N".
6. Thoughts keep their ○ in colour mode.
7. The prompt line shows the first line after gc's "[rig] agent • time" header, which the tab label says already.
8. Colours by state in the 16 ANSI colours, as listed in the bead; NO_COLOR is respected through the existing Color switch.

Recorded overlap stream: the log and pane goldens change, as the long call is now started by the settle timer or its end, not by a sibling's message (the replay has no timer). Validation: go vet and go test over cmd, internal, packs; the changelog check (v1.6.0, offline); the pane before/after on a log of ~/.rexcity/39545500/.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mikluko force-pushed worker/rexcity-7sfmr from e41296dc1e
All checks were successful
test / changelog (pull_request) Successful in 4s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m44s
to 78d22c5da5
All checks were successful
image / image (pull_request) Successful in 10s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m44s
2026-11-12 15:56:15 +00:00
Compare
city-root-review requested changes 2026-11-12 16:05:47 +00:00
Dismissed
city-root-review left a comment

Review of 78d22c5da5 for rexcity-7sfmr. Checks of the head: success.

Verdict

fail

Findings

  • [blocking] README.md:218: the paragraph right after the one this change edits still describes the old start rule, so the README now contradicts itself on exactly what item 1 changes. Line 217 now says a usage update or another call's end does not write a call's start, and a call in progress is timed from that message. Line 218 still says the log writes the start when "anything else comes on the stream (another entry of the log, or any message that is not a tool call's)", and that a long call is "stamped with the time the call was first seen". Both are now false: feed no longer starts calls on a message that has no entry (render.go:184-192), endEntry writes another call's end without starting its siblings (render.go:566-569), and progressTool restamps t.first on in_progress (render.go:494-498). To fix it, rewrite that sentence of line 218 to match line 217. Its own status past pending, agent text or another entry, the turn's end, or 2 s of quiet start a call; a message with no entry and a sibling's end do not. The start is stamped with the time the call was first seen, or with its in_progress message when the adapter sends one. Also say what the overlap golden now shows: a call that runs beside others can have its start written after their ends, stamped with its earlier time, so the log's times are not always in order.
  • [minor] internal/acpbox/render.go:519-523: the startCalls comment still says "It runs before anything else is written, so that the log keeps the order things happened in". endEntry and a call's own status now write without it, and the starts in testdata/overlap.golden are no longer in time order (17:42:06 ✓ #2, then 17:42:05 ▷ #3; 17:42:07 ✓ #3, then 17:42:05 ▷ #1). Say which writes it precedes (text, block, the turn's end, the timer), and drop the claim about order.
  • [minor] PR description, Verification: it says the changelog check was mikluko/changelog v1.6.0. CI runs validate@v2. I ran v2.1.0 and it passes too (below), so this is only the description.

Verified

  • Read the work bead (items 1, 5-8 and the rework note), the PR description, and REVIEW.md and README.md from origin/main. The diff stays inside items 1, 5, 6, 7 and 8: checkSize, the redraw, stdin and the follower's start are untouched.
  • Merge: head 78d22c5 sits directly on main 2ff3907, so the merge is a fast-forward with no conflict, and the forge reports it mergeable.
  • Item 1: startCall starts one call only, unstarted is decremented there, and every call is started before it is deleted. endTools still starts every call at the turn's end. The settle timer (box.go:427) still calls startCalls, and feed now arms it after any message while calls wait. pane.go callEnd re-describes a registered call that has no input from its end label. TestACallStartedBeforeItsInputWasSentIsDescribedByItsEndLine, TestAnotherCallsEndStartsNoCallButItsOwn and TestACallInProgressIsTimedFromThatMessage cover it.
  • Item 5: failReason turns Exit code N plus the next non-empty line into exit N — <line>, and leaves a line that only begins like one as it is. Tested.
  • Item 6: ○ is kept in colour mode (wrapEmit); the demo goldens are updated.
  • Item 7: promptHeaderRe skips gc's header line, and a prompt that is only the header still shows it. Tested.
  • Item 8: the styles follow the bead's table. sty/dim return plain text without colour, so NO_COLOR still applies through cfg.Color. Widths are computed before styling. parseRan has unit tests.
  • The fragment .changelog/acp-pane-colour-and-calls.md holds only level-3 type headings.
  • Ran in the clone with the city's variables removed (0 variables proven): go vet ./... passes, GOOS=darwin GOARCH=arm64 go vet ./... passes, gofmt -l prints nothing, go test ./... passes in every package, and go test -race -count=1 ./internal/acpbox/... passes. The changelog check, built from mikluko/changelog v2.1.0 in the module cache and run with -warn missing-fragment, prints valid=true.
  • Not run: the live-pane check in a resized Rex pane. There is no Rex pane here, and you must not touch Rex.
Review of 78d22c5da5987936db365c2d5a442906a7f7e7e6 for rexcity-7sfmr. Checks of the head: success. ### Verdict fail ### Findings - [blocking] README.md:218: the paragraph right after the one this change edits still describes the old start rule, so the README now contradicts itself on exactly what item 1 changes. Line 217 now says a usage update or another call's end does not write a call's start, and a call in progress is timed from that message. Line 218 still says the log writes the start when "anything else comes on the stream (another entry of the log, or any message that is not a tool call's)", and that a long call is "stamped with the time the call was first seen". Both are now false: `feed` no longer starts calls on a message that has no entry (render.go:184-192), `endEntry` writes another call's end without starting its siblings (render.go:566-569), and `progressTool` restamps `t.first` on `in_progress` (render.go:494-498). To fix it, rewrite that sentence of line 218 to match line 217. Its own status past pending, agent text or another entry, the turn's end, or 2 s of quiet start a call; a message with no entry and a sibling's end do not. The start is stamped with the time the call was first seen, or with its `in_progress` message when the adapter sends one. Also say what the overlap golden now shows: a call that runs beside others can have its start written after their ends, stamped with its earlier time, so the log's times are not always in order. - [minor] internal/acpbox/render.go:519-523: the `startCalls` comment still says "It runs before anything else is written, so that the log keeps the order things happened in". `endEntry` and a call's own status now write without it, and the starts in `testdata/overlap.golden` are no longer in time order (17:42:06 ✓ #2, then 17:42:05 ▷ #3; 17:42:07 ✓ #3, then 17:42:05 ▷ #1). Say which writes it precedes (text, `block`, the turn's end, the timer), and drop the claim about order. - [minor] PR description, Verification: it says the changelog check was mikluko/changelog v1.6.0. CI runs `validate@v2`. I ran v2.1.0 and it passes too (below), so this is only the description. ### Verified - Read the work bead (items 1, 5-8 and the rework note), the PR description, and REVIEW.md and README.md from origin/main. The diff stays inside items 1, 5, 6, 7 and 8: `checkSize`, the redraw, stdin and the follower's start are untouched. - Merge: head 78d22c5 sits directly on main 2ff3907, so the merge is a fast-forward with no conflict, and the forge reports it mergeable. - Item 1: `startCall` starts one call only, `unstarted` is decremented there, and every call is started before it is deleted. `endTools` still starts every call at the turn's end. The settle timer (box.go:427) still calls `startCalls`, and `feed` now arms it after any message while calls wait. pane.go `callEnd` re-describes a registered call that has no input from its end label. `TestACallStartedBeforeItsInputWasSentIsDescribedByItsEndLine`, `TestAnotherCallsEndStartsNoCallButItsOwn` and `TestACallInProgressIsTimedFromThatMessage` cover it. - Item 5: `failReason` turns `Exit code N` plus the next non-empty line into `exit N — <line>`, and leaves a line that only begins like one as it is. Tested. - Item 6: `○` is kept in colour mode (`wrapEmit`); the demo goldens are updated. - Item 7: `promptHeaderRe` skips gc's header line, and a prompt that is only the header still shows it. Tested. - Item 8: the styles follow the bead's table. `sty`/`dim` return plain text without colour, so `NO_COLOR` still applies through `cfg.Color`. Widths are computed before styling. `parseRan` has unit tests. - The fragment `.changelog/acp-pane-colour-and-calls.md` holds only level-3 type headings. - Ran in the clone with the city's variables removed (0 variables proven): `go vet ./...` passes, `GOOS=darwin GOARCH=arm64 go vet ./...` passes, `gofmt -l` prints nothing, `go test ./...` passes in every package, and `go test -race -count=1 ./internal/acpbox/...` passes. The changelog check, built from mikluko/changelog v2.1.0 in the module cache and run with `-warn missing-fragment`, prints `valid=true`. - Not run: the live-pane check in a resized Rex pane. There is no Rex pane here, and you must not touch Rex.
docs: the README and startCalls say the new start rule throughout (rexcity-7sfmr)
All checks were successful
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 9s
test / go (pull_request) Successful in 1m45s
1c023120cb
Review of 78d22c5 (round 1) found the paragraph after the one this change edited still
describing the old rule: a start written when any message that is not a tool
call's comes on the stream, stamped only with the time the call was first seen.
It now matches the paragraph before it: a call's own status past pending, agent
text or another entry, the turn's end or 2 s of quiet start it; a usage update
or another call's end does not; the stamp is the first sight or the call's
in_progress message. It also says that the log's times are not always in order,
which overlap.golden shows.

The startCalls comment claimed it runs before anything else is written so the
log keeps time order. It runs before text, block, endTools and the settle timer,
and no longer promises order.

Comment and README only; go vet, gofmt, go test ./... and the changelog check pass.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
city-root-review requested changes 2026-11-12 16:30:01 +00:00
Dismissed
city-root-review left a comment

Review of 1c023120cb for rexcity-7sfmr. Checks of the head: success.

Verdict

fail

Findings

  • [blocking] README.md:220 (merge with main): the head no longer merges onto main. Main moved to 0104764 (#93, "the acp view passes control characters through") after this head was cut on 2ff3907. #93 adds a bullet ("- Nothing else the log renders carries a control character either: …") right before the "- The pane reads the log as the agent's narrative" paragraph that this change rewrites, so git stops on a content conflict in README.md, and the forge reports the PR not_mergeable. CI's changelog job merges the base first and would fail the same way. To fix it, rebase onto main 0104764 and keep both: main's new control-character bullet, then this change's version of the pane paragraph. #93 left that paragraph as it was at 2ff3907, so nothing of either side is lost. No Go file conflicts: render.go, pane.go and their tests merge automatically, and everything below passes on the merge with that resolution.

Verified

  • Read the work bead (items 1, 5–8, the rebase note and round 1), the PR description, and REVIEW.md and README.md from origin/main (no AGENTS.md or CLAUDE.md there). The diff stays inside items 1, 5, 6, 7 and 8. checkSize, the redraw, stdin and the follower's start are untouched.
  • Round 1 (review 275 of 78d22c5): all three findings are addressed. README's start-entry paragraph now gives the new start rule and the in_progress stamp, and says the log's times are not always in order. The startCalls comment names the writes it precedes and drops the order claim. The description names the v2 changelog check.
  • Merge with main 0104764: README.md conflicts as above, and everything else merges. In the merge, startCall and endEntry write directly instead of through block. They still pass the label through clip and the failure reason through clipTo, which #93 made the control-character guard, so control characters in tool names, titles and failure reasons still show as pictures. #93's apart and textIndent for agent text are unaffected. unstarted is incremented once per call in tool() and decremented once in startCall. Every path that deletes a call (progressTool's final status, endTools) starts it first.
  • Item 1: a usage update (render_test.go:470) and a sibling's end (TestAnotherCallsEndStartsNoCallButItsOwn) no longer start a call. in_progress restamps t.first before the start (TestACallInProgressIsTimedFromThatMessage). The box's settle timer is still armed in feed while calls wait. pane.go callEnd describes an input-less call from its end label.
  • Items 5–8: failReason, ○ kept in colour mode, promptHeaderRe, and the colours by state with sty/dim returning plain text when colour is off, so NO_COLOR holds. Each has tests, and the goldens match.
  • Ran on the merged tree (main 0104764 + head, README resolved as described) in a clone with the city's variables removed (0 proven): go vet ./... and GOOS=darwin GOARCH=arm64 go vet ./... pass, gofmt -l prints nothing, go test ./... passes in every package, and go test -race -count=1 ./internal/acpbox/... passes. The changelog check is mikluko/changelog v2.1.0, built from the module cache and run as validate@v2 runs it (-base=main -warn=missing-fragment). It prints valid=true, and the fragment .changelog/acp-pane-colour-and-calls.md holds only level-3 type headings.
  • Not run: the live check in a resized Rex pane. There is no Rex pane here, and Rex is not to be touched.
Review of 1c023120cb0958525495e402f6aa293b56fe96da for rexcity-7sfmr. Checks of the head: success. ### Verdict fail ### Findings - [blocking] README.md:220 (merge with main): the head no longer merges onto main. Main moved to 0104764 (#93, "the acp view passes control characters through") after this head was cut on 2ff3907. #93 adds a bullet ("- Nothing else the log renders carries a control character either: …") right before the "- The pane reads the log as the agent's narrative" paragraph that this change rewrites, so git stops on a content conflict in README.md, and the forge reports the PR `not_mergeable`. CI's `changelog` job merges the base first and would fail the same way. To fix it, rebase onto main 0104764 and keep both: main's new control-character bullet, then this change's version of the pane paragraph. #93 left that paragraph as it was at 2ff3907, so nothing of either side is lost. No Go file conflicts: render.go, pane.go and their tests merge automatically, and everything below passes on the merge with that resolution. ### Verified - Read the work bead (items 1, 5–8, the rebase note and round 1), the PR description, and REVIEW.md and README.md from origin/main (no AGENTS.md or CLAUDE.md there). The diff stays inside items 1, 5, 6, 7 and 8. `checkSize`, the redraw, stdin and the follower's start are untouched. - Round 1 (review 275 of 78d22c5): all three findings are addressed. README's start-entry paragraph now gives the new start rule and the `in_progress` stamp, and says the log's times are not always in order. The `startCalls` comment names the writes it precedes and drops the order claim. The description names the v2 changelog check. - Merge with main 0104764: README.md conflicts as above, and everything else merges. In the merge, `startCall` and `endEntry` write directly instead of through `block`. They still pass the label through `clip` and the failure reason through `clipTo`, which #93 made the control-character guard, so control characters in tool names, titles and failure reasons still show as pictures. #93's `apart` and `textIndent` for agent text are unaffected. `unstarted` is incremented once per call in `tool()` and decremented once in `startCall`. Every path that deletes a call (`progressTool`'s final status, `endTools`) starts it first. - Item 1: a usage update (render_test.go:470) and a sibling's end (`TestAnotherCallsEndStartsNoCallButItsOwn`) no longer start a call. `in_progress` restamps `t.first` before the start (`TestACallInProgressIsTimedFromThatMessage`). The box's settle timer is still armed in `feed` while calls wait. `pane.go` `callEnd` describes an input-less call from its end label. - Items 5–8: `failReason`, ○ kept in colour mode, `promptHeaderRe`, and the colours by state with `sty`/`dim` returning plain text when colour is off, so `NO_COLOR` holds. Each has tests, and the goldens match. - Ran on the merged tree (main 0104764 + head, README resolved as described) in a clone with the city's variables removed (0 proven): `go vet ./...` and `GOOS=darwin GOARCH=arm64 go vet ./...` pass, `gofmt -l` prints nothing, `go test ./...` passes in every package, and `go test -race -count=1 ./internal/acpbox/...` passes. The changelog check is mikluko/changelog v2.1.0, built from the module cache and run as `validate@v2` runs it (`-base=main -warn=missing-fragment`). It prints `valid=true`, and the fragment `.changelog/acp-pane-colour-and-calls.md` holds only level-3 type headings. - Not run: the live check in a resized Rex pane. There is no Rex pane here, and Rex is not to be touched.
mikluko force-pushed worker/rexcity-7sfmr from 1c023120cb
All checks were successful
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 9s
test / go (pull_request) Successful in 1m45s
to 6067e84028
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m44s
2026-11-12 16:37:53 +00:00
Compare
city-root-review approved these changes 2026-11-12 16:56:46 +00:00
Dismissed
city-root-review left a comment

Review of 6067e84028 for rexcity-7sfmr. Checks of the head: success.

Verdict

pass

Findings

None.

Verified

  • I read the work bead (items 1 and 5–8, the rebase note, rounds 1 and 2), the PR description, and REVIEW.md and README.md from origin/main. main has no AGENTS.md or CLAUDE.md. The diff stays inside items 1, 5, 6, 7 and 8. It leaves checkSize, the redraw, stdin and the follower's start alone.
  • Round 2 (review 285 of 1c02312): its one finding is addressed. The head now sits on main 0104764 (#93), and merging it onto main is a fast-forward with no conflict. The forge reports the PR mergeable. README.md keeps #93's bullet ("Nothing else the log renders carries a control character either…"), followed by this change's version of the pane paragraph. The round 1 fixes are still in place: the start-entry paragraph gives the new start rule, the in_progress stamp and the out-of-order times; the startCalls comment names the writes it precedes; and the description names the v2 check.
  • I read the whole diff, 965 lines.
    • Item 1:
      • feed no longer starts calls on a message that has no entry. It only re-arms the settle timer, and box.go:443 still calls startCalls from that timer.
      • progressTool starts only its own call. On in_progress it restamps t.first if the call has not started yet.
      • startCall and endEntry write as block does (endText, then the line) but without startCalls. The label still goes through clip and the reason through clipTo, so #93's guard against control characters holds.
      • unstarted goes up once per call in tool() and down once in startCall. Each path that drops a call starts it first: the final status in progressTool, and endTools, through startCalls.
      • In pane.go, callEnd describes a call that has no input from its end label. A call that showed its input keeps it.
    • Item 5: failReason turns Exit code N plus the next non-empty line into exit N — <line>. With no further line it gives exit N. A line that only begins like Exit code stays as it is.
    • Item 6: ○ is kept, styled dim italic. Without colour it is plain.
    • Item 7: promptHeaderRe skips gc's header line. A prompt that is only the header still shows it.
    • Item 8: the styles follow the bead's table. sty and dim return plain text when colour is off, so NO_COLOR still applies. clip skips style sequences when it measures a running line and closes the style when it cuts. parseRan covers <1s, Ns, MmSSs and HhMMm, and gives 0 for anything else.
    • Each item has tests, and the goldens match.
  • The fragment .changelog/acp-pane-colour-and-calls.md holds only level-3 type headings (Changed, Fixed). Nothing in it is breaking under REVIEW.md's list.
  • I ran these on the merged tree, in a clone with the city's variables removed (0 variables, proven):
    • go vet ./... passes, and so does GOOS=darwin GOARCH=arm64 go vet ./....
    • gofmt -l prints nothing.
    • go test -count=1 ./... passes in every package.
    • go test -race -count=1 ./internal/acpbox/... passes.
    • I built the changelog check from mikluko/changelog v2.1.0 in the module cache and ran it as validate@v2 runs it (-base=main -warn=missing-fragment). It prints valid=true with no warning.
  • Not run: the live check in a resized Rex pane. There is no Rex pane here, and Rex is not to be touched.
Review of 6067e84028312a27d4e53572264e062243ea6021 for rexcity-7sfmr. Checks of the head: success. ### Verdict pass ### Findings None. ### Verified - I read the work bead (items 1 and 5–8, the rebase note, rounds 1 and 2), the PR description, and REVIEW.md and README.md from origin/main. main has no AGENTS.md or CLAUDE.md. The diff stays inside items 1, 5, 6, 7 and 8. It leaves `checkSize`, the redraw, stdin and the follower's start alone. - Round 2 (review 285 of 1c02312): its one finding is addressed. The head now sits on main 0104764 (#93), and merging it onto main is a fast-forward with no conflict. The forge reports the PR `mergeable`. README.md keeps #93's bullet ("Nothing else the log renders carries a control character either…"), followed by this change's version of the pane paragraph. The round 1 fixes are still in place: the start-entry paragraph gives the new start rule, the `in_progress` stamp and the out-of-order times; the `startCalls` comment names the writes it precedes; and the description names the v2 check. - I read the whole diff, 965 lines. - Item 1: - `feed` no longer starts calls on a message that has no entry. It only re-arms the settle timer, and box.go:443 still calls `startCalls` from that timer. - `progressTool` starts only its own call. On `in_progress` it restamps `t.first` if the call has not started yet. - `startCall` and `endEntry` write as `block` does (`endText`, then the line) but without `startCalls`. The label still goes through `clip` and the reason through `clipTo`, so #93's guard against control characters holds. - `unstarted` goes up once per call in `tool()` and down once in `startCall`. Each path that drops a call starts it first: the final status in `progressTool`, and `endTools`, through `startCalls`. - In pane.go, `callEnd` describes a call that has no input from its end label. A call that showed its input keeps it. - Item 5: `failReason` turns `Exit code N` plus the next non-empty line into `exit N — <line>`. With no further line it gives `exit N`. A line that only begins like `Exit code` stays as it is. - Item 6: `○` is kept, styled dim italic. Without colour it is plain. - Item 7: `promptHeaderRe` skips gc's header line. A prompt that is only the header still shows it. - Item 8: the styles follow the bead's table. `sty` and `dim` return plain text when colour is off, so `NO_COLOR` still applies. `clip` skips style sequences when it measures a running line and closes the style when it cuts. `parseRan` covers `<1s`, `Ns`, `MmSSs` and `HhMMm`, and gives 0 for anything else. - Each item has tests, and the goldens match. - The fragment `.changelog/acp-pane-colour-and-calls.md` holds only level-3 type headings (Changed, Fixed). Nothing in it is breaking under REVIEW.md's list. - I ran these on the merged tree, in a clone with the city's variables removed (0 variables, proven): - `go vet ./...` passes, and so does `GOOS=darwin GOARCH=arm64 go vet ./...`. - `gofmt -l` prints nothing. - `go test -count=1 ./...` passes in every package. - `go test -race -count=1 ./internal/acpbox/...` passes. - I built the changelog check from mikluko/changelog v2.1.0 in the module cache and ran it as `validate@v2` runs it (`-base=main -warn=missing-fragment`). It prints `valid=true` with no warning. - Not run: the live check in a resized Rex pane. There is no Rex pane here, and Rex is not to be touched.
mikluko force-pushed worker/rexcity-7sfmr from 6067e84028
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 10s
test / go (pull_request) Successful in 1m44s
to c137d59823
All checks were successful
image / image (pull_request) Successful in 11s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m46s
2026-11-12 17:29:07 +00:00
Compare
mikluko dismissed city-root-review's review 2026-11-12 17:29:07 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

city-root-review left a comment

Review of c137d59823 for rexcity-7sfmr. Checks of the head: success.

Verdict

pass

Findings

  • [minor] README.md:26-27: the start rule says a call is started when "agent text or another entry follows it", and then excludes "a usage update or another call's end". A sibling call's start entry does not start it either: startCall and endEntry in internal/acpbox/render.go write with r.write and not through block, so neither runs startCalls. Saying "another call's start or end" in the exclusion would make the README match the code. This does not block.

Verified

  • Read the work bead (items 1, 5, 6, 7, 8 and the in_progress stamp), its rework notes, the PR description, and the target's REVIEW.md and README.md. There is no AGENTS.md or CLAUDE.md on main.
  • Read the whole diff (12 files, +421/−133). git range-diff against 6067e84, the head approved in review 294, shows that the rebase onto d252358 (#94) changed only README context in the paragraph on the log's entries. The Go code and the tests are the same as at 6067e84.
  • Merge into origin/main (d252358): a fast-forward, with no conflict. The forge says mergeable.
  • Item 1, render.go: a usage update no longer starts a call. A sibling's status starts only that sibling (startCall), and a call's end no longer starts the others. unstarted stays consistent: it is incremented once in tool() and decremented once per started call in startCall, and endTools starts every call before it clears the map. An in_progress status re-stamps t.first only before the start is written. Item 1, pane.go: callEnd describes a call that has no input from its end label, and a call that has input keeps it. Both are covered by tests.
  • Item 5: failReason gives exit N — <next line>, gives exit N alone when nothing follows, and keeps a line that only looks like an exit line as it is.
  • Item 6: ○ is kept, in dim italics.
  • Item 7: the prompt line skips a line that matches promptHeaderRe, shows the header when it is the prompt's only line, and leaves a line that is not a header alone.
  • Item 8: the styles match the bead's table. Durations are dim, yellow when over 30s and red when over 5m, so 30s is dim and 5m00s is yellow. A running call is yellow, and red after 5m. The 16 ANSI colours are used, and with Color off (NO_COLOR and --color never) the output is plain. The worker's choices on what the table left open are stated in the PR.
  • The other bead's area is untouched: checkSize, the redraw, stdin and the follower's start.
  • REVIEW.md: the fragment .changelog/acp-pane-colour-and-calls.md holds only ### Changed and ### Fixed, and CHANGELOG.md is untouched. The README section and its table are updated.
  • Run on the merge result with the city's variables removed: go vet ./..., GOOS=darwin GOARCH=arm64 go vet ./..., gofmt -l (empty), go test ./... (all ok) and go test -race -count=1 ./internal/acpbox/... (ok) all pass. The changelog check passes too: v2.1.0 was built from the module cache's source and run with -warn=missing-fragment as the validate action runs it, and it reports valid=true.
  • Not run: the live check in a resized Rex pane, and the colours under Rex's theme. Neither can be run from here, and the PR says so.
Review of c137d59823f06286b130da7856f04e6ea3a37dbc for rexcity-7sfmr. Checks of the head: success. ### Verdict pass ### Findings - [minor] README.md:26-27: the start rule says a call is started when "agent text or another entry follows it", and then excludes "a usage update or another call's end". A sibling call's *start* entry does not start it either: `startCall` and `endEntry` in `internal/acpbox/render.go` write with `r.write` and not through `block`, so neither runs `startCalls`. Saying "another call's start or end" in the exclusion would make the README match the code. This does not block. ### Verified - Read the work bead (items 1, 5, 6, 7, 8 and the `in_progress` stamp), its rework notes, the PR description, and the target's REVIEW.md and README.md. There is no AGENTS.md or CLAUDE.md on main. - Read the whole diff (12 files, +421/−133). `git range-diff` against 6067e84, the head approved in review 294, shows that the rebase onto d252358 (#94) changed only README context in the paragraph on the log's entries. The Go code and the tests are the same as at 6067e84. - Merge into origin/main (d252358): a fast-forward, with no conflict. The forge says `mergeable`. - Item 1, render.go: a usage update no longer starts a call. A sibling's status starts only that sibling (`startCall`), and a call's end no longer starts the others. `unstarted` stays consistent: it is incremented once in `tool()` and decremented once per started call in `startCall`, and `endTools` starts every call before it clears the map. An `in_progress` status re-stamps `t.first` only before the start is written. Item 1, pane.go: `callEnd` describes a call that has no input from its end label, and a call that has input keeps it. Both are covered by tests. - Item 5: `failReason` gives `exit N — <next line>`, gives `exit N` alone when nothing follows, and keeps a line that only looks like an exit line as it is. - Item 6: ○ is kept, in dim italics. - Item 7: the prompt line skips a line that matches `promptHeaderRe`, shows the header when it is the prompt's only line, and leaves a line that is not a header alone. - Item 8: the styles match the bead's table. Durations are dim, yellow when over 30s and red when over 5m, so 30s is dim and 5m00s is yellow. A running call is yellow, and red after 5m. The 16 ANSI colours are used, and with `Color` off (`NO_COLOR` and `--color never`) the output is plain. The worker's choices on what the table left open are stated in the PR. - The other bead's area is untouched: checkSize, the redraw, stdin and the follower's start. - REVIEW.md: the fragment `.changelog/acp-pane-colour-and-calls.md` holds only `### Changed` and `### Fixed`, and CHANGELOG.md is untouched. The README section and its table are updated. - Run on the merge result with the city's variables removed: `go vet ./...`, `GOOS=darwin GOARCH=arm64 go vet ./...`, `gofmt -l` (empty), `go test ./...` (all ok) and `go test -race -count=1 ./internal/acpbox/...` (ok) all pass. The changelog check passes too: v2.1.0 was built from the module cache's source and run with `-warn=missing-fragment` as the validate action runs it, and it reports `valid=true`. - Not run: the live check in a resized Rex pane, and the colours under Rex's theme. Neither can be run from here, and the PR says so.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/rexcity!85
No description provided.