qwen-code/packages/web-shell/client
Shaojin Wen 22ddad7ff7
fix(cli): show worktree branch in status line instead of workspace branch (#7367)
* 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>
2026-07-21 04:38:12 +00:00
..
adapters feat(daemon): worktree-isolated sessions for parallel tasks (#7221) 2026-07-19 23:47:03 +00:00
assets/icons feat(web-shell): add MCP mentions and iconized @ references (#6279) 2026-07-04 02:13:42 +00:00
completions feat(web-shell): add skill management pages (#7018) 2026-07-17 06:42:46 +00:00
components fix(web-shell): respect voice enabled setting (#7345) 2026-07-20 22:25:35 +00:00
config feat(browser-ext): revive Chrome extension via daemon-direct architecture (#5777) 2026-06-28 15:57:31 +00:00
constants feat(web-shell): add git commit history browser (#7204) 2026-07-20 15:02:48 +00:00
e2e fix(web-shell): respect voice enabled setting (#7345) 2026-07-20 22:25:35 +00:00
extensions Add harness infrastructure for web-shell package (#6517) 2026-07-09 08:11:58 +00:00
hooks fix(web-shell): localize extension tag labels (#7337) 2026-07-20 13:00:35 +00:00
lib feat(web-shell): add shadcn UI foundation (#6760) 2026-07-12 13:51:52 +00:00
styles feat(web-shell): refresh settings page with shadcn (#6817) 2026-07-13 11:50:46 +00:00
test feat(cli): improve subagent observability — untruncated live commands, transcript path, approval context (#6580) 2026-07-11 11:21:23 +00:00
utils feat: support workspace display names (#7179) 2026-07-20 15:16:44 +00:00
voice fix(web-shell): respect voice enabled setting (#7345) 2026-07-20 22:25:35 +00:00
App.module.css feat(daemon): worktree-isolated sessions for parallel tasks (#7221) 2026-07-19 23:47:03 +00:00
App.test.tsx feat(web-shell): add git commit history browser (#7204) 2026-07-20 15:02:48 +00:00
App.tsx fix(cli): show worktree branch in status line instead of workspace branch (#7367) 2026-07-21 04:38:12 +00:00
build-artifact.test.ts fix(web-shell): restore packaged dialog styles on React 18 (#6827) 2026-07-13 15:57:23 +00:00
customization.tsx feat(web-shell): render composer references in user messages (#6537) 2026-07-11 17:44:47 +00:00
i18n.tsx feat: support workspace display names (#7179) 2026-07-20 15:16:44 +00:00
index.html Add harness infrastructure for web-shell package (#6517) 2026-07-09 08:11:58 +00:00
index.test.tsx feat(webshell): replay ChatRecord history in readonly WebShell (#6999) 2026-07-19 00:09:44 +00:00
index.tsx feat(web-shell): support custom slash command actions (#7267) 2026-07-20 11:23:55 +00:00
interactionBlockContext.ts feat(web-shell): add cell value dialog on double-click in markdown tables (#6530) 2026-07-11 15:21:34 +00:00
main.tsx feat(web-shell): add selection statistics to markdown tables (#6838) 2026-07-14 03:54:33 +00:00
midTurnDedup.test.ts feat(daemon): deliver web-shell mid-turn messages into the running turn (#5175) 2026-06-16 16:16:47 +08:00
midTurnDedup.ts feat(daemon): deliver web-shell mid-turn messages into the running turn (#5175) 2026-06-16 16:16:47 +08:00
portalRoot.ts feat(web-shell): add shadcn UI foundation (#6760) 2026-07-12 13:51:52 +00:00
themeContext.ts feat(web-shell): daemon web-shell improvements — token usage, settings, retry, streaming metrics, hidden commands (#5066) 2026-06-13 02:58:08 +00:00
transcriptRenderMode.ts feat(webshell): replay ChatRecord history in readonly WebShell (#6999) 2026-07-19 00:09:44 +00:00
vite-env.d.ts feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00