Repository navigation
fix: only ellipsize truncated subagent tool results - #1447
RealBhupesh wants to merge 2 commits into
Conversation
Every tool result in the subagent transcript ended in "...", including short results that were shown in full. Fixes Nano-Collective#1408
No changeset foundThis PR does not add a changeset, so it will not appear in the changelog or trigger a release. If the change is user-facing, add one: pnpm changesetPick a bump (patch / minor / major) and write the changelog entry in our usual voice ("Added X... Thanks to @you. Closes #123."), then commit the generated If this PR is docs-only or a chore that needs no release note, you can ignore this — or run |
nc-review: needs work — 1 blocking, 1 important, 1 nit@RealBhupesh — there is a blocking item below. PR #1447 fixes a real and accurately diagnosed bug: every tool-result line in
🔴 blocking · This is a user-facing change to how the subagent transcript renders tool results in the TUI — every short tool output is currently displayed with a spurious trailing 🟠 important · Open PR #1428 ('fix: subagent view appends ellipsis only for long tool results') from ⚪ nit · The new helper lives in 🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with |
The subagent transcript passed a possibly undefined tool result into a string formatter, which failed typecheck, tests, and the build. Empty content is formatted as an empty result, and the new import is sorted.
Fixes #1408.
The subagent transcript sliced every tool result to 100 characters and always appended
.... Short results such asOKwere shown asOK.... The ellipsis is now added only when the result was actually longer than the limit.Test plan
tool-result-preview.spec.tsMade with Cursor