* fix(web): recalculate dockview layout after fast-path session switch
The fast path in tryFastSessionSwitch removed ephemeral panels but
never called api.layout() to redistribute column widths, leaving a
gap on the right side of the screen. Both slow-path branches already
make this call.
* test(web): add regression test for fast-path layout call
Verifies that performSessionSwitch calls api.layout() on both the
fast path and slow path, preventing the squished-layout regression.
* test(web): cover saved-layout fast path branch
* fix(web): replace no-explicit-any cast in test
* fix(web): fix test isolation with mockReturnValueOnce
Use mockReturnValueOnce and clearAllMocks for proper test isolation
between fast-path and slow-path test cases.
* test(web): fix mock shape to match LayoutGroupIds type
When creating a worktree from a remote-tracking ref (e.g. origin/feature/foo),
git automatically sets the new branch's upstream to that ref. This caused new
task branches to incorrectly track the original remote branch instead of
starting with no upstream.
Add -c branch.autoSetupMerge=false to gitAddWorktree and
gitAddWorktreeWithGitCrypt. The explicit CheckoutBranch flow (PR reviews)
is unaffected — it sets upstream via setUpstreamIfExists after creation.
Commit 348ee25e disabled the branch selector for local executors and
also blanked the branch value at submit time. This caused the backend
to fall back to Repository.DefaultBranch, which may contain whatever
branch was checked out at repo discovery time rather than "main".
Keep the selector disabled (cosmetic) but send the auto-selected
branch value so the backend uses the correct base branch.
* feat(web): add right-click context menu to move sidebar tasks between workflow steps
* fix: scope Move to submenu to task's own workflow steps
* fix: surgical rollback and disable actions during delete
* fix: wrap TaskItem in div for ContextMenuTrigger asChild ref forwarding
* refactor: unify right-click and 3-dot menus into single context menu
- Delete task-item-menu.tsx (DropdownMenu) — no longer needed
- TaskItem's 3-dot button now dispatches contextmenu event to trigger
the wrapping ContextMenu
- TaskItemWithContextMenu tracks open state and passes menuOpen to
TaskItem for hover visibility
- Add Duplicate item to the context menu
- Fix step color dots using block display
* fix: use Tailwind class for step color dots instead of inline style
* fix: disable Duplicate menu item until handler is implemented
* fix: defer move-to-step to let context menu close before optimistic update
* fix: defer move-to-step to let context menu close before optimistic update