mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-25 08:33:55 +00:00
* fix(cli): show worktree branch in status line instead of workspace branch useGitBranchName was always called with config.getTargetDir() which stays at the original project root when entering a worktree via enter_worktree or --resume. Move useWorktreeSession above it and pass worktreeSession.worktreePath when a worktree is active so the status line reflects the worktree's branch. * docs: add worktree branch status line screenshot for PR * docs: replace screenshot with enter_worktree scenario (before/after) * fix(web-shell): prefer live worktree branch from git status over static creation-time branch When a worktree session is active, the composer git chip used sessionWorktree.branch (set once at creation time) as the highest priority source. If the user checks out a different branch inside the worktree, the chip showed the stale creation-time branch. Now prefer selectedWorkspaceGitStatus.branch (fetched with the worktree path via ?cwd= parameter, refreshed on focus and 30s poll) when a worktree session is active, falling back to the static sessionWorktree.branch only until the first fetch completes. * docs: add Web Shell worktree session screenshots * test(cli): cover worktree branch wiring in AppContainer (#7367) * fix(web-shell): clear stale git status on worktree entry and remove PR screenshots (#7367) --------- Co-authored-by: Qwen Code Bot <qwen-code-bot@alibabacloud.com> Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src | ||
| index.ts | ||
| package.json | ||
| test-setup.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||