Skip to content

feat(sidebar): create worktree sessions from source-folder headers - #749

Merged
im-ian merged 1 commit into
mainfrom
feat/source-folder-worktree-session
Aug 5, 2026
Merged

feat(sidebar): create worktree sessions from source-folder headers#749
im-ian merged 1 commit into
mainfrom
feat/source-folder-worktree-session

Conversation

@im-ian

@im-ian im-ian commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

Source folders now expose a one-click worktree-session action directly from their sidebar headers.

  1. Direct creation — add a Git branch action to each source root header and route it through the existing scoped isolated-session flow.
  2. Accessible localization — add workspace-specific tooltip and ARIA copy in English, Korean, Japanese, and Simplified Chinese.
  3. Regression coverage — verify the button targets the source repository and requests an isolated regular session.

Expected impact

Area Before After
Source-folder worktree sessions Open the session menu, then choose the worktree action Create one directly from the source-folder header
Target repository Selected through the existing workspace-scoped flow Explicitly verified to remain the source root
Other workspace rows Existing header actions Unchanged

Design notes

  • The shortcut appears only for a source-root default workspace row. Project headers already expose the same direct action, while named and worktree workspaces keep their existing menus.
  • Creation reuses onAddSession(true, "regular", "terminal"), preserving the established request builder, store assignment, and backend API path.

Test plan

  • pnpm run typecheck — passes
  • pnpm run test — 109 files and 1,287 tests pass
  • pnpm exec playwright test tests/e2e/sidebar.spec.ts --grep "a source folder header creates a worktree session" — 1 test passes
  • pnpm exec playwright test tests/e2e/sidebar.spec.ts — 51 tests pass
  • git diff --check — passes

@im-ian im-ian added the feat New feature label Aug 5, 2026
@im-ian
im-ian merged commit 30feb0f into main Aug 5, 2026
3 checks passed
@im-ian
im-ian deleted the feat/source-folder-worktree-session branch August 5, 2026 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant