fix(tools): say how much a truncated result dropped - #29
Merged
Conversation
A result that overran the row's safety cap ended in a bare `…`, which
reads as "a bit more" whether three lines went or three hundred. Upstream
counts what it dropped, and so does this codebase's own verbose block; the
compact row now matches both:
⏺ Bash(seq 1 40 >&2; exit 1)
⎿ Error: Exit code 1
[stderr]
1
…
10
… +30 lines
Deliberately not "(ctrl+o to expand)": a result the gateway retained no
raw copy of expands to the same truncated text, and pointing at a key that
changes nothing is worse than silence.
The gallery grows the last tools that had never been driven through it —
`subagent_fork`, `job_kill`, `interrupt_agent`, `update_goal`, and a
failure noisy enough to hit the cap — which completes coverage of all 26
tools the base bundle registers. It also learns two things about its own
driving: a slash prompt needs Esc to dismiss the completion menu before
Enter submits, and the scenarios that deliberately PARK on a prompt (the
approval box, the plan review) are skipped by a no-argument sweep, which
otherwise sat through a 90s idle timeout for each of them.
README records what the trail actually does now.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
What
A result that overran the row's safety cap ended in a bare
…, which reads as "a bit more" whether three lines went or three hundred.Claude Code counts what it dropped, and so does this codebase's own verbose block (
… +N lines omitted); the compact row now matches both.Deliberately not
(ctrl+o to expand): a result the gateway retained no raw copy of expands to the same truncated text, and pointing at a key that changes nothing is worse than silence.Gallery
Grows the last tools that had never been driven through it —
subagent_fork,job_kill,interrupt_agent,update_goal, and a failure noisy enough to hit the cap — completing coverage of all 26 tools the base bundle registers.It also learns two things about its own driving:
exit_plan_modescenario was hanging on this)README
Records what the trail actually does now: the per-tool result summaries, the failed-call message, the running clock, delegation and
/agents, and that a resumed transcript carries its results.Test
npm run typecheck,npm test— 150 files / 1954 passingnode scripts/verify-boundary.mjstext.test.ts: the marker counts, and reads in the singular when one line wentscripts/tool-gallery.py subagent_fork job_kill interrupt_agent update_goal bash_fail_long todo list_agents job_list mixed_run🤖 Generated with Claude Code