Repository navigation
fix: subagent view appends ellipsis only for long tool results - #1428
awhite0030 wants to merge 8 commits into
Conversation
nc-review: needs work — 1 blocking, 1 important@awhite0030 — there is a blocking item below. The fix to
🔴 blocking · PR #1423 (insuffer, head 🟠 important · Five 🔴 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 |
Description
Brief description of what this PR does
Type of Change
Changeset
pnpm changeset) describing this change for the changelogDocs-only or internal chores need no changeset (or run
pnpm changeset --emptyto note that intentionally).Testing
Automated Tests
.spec.ts/tsxfilespnpm test:allcompletes successfully)Manual Testing
Checklist
Root cause: The subagent transcript view unconditionally appended
...to all tool results (e.g.msg.content.slice(0, 100)}...), falsely implying truncation even for very short responses like "OK".Fix: Added a conditional check
msg.content.length > 100before appending the ellipsis, matching the guarded pattern used elsewhere in the codebase.Validation: pnpm run build, pnpm test:format, pnpm test:lint, pnpm test:types, pnpm test:knip, and pnpm test:ava source/components/subagent-view.spec.tsx all passed.
Fixes #1408
Fixes #1408