Skip to content

fix: title tool steps from the part, and drop the step pulse and terminal dots - #332

Merged
vite-hub[bot] merged 3 commits into
mainfrom
fix/chat-trace-and-terminal-chrome
Nov 2, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
fix/chat-trace-and-terminal-chrome

Conversation

@onmax

@onmax onmax commented Nov 2, 2026

Copy link
Copy Markdown
Owner

ViteHub renders Agent answers with comark-chat and code with comark-code (vite-hub/vitehub#3237). A real answer there showed three problems:

  • Folded tool steps read "command execution", the tool part's type, even though ViteHub sends a title on static tool parts, such as the command rg -n "Node" pages/docs/install.md. read() read title only on dynamic-tool parts.
  • Running and waiting steps pulsed forever (animation: cht-pulse 1.2s ease-in-out infinite). Nothing should loop; motion should answer an action.
  • sh and bash blocks drew a fake terminal window: three dots from a ::before box-shadow, with the title moved to the middle to make room for them.

The fix:

  • toolStep() in packages/chat/src/index.ts takes title from any tool part first, then falls back to the type name or a dynamic tool's toolName as before.
  • packages/chat/src/styles.ts drops the pulse, its @keyframes, and the reduced-motion override that only existed to stop it. A running or waiting step's dot is now a still 1px ring (border: 1px solid currentColor; background: none), so it still reads as unfinished next to a finished step's filled dot. The ring is a border, so it also shows in forced-colors mode.
  • packages/code/src/styles.ts drops the dots and the centered-title rule. A terminal keeps the line under its header, and its title sits on the left like any other block's.
  • The chat and code docs and the code skill reference stop describing a "terminal window" and dots, and the chat docs say a tool step's title comes from the part's title first.

Before and after, light and dark, for the chat trace, a terminal block, and the comark-code gallery row: https://drop.vitehub.dev/d/t82j8vyg358x/evidence

Checks:

  • New tests: titles a tool with the part's title, else its name and marks a step under way without motion in packages/chat/test/chat.test.ts, and draws a terminal's header as a line, with no window dots in packages/code/test/code.test.ts. All three fail with main's sources.
  • pnpm test: 129 files, 2664 passed, 1 expected fail, 1 skipped.
  • pnpm typecheck (tsrs), vp check on the changed files, Vite Doctor for comark-chat and comark-code, and pnpm run lint:docs: no issues.
  • In Chromium, on the branch every .cht-dot computes animation-name: none and .ck-bar::before computes content: none. On main the running and waiting dots run cht-pulse.

Model: Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T15:43:52.864406Z 7009f20 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vite-hub

vite-hub Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-02T15:53:02.349Z 4m 17s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for GitHub merge request 2b3c4fd6-4f20-4d83-8382-52f28424bae4.

View session

Ready at the expected HEAD. Inspected all nine changed files, supplied reviews, and current-head checks; no actionable findings remain. After building required workspace dependencies, package-local `vp test run test/chat.test.ts` passed 9 tests and `vp test run test/code.test.ts` passed 23 tests. `vp check` passed all six changed TypeScript files, and `git diff --check` passed. Hosted checks are green. Checkout is clean; no repair commit needed.

Session

Waiting for an admitted fleet slot before the next repair pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes across the shared chat parsing and styles, code-block terminal styles, public documentation, and focused coverage.

  • Tool titles: Static and dynamic tool steps now prefer the part's string title, with the existing type or toolName fallbacks preserved.
  • Static trace status: Running and approval-waiting steps now use an outlined dot without an infinite animation, including forced-colors support.
  • Terminal header: Shell blocks retain the header divider while dropping decorative window dots and terminal-specific centered title positioning.
  • Coverage and docs: Tests cover title precedence and both CSS changes; package docs and the shipped skill reference match the new behavior. The affected package dependency graphs built successfully, and the focused chat and code suites passed with 40 tests total.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Nov 2, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@332

comark-badge

pnpm add https://pkg.pr.new/comark-badge@332

comark-cards

pnpm add https://pkg.pr.new/comark-cards@332

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@332

comark-cast

pnpm add https://pkg.pr.new/comark-cast@332

comark-charts

pnpm add https://pkg.pr.new/comark-charts@332

comark-chat

pnpm add https://pkg.pr.new/comark-chat@332

comark-chips

pnpm add https://pkg.pr.new/comark-chips@332

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@332

comark-code

pnpm add https://pkg.pr.new/comark-code@332

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@332

comark-colors

pnpm add https://pkg.pr.new/comark-colors@332

comark-comments

pnpm add https://pkg.pr.new/comark-comments@332

comark-critic

pnpm add https://pkg.pr.new/comark-critic@332

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@332

comark-details

pnpm add https://pkg.pr.new/comark-details@332

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@332

comark-diff

pnpm add https://pkg.pr.new/comark-diff@332

comark-embed

pnpm add https://pkg.pr.new/comark-embed@332

comark-fields

pnpm add https://pkg.pr.new/comark-fields@332

comark-figure

pnpm add https://pkg.pr.new/comark-figure@332

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@332

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@332

comark-github

pnpm add https://pkg.pr.new/comark-github@332

comark-icon

pnpm add https://pkg.pr.new/comark-icon@332

comark-include

pnpm add https://pkg.pr.new/comark-include@332

comark-keys

pnpm add https://pkg.pr.new/comark-keys@332

comark-links

pnpm add https://pkg.pr.new/comark-links@332

comark-linter

pnpm add https://pkg.pr.new/comark-linter@332

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@332

comark-mark

pnpm add https://pkg.pr.new/comark-mark@332

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@332

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@332

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@332

comark-media

pnpm add https://pkg.pr.new/comark-media@332

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@332

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@332

comark-outline

pnpm add https://pkg.pr.new/comark-outline@332

comark-properties

pnpm add https://pkg.pr.new/comark-properties@332

comark-qr

pnpm add https://pkg.pr.new/comark-qr@332

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@332

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@332

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@332

comark-sources

pnpm add https://pkg.pr.new/comark-sources@332

comark-steps

pnpm add https://pkg.pr.new/comark-steps@332

comark-table

pnpm add https://pkg.pr.new/comark-table@332

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@332

comark-tests

pnpm add https://pkg.pr.new/comark-tests@332

comark-ui

pnpm add https://pkg.pr.new/comark-ui@332

comark-xref

pnpm add https://pkg.pr.new/comark-xref@332

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@332

commit: 7009f20

@vite-hub
vite-hub Bot merged commit 8870de6 into main Nov 2, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the fix/chat-trace-and-terminal-chrome branch November 2, 2026 15:59
@github-actions github-actions Bot mentioned this pull request Nov 2, 2026
@github-actions github-actions Bot mentioned this pull request Nov 2, 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