feat(cli): TUI 视觉重设计 + 文档更新 + /clear 崩溃修复#47
Merged
Conversation
clear_messages() 调用 remove_children()(延迟删除)后立即 mount Static(id="placeholder"),旧 placeholder 仍在 _nodes_by_id 中, 导致 DuplicateIds 异常。 修复:clear_messages() 改为 async,await remove_children() 确保 旧节点完全移除后再挂载新 placeholder。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- UserMessage: 左边框 + 微妙背景色 - AssistantMessage: ● 圆点前缀 - SystemMessage: — 破折号包围 - HeaderBar: Brand | Mode | Model 布局 + accent 背景 - InputArea: 移除 Send 按钮,简化为纯输入框 - Footer: 新建底部快捷键提示栏 - 移除 StatusBar,清理过时 CSS 选择器 - 新增 17 个重设计测试 + 更新现有 E2E 测试 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 补充 16 个子模块说明(plugin/security/ops/mcp/session/skills/task 等) - 更新目录结构:cli/views/ → cli/widgets/,补充所有新文件 - 更新 CLI 命令:添加 setup、plugin 子命令 - 更新工具列表:20+ → 40+,分类说明 - 补充 Sub-Agent、插件系统、AgentOps 等架构描述 - 移除不存在的 README_EN.md 引用 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 移除商业产品对比表,定位为学习项目而非竞品 - 新增"这是什么"章节,明确项目目标和受众 - 用"核心模块"表格替代功能列表,强调学习价值 - 新增"适合谁"章节,面向 AI Agent 初学者 - Docker 标注为实验性,贡献章节增加"项目还很年轻" - 添加致谢章节,明确 Claude Code 为设计灵感来源 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- README_EN.md: 基于中文版创建完整英文文档 - 中文 README: 添加中英文切换链接 - 统一致敬 Claude Code 的学习项目定位 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 移除 chat.py 中未使用的 Markdown 导入 - test_tui_redesign.py: pytest.raises(Exception) → NoMatches Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This reverts commit e383583.
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.
Summary
Changes
feat(cli): TUI 视觉重设计
fix(cli): 修复 /clear 后发消息 DuplicateIds 崩溃
docs: 文档全面更新
Test plan
uv run pytest tests/test_tui/ -v— 66 passed🤖 Generated with Claude Code