Skip to content

fix: subagent view appends ellipsis only for long tool results - #1428

Closed
awhite0030 wants to merge 8 commits into
Nano-Collective:mainfrom
awhite0030:fix-subagent-view-ellipsis-4605175052713681395
Closed

awhite0030 wants to merge 8 commits into
Nano-Collective:mainfrom
awhite0030:fix-subagent-view-ellipsis-4605175052713681395

Conversation

@awhite0030

Copy link
Copy Markdown

Description

Brief description of what this PR does

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changeset

  • Added a changeset (pnpm changeset) describing this change for the changelog

Docs-only or internal chores need no changeset (or run pnpm changeset --empty to note that intentionally).

Testing

Automated Tests

  • New features include passing tests in .spec.ts/tsx files
  • All existing tests pass (pnpm test:all completes successfully)
  • Tests cover both success and error scenarios

Manual Testing

  • Tested with Ollama
  • Tested with OpenRouter
  • Tested with OpenAI-compatible API
  • Tested MCP integration (if applicable)

Checklist

  • If this was for an open issue, I was assigned to it
  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)
  • Appropriate logging added using structured logging (see CONTRIBUTING.md)

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 > 100 before 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

@github-actions github-actions Bot added the area:tui Terminal UI label Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

nc-review: needs work — 1 blocking, 1 important

@awhite0030 — there is a blocking item below.

The fix to source/components/subagent-view.tsx is correct and exactly mirrors the guarded pattern already used in source/tools/git/git-commit.tsx:251-252, resolving issue #1408. The two new tests are real regression tests, not the stub-imports pattern the rubric warns about. However, this PR is a duplicate of open PR #1423 (insuffer, 'fix(ui): only ellipsis subagent tool results that were truncated'), which targets the same file, same line, and same fix. The 5 badges/*.svg files in the changeset are unrelated bot-generated churn that do not belong in a bug-fix PR.

Possible duplicate of #1423 — worth checking before going further.

🔴 blocking · duplicate · source/components/subagent-view.tsx:78

PR #1423 (insuffer, head fix/subagent-transcript-ellipsis, title 'fix(ui): only ellipsis subagent tool results that were truncated') is open in the duplicate-detection corpus and targets the same file, same line, and the same guarded-ellipsis fix the issue recommends. The two PRs solve the same problem and the corpus lists #1423 as still open. The authors and reviewers need to coordinate on a single landing — merging both is churn, and closing one in favor of the other should be an explicit decision.

🟠 important · scope

Five badges/*.svg files are committed in this PR (coverage.svg, forks.svg, npm-downloads-monthly.svg, repo-size.svg, stars.svg). These are generated by .github/workflows/update-badges.yml (a scheduled caller into the shared org workflow) and have no relationship to the bug fix in subagent-view.tsx. The stars.svg diff in particular is suspicious — the link target changed from Nano-Collective/nanocoder to awhite0030/nanocoder with a star count of 0, suggesting the badges were regenerated against the author's fork rather than upstream. These should be dropped from this PR so reviewers can focus on the actual change.


🔴 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 /re-review.

@github-actions github-actions Bot added the agent:needs-work nc-review found blocking findings label Sep 22, 2026
@akramcodez akramcodez closed this Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:needs-work nc-review found blocking findings area:tui Terminal UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Subagent transcript view appends "..." to every tool result, even short ones that weren't truncated

3 participants