Skip to content

feat: redesign the subagent card#1345

Merged
liruifengv merged 2 commits into
mainfrom
refactor/subagent-card-ui
Jul 3, 2026
Merged

feat: redesign the subagent card#1345
liruifengv merged 2 commits into
mainfrom
refactor/subagent-card-ui

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue. This is a UX polish pass on the standalone subagent card.

Problem

The standalone subagent card had several visual issues:

  • Its height jumped as sub-tool calls started and finished, and again when the run completed (it shrank from several rows to two).
  • Thinking and body text were rendered at the same time, so whichever one was not updating looked frozen.
  • Bash output varied in length, which made the card height inconsistent.
  • Long thinking with no line breaks wrapped into several rows.
  • A brief text or tool-output segment flashed white against the dim thinking.

What changed

Redesigned the standalone subagent card so it stays a stable height and reads as clearly alive:

  • Fixed header + one-line tool summary + two-row content window in every state (running, done, failed, backgrounded), so the height is identical whether the subagent is running or finished.
  • Added a braille spinner in the header while the subagent is active, alongside the existing elapsed-time counter.
  • Collapsed sub-tool calls into a single summary line (tool count + the current tool).
  • The two-row window follows whichever stream is currently live (a running tool's output, or the most recent of text / thinking), so nothing looks frozen.
  • Muted the window tones so a brief text or tool-output segment no longer flashes white against dim thinking.
  • Capped long descriptions so the header stays on one line.

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 gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Stable height across running, done, failed and backgrounded states: all share the same header + one-line tool summary + two-row content window, so the card no longer shrinks when a run finishes. Add a braille spinner in the header while active, collapse sub-tool calls into a one-line summary, and have the two-row window follow the live stream (tool output, text, or thinking) instead of showing thinking and text side by side. Mute the window tones so a brief text or tool-output segment no longer flashes white against dim thinking.
@changeset-bot

changeset-bot Bot commented Jul 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8b2c44c

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 Jul 3, 2026

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

commit: 8b2c44c

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd5fdb8f3f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/kimi-code/src/tui/components/messages/tool-call.ts
@liruifengv

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fd5fdb8f3f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/kimi-code/src/tui/components/messages/tool-call.ts
@liruifengv liruifengv merged commit 3ed22e3 into main Jul 3, 2026
9 checks passed
@liruifengv liruifengv deleted the refactor/subagent-card-ui branch July 3, 2026 08:54
@github-actions github-actions Bot mentioned this pull request Jul 3, 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