fix(tui): 优化 Bash 运行中状态 UI 显示#113
Merged
Merged
Conversation
改进 Bash ToolBlock 运行时的视觉表现,提升用户体验。 修改内容: - peri-tui/src/ui/message_render.rs 统一 Ctrl+B 提示为小写 ctrl+b,优化 Running 时间显示 - peri-tui/src/ui/message_render_test.rs 增加更多断言验证 Bash 运行状态格式 - peri-tui/src/ui/render_thread_test.rs 补充缓存中 Bash 运行状态的验证测试 特性/影响: - Running 状态现在显示为 "Running… (N)" 格式 - Ctrl+B 提示行移除多余的 ⎿ 前缀,改为缩进显示 - 测试覆盖新增 UI 格式断言,确保渲染一致性 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动概述
优化 Bash ToolBlock 运行时的 UI 显示,提升用户体验。
主要改动
ctrl+b格式改动文件
peri-tui/src/ui/message_render.rs— 主逻辑修改peri-tui/src/ui/message_render_test.rs— UI 格式断言peri-tui/src/ui/render_thread_test.rs— 缓存验证测试测试覆盖
已增加对以下格式的断言:
● Bash(命令)— header 显示⎿ Running… (Ns)— 运行状态(ctrl+b to run in background)— 缩进提示🤖 Generated with Claude Code
Co-Authored-By: Claude Haiku 4.5 noreply@anthropic.com