Skip to content

fix(tui): subagent thinking text and tool output display - #541

Merged
liruifengv merged 3 commits into
mainfrom
fix-subagent
Jun 8, 2026
Merged

fix(tui): subagent thinking text and tool output display#541
liruifengv merged 3 commits into
mainfrom
fix-subagent

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue.

Problem

Subagent thinking text grows unbounded in the TUI, pushing other content off-screen. Additionally, completed subagent sub-tools (such as Bash and generic MCP tools) do not show any output preview, making it hard to follow what the subagent has done without expanding the full tool call.

What changed

  • Scroll subagent thinking text within a fixed two-row window instead of letting it grow without bound.
  • Show a truncated output preview for completed subagent sub-tools that use generic rendering (Bash and all MCP tools).
  • Extend with and options so subagent previews can be indented and omit the expand hint.
  • Add helper to the renderer registry to determine which tools get the preview.
  • Update existing tests and add new test coverage for .

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran skill, or this PR needs no changeset.
  • Ran skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ac756e6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 8, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@ac756e6
npx https://pkg.pr.new/@moonshot-ai/kimi-code@ac756e6

commit: ac756e6

@liruifengv
liruifengv merged commit 2db1bd9 into main Jun 8, 2026
8 checks passed
@liruifengv
liruifengv deleted the fix-subagent branch June 8, 2026 08:19
@github-actions github-actions Bot mentioned this pull request Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant