Skip to content

feat(ui): color edit stats and spin the pending activity row - #79

Merged
tt-a1i merged 1 commit into
mainfrom
feat/activity-row-polish
Aug 23, 2026
Merged

feat(ui): color edit stats and spin the pending activity row#79
tt-a1i merged 1 commit into
mainfrom
feat/activity-row-polish

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

改动

工具活动行(read/bash/write/edit/grep/find/ls 的折叠态单行)三处打磨:

  • edit 统计红绿着色:+14 -15 按 Kimi 风格 additions 绿色、removals 红色;没有 diff 的行不再显示 +0 −0 噪声(同时把 Unicode 减号 − 统一为 ASCII -);
  • pending glyph 换 spinner:静态 换成包内共享的 braille spinner,bash 行每秒刷新所以会真实转动,和 subagent/workflow 视图同一语言;
  • 动词列对齐:pending/success/error 三态共用 8 字符动词栏,target 列纵向对齐。

验证

  • bun run check ✅(270 files)
  • bun run test ✅ 801 node:test + 30 vitest
  • 本地预览脚本渲染六态行确认效果(脚本已删)
  • 真实 TUI smoke:未验证 —— /reload 后任意编辑操作即可看到

效果:

  Wrote    scripts/mirror.sh  56 lines
  Edited   scripts/mirror.sh  +14 -15     ← 绿/红
  ⠧ Running  ./scripts/mirror.sh · 24s    ← spinner
  ✕ Failed   gh repo list … · command exited with code 1

- edit rows now show Kimi-style diff stats: additions in green,
  removals in red (+14 -15), and rows without a diff stay quiet
  instead of showing +0 -0;
- the pending row swaps the static ◌ for the package braille spinner,
  in step with the subagent and workflow views (bash already re-renders
  every second, so the frame advances);
- all three states now share one 8-column verb field, so the target
  column lines up across pending, success, and failure rows.
@tt-a1i
tt-a1i merged commit 6213b10 into main Aug 23, 2026
2 checks passed
@tt-a1i
tt-a1i deleted the feat/activity-row-polish branch August 23, 2026 03:09
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