Repository navigation
feat(web): 侧栏 worktree 会话徽标、预览图片右键复制、设置页「关于」分区 - #18
Merged
Merged
Conversation
- 桌面上下文菜单新增 COPY_PREVIEW_IMAGE:文件预览与灯箱里的图片可右键复制到系统剪贴板 - 设置页新增「关于」导航分区,程序版本与 Web 核心信息从「配置」迁入 - 侧栏工作区操作按钮图标统一放大到 16px Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- GET /api/sessions 的 active 分支(session_info_to_json)补 worktree 字段, 与 meta 序列化共用 append_worktree_session;缺失时侧栏刷新后当前会话会 丢失 worktree 标识(web_server_smoke_test 新增回归用例) - 侧栏会话行:worktree 会话常显 Worktree 图标,hover/聚焦时切回归档按钮; 判定收口到 sidebarSessionHasWorktree 纯函数(Node 测试覆盖) - ChatView 创建 worktree 会话后广播 notifySessionListChanged,侧栏立即刷新 - 文件树根级行 padding-left 16→10 Co-Authored-By: Claude Fable 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.
改了什么
侧栏 worktree 会话徽标(前后端)
GET /api/sessions的 active 会话分支(session_info_to_json)此前不带worktree字段,只有走 disk meta 的分支才有 —— 侧栏刷新后当前活动会话会丢失 worktree 标识。现将序列化收口到append_worktree_session,两条路径共用,并新增 smoke test 回归用例(ActiveWorktreeSessionListIncludesWorktreeState)。Worktree.svg图标,hover / 键盘聚焦时切换回归档按钮;判定逻辑收口到sidebarSessionHasWorktree纯函数(Node 测试覆盖)。ChatView通过worktree:{create}创建会话后广播notifySessionListChanged,侧栏立即刷新出徽标。预览图片右键「复制图片」
COPY_PREVIEW_IMAGE动作:SidePanel 文件预览与灯箱里的图片可右键复制到系统剪贴板;仅kind === 'image'且有copyImageUrl时出现(测试覆盖含 PDF 反例)。设置页「关于」分区
杂项
padding-left16→10(延续最近两次图标对齐修复)。审阅提示
node src/lib/runTests.js)全部通过;C++ smoke test 新用例未在本地跑完整构建,依赖 CI 验证。web/src/有改动,合并后需要pnpm build+ 重新 configure CMake 才会进嵌入资源。🤖 Generated with Claude Code