The acp view shows a tool call's input as it was sent: line breaks kept, a timestamp per entry, optional highlighting #73
Loading…
Reference in a new issue
No description provided.
Delete branch "worker/rexcity-n2ass"
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?
Closes the request in rexcity-n2ass: the acp log shows a tool call's input as it was sent, stamps every entry, and can be highlighted.
Decisions
HH:MM:SS. A run of text is stamped once, on its first line, however long. The time is when the box saw the message (taken when the line is queued, so a lagging log stays right), or a_meta.timestamp(RFC 3339) in the message if it carries one; claudeacp sends none. gc's prompt and the run header keep their own place for the time.… Bash (no final status)with its input, as before. Cost: a call that runs for minutes is not in the log until it ends. Writing a start record and an end record would show it, at two lines per call and a different shape from your example; say so if you want that.\u003c/\u003e/\u0026shown as<>&);descriptionand the other fields of a Bash input are not shown. The head line is the tool's name and status, as in your example; a call whose adapter sent no input is the one line it was.…; lines left out are counted (… 12 more lines). A file written in one call is one JSON string, so the width cuts it. Control characters are shown as their pictures (␛), since a pane writes the log to a terminal.REXCITY_ACP_HIGHLIGHTin the agent's env (likeREXCITY_PANE):1,true,yesoronturns it on; off by default. The wrapper passes--highlighttorexcity acp follow, which also takes it by hand. Shell for aBashcall, JSON for any other input.follow, not written to the log. The log stays plain text for cat, grep and tail, and a pane can be switched without touching a log that is appended to. The follower works on whole lines and holds back only a partial line that may still be a body line, so streamed text shows as it arrives. (The dim of thinking and of stderr was in the log already and stays.)Before and after, one recorded turn
testdata/tools.stream, built to the shape claudeacp v0.5.0 emits (rawInput as an empty object at the call's start, then whole; the Bash title is the command). The two recorded streams are in the golden test too, with their goldens updated. The after log uses the test's fixed clock, so every time is the same.Before (cut at 110 columns, as the pane cuts it):
After (
tools.golden, the first 25 lines):Verification
go vetandgo testover cmd, internal and packs pass, with a stubrexfirst on PATH (the whole of packs too);go test -raceover internal/acpbox passes; the v1 changelog check is valid.follow --highlight; the env setting reaching the pane's argv.Bead: rexcity-n2ass
Reviewed at
5edbbe1d05against main7776036(Release 0.31.0).What was checked:
session/newis not rewritten, no permission is answered, stderr, exit status and signals are as before. The only change on the relay goroutines is thatpushreads the clock (cfg.Now, defaulting totime.Now) before it queues; rendering stays on the renderer goroutine behind the capped queue. The box tests (passthrough both ways, held-up renderer, hanging pane) pass.rawInput(number, nested array, string), a bad_meta.timestamp, andparamsof null or 7. None panicked; the output stayed bounded (500 bytes, 0.12 s); control characters showed as their pictures.rawInputit sent, replaced on each update, never added to, and freed when the call ends or at the turn's end or the run's end. The adapter's own line, whichReadBytesalready reads whole, bounds it. The 30-line, 240-character bound applies when the call is written.testdata/tools.stream: the main renderer joins the Bash loop into one line. The new one writesHH:MM:SS ✓ Bashwith the loop under it, keeps the Edit JSON indented, and ends the heredoc with… 12 more lines. This matches the bead's example.--highlightreaches the pane's argv only whenREXCITY_ACP_HIGHLIGHTis set.seen,maxInputLinesandinputIndent), and the goldens differ.go vet ./...,GOOS=darwin GOARCH=arm64 go vet ./...,go test ./...andgo test -race ./internal/acpboxpass on the merge result. The changelog check, built from mikluko/changelogv1(1.6.0), reports valid. CI is green. README and CHANGELOG describe the code accurately. The next release would be 0.32.0 (Added).Minor, not blocking: an empty line inside a command is written as two trailing spaces. The highlighter keeps a whole log line in memory even after it has written that line, which matters only for a very long run of agent text without a line break.
Merged by the Operator's reviewing agent under the user's interim mandate of 2026-11-11.