Skip to content

修复侧边栏工作树按项目根目录过滤#130

Merged
lehhair merged 1 commit into
lehhair:mainfrom
dingyi222666:fix/filter-worktrees-by-project-root
Jun 26, 2026
Merged

修复侧边栏工作树按项目根目录过滤#130
lehhair merged 1 commit into
lehhair:mainfrom
dingyi222666:fix/filter-worktrees-by-project-root

Conversation

@dingyi222666

Copy link
Copy Markdown
Contributor

变更内容

  • 改为使用 getCurrentProject 返回的 sandboxes 构建工作区列表,避免额外调用实验性的 worktree 列表接口。
  • 合并并去重同一项目根目录下的工作区,保持根目录优先。
  • 更新 useGitWorkspaceCatalog 单元测试,覆盖刷新竞态和不再调用 worktree listing 的场景。

验证

  • npm run test:run -- src/hooks/useGitWorkspaceCatalog.test.tsx

@lehhair lehhair merged commit 96e822b into lehhair:main Jun 26, 2026
1 check passed
@dingyi222666 dingyi222666 deleted the fix/filter-worktrees-by-project-root branch June 29, 2026 02:30
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.

2 participants