Skip to content

feat(desktop): cycle new session location - #49171

Merged
Hona merged 4 commits into
v2from
session-location-cycle
Sep 16, 2026
Merged

Hona merged 4 commits into
v2from
session-location-cycle

Conversation

@usrnk1

@usrnk1 usrnk1 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds a New Session-only shortcut to cycle the session location with ⌘⌥L on macOS or Ctrl+Alt+L elsewhere.

The cycle alternates between Local and New worktree. After an existing worktree has been selected, the cycle preserves it as the third state: Existing → Local → New → Existing. The shortcut is also configurable from Keyboard shortcuts settings.

How did you verify your code works?

  • bun test --conditions=solid --preload ./happydom.ts src/new-session/workspace/controller.test.ts
  • bun run check
  • Playwright fixture covering Existing → Local → New → Existing

Screenshots / recordings

Existing worktree Local New worktree
Existing worktree Local repository New worktree

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@Hona
Hona force-pushed the session-location-cycle branch from 10b5bbe to 03043b0 Compare September 16, 2026 00:57
@Hona
Hona merged commit 9b091eb into v2 Sep 16, 2026
8 checks passed
@Hona
Hona deleted the session-location-cycle branch September 16, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants