The acp box's pane indents a turn's calls by 11 columns; the user wants 2 or 4 #82

Merged
city-root merged 1 commit from worker/rexcity-fweqp into main 2026-11-12 12:19:28 +00:00
Contributor

The acp pane indents by 2 columns under an entry's head line, not by the 11 columns of HH:MM:SS ● .

  • One step of 2 per level of nesting: a turn's calls and the lines a sentence wraps onto are 2 in; what is under a call (the why of a failed one, the input with --input full, a … N more lines line) is 4 in. Nothing is indented by the width of the time column any more.
  • The head line of a sentence still has 11 columns before its text, so wrapping is now per line: 9 columns less room on the head line than on the lines after it. lineIndent, the fallback to 2 columns in a pane under 39 wide, is gone: it was the same width.
  • The log file is unchanged: render.go writes inputs at inputIndent (2 spaces) and never had a time-column indent.
  • Tests that assert the pane's lines and the pane goldens follow (regenerated, read through: only indent and where lines cut or wrap differ). README and CHANGELOG.md ([Unreleased], Changed) updated.

The user's sample, as rexcity acp follow --color never --width 100 draws it, before:

12:59:50 ● Checking the claimed bead, then the pull request.
           ✓ Bash     gc hook --claim --drain-ack --json  3s
           ✓ Bash     gc bd show gcg-249858; echo ----; gc bd show gcg-249859 (+2 lines)  1s
           ✗ Terminal  22s

and after:

12:59:50 ● Checking the claimed bead, then the pull request.
  ✓ Bash     gc hook --claim --drain-ack --json  3s
  ✓ Bash     gc bd show gcg-249858; echo ----; gc bd show gcg-249859 (+2 lines)  1s
  ✗ Terminal  22s

Checked: go vet ./... (linux and darwin), go test ./..., the v1 changelog check (valid=true), gofmt.

Bead: rexcity-fweqp

The acp pane indents by **2 columns** under an entry's head line, not by the 11 columns of `HH:MM:SS ● `. - One step of 2 per level of nesting: a turn's calls and the lines a sentence wraps onto are 2 in; what is under a call (the why of a failed one, the input with `--input full`, a `… N more lines` line) is 4 in. Nothing is indented by the width of the time column any more. - The head line of a sentence still has 11 columns before its text, so wrapping is now per line: 9 columns less room on the head line than on the lines after it. `lineIndent`, the fallback to 2 columns in a pane under 39 wide, is gone: it was the same width. - The log file is **unchanged**: `render.go` writes inputs at `inputIndent` (2 spaces) and never had a time-column indent. - Tests that assert the pane's lines and the pane goldens follow (regenerated, read through: only indent and where lines cut or wrap differ). README and `CHANGELOG.md` (`[Unreleased]`, Changed) updated. The user's sample, as `rexcity acp follow --color never --width 100` draws it, before: ``` 12:59:50 ● Checking the claimed bead, then the pull request. ✓ Bash gc hook --claim --drain-ack --json 3s ✓ Bash gc bd show gcg-249858; echo ----; gc bd show gcg-249859 (+2 lines) 1s ✗ Terminal 22s ``` and after: ``` 12:59:50 ● Checking the claimed bead, then the pull request. ✓ Bash gc hook --claim --drain-ack --json 3s ✓ Bash gc bd show gcg-249858; echo ----; gc bd show gcg-249859 (+2 lines) 1s ✗ Terminal 22s ``` Checked: `go vet ./...` (linux and darwin), `go test ./...`, the v1 changelog check (`valid=true`), `gofmt`. Bead: rexcity-fweqp
fix: the acp pane indents under a head line by 2 columns, not by the time's width (rexcity-fweqp)
All checks were successful
test / changelog (pull_request) Successful in 4s
image / image (pull_request) Successful in 11s
test / go (pull_request) Successful in 1m44s
f6596834ec
The pane hung a turn's calls, the lines a sentence wrapped onto and what is under a call at column 11, where the sentence's text begins after "HH:MM:SS ● ". The user found that excessive and asked for 2 or 4.

paneIndent is now 2, one step per level of nesting: calls and wrapped text are 2 in, the why of a failed call and the input shown with --input full are 4 in. headIndent (11) remains for the one place it is true, the room a sentence's head line has for text, so wrap's available width is per line: 9 columns less on the head line than on the lines after it. lineIndent, which fell back to 2 columns in a pane under 39 wide, is gone: the indent no longer needs a fallback.

The log is unchanged: render.go writes inputs at inputIndent (2 spaces) and has no time-column indent.

Validation: go vet (linux and darwin) and go test ./... pass. The pane tests' expected lines and the pane goldens follow the change; the goldens were regenerated with UPDATE_GOLDEN=1 and read through, and differ only in indent and in where lines now cut or wrap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
city-root-review left a comment

Review of f6596834ec for rexcity-fweqp. Checks of the head: success.

Verdict

pass

Findings

  • [minor] internal/acpbox/pane.go:854: feed cuts a word longer than a line at p.avail() as the line being built stands. When that line is the head line and already holds text (short xxxx…), wrapPiece writes the head first and puts the piece on a continuation line, which has 9 more columns than the piece was cut to. TestAWordLongerThanALineStartsOnALineOfItsOwnAndTheRestOfTheSentenceFollowsIt (pane_test.go:636) builds this in: its second line holds 89 x where 98 fit. No line ever goes past the width, so it is only a short line, and only for a word longer than a line. A fix: in feed, when w.cur is not empty, cut the piece at the continuation width (p.usable() - paneIndent).

Verified

  • Read the work bead, the PR description and the whole diff: pane.go, pane_test.go, the eight pane goldens, the README and CHANGELOG.md. Read REVIEW.md from main; main has no AGENTS.md or CLAUDE.md.
  • Every Done-when item is met. Under a head line one indent of 2 (paneIndent) applies everywhere: a turn's calls, a sentence's continuation lines, the running lines at the foot and the … N more calls running count at 2; a failed call's why, --input full bodies and their … N more lines at 4 (2*paneIndent). The PR picks 2 and says so, says the log is unchanged (render.go is not touched; its inputIndent is still 2) and shows the before/after sample. The tests, goldens, README and an [Unreleased] / Changed entry follow the change.
  • Wrapping per line is right: avail() gives the head line usable-11 and continuation lines usable-2, keyed on wrap.n. wrapWord reads avail() again after each line it writes, and wrapEmit leaves n unchanged for an empty line, so a word that starts the sentence still gets the head's width. Dropping lineIndent loses nothing, because its narrow-pane fallback was already 2. The README drops the matching sentence.
  • The goldens differ only in indent and in where lines wrap or cut.
  • The head fast-forwards onto main (1f13f73), so the merge is clean.
  • Ran with the city's variables removed: go vet ./... (host, darwin/arm64, linux/amd64) passes; go test ./... passes; go test -race -count=1 ./internal/acpbox/ passes; gofmt -l internal/ cmd/ prints nothing. Built the changelog checker from mikluko/changelog at tag v1 and ran it: valid=true.
Review of f6596834ec8a72a35f210e3635cb9e337a144774 for rexcity-fweqp. Checks of the head: success. ### Verdict pass ### Findings - [minor] internal/acpbox/pane.go:854: `feed` cuts a word longer than a line at `p.avail()` as the line being built stands. When that line is the head line and already holds text (`short xxxx…`), `wrapPiece` writes the head first and puts the piece on a continuation line, which has 9 more columns than the piece was cut to. `TestAWordLongerThanALineStartsOnALineOfItsOwnAndTheRestOfTheSentenceFollowsIt` (pane_test.go:636) builds this in: its second line holds 89 `x` where 98 fit. No line ever goes past the width, so it is only a short line, and only for a word longer than a line. A fix: in `feed`, when `w.cur` is not empty, cut the piece at the continuation width (`p.usable() - paneIndent`). ### Verified - Read the work bead, the PR description and the whole diff: `pane.go`, `pane_test.go`, the eight pane goldens, the README and CHANGELOG.md. Read REVIEW.md from main; main has no AGENTS.md or CLAUDE.md. - Every Done-when item is met. Under a head line one indent of 2 (`paneIndent`) applies everywhere: a turn's calls, a sentence's continuation lines, the running lines at the foot and the `… N more calls running` count at 2; a failed call's why, `--input full` bodies and their `… N more lines` at 4 (`2*paneIndent`). The PR picks 2 and says so, says the log is unchanged (`render.go` is not touched; its `inputIndent` is still 2) and shows the before/after sample. The tests, goldens, README and an `[Unreleased]` / Changed entry follow the change. - Wrapping per line is right: `avail()` gives the head line `usable-11` and continuation lines `usable-2`, keyed on `wrap.n`. `wrapWord` reads `avail()` again after each line it writes, and `wrapEmit` leaves `n` unchanged for an empty line, so a word that starts the sentence still gets the head's width. Dropping `lineIndent` loses nothing, because its narrow-pane fallback was already 2. The README drops the matching sentence. - The goldens differ only in indent and in where lines wrap or cut. - The head fast-forwards onto main (1f13f73), so the merge is clean. - Ran with the city's variables removed: `go vet ./...` (host, darwin/arm64, linux/amd64) passes; `go test ./...` passes; `go test -race -count=1 ./internal/acpbox/` passes; `gofmt -l internal/ cmd/` prints nothing. Built the changelog checker from mikluko/changelog at tag v1 and ran it: `valid=true`.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
2 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!82
No description provided.