feat(launch): manual worktree support for Codex and Gemini#69
Open
sergioestebance wants to merge 1 commit into
Open
feat(launch): manual worktree support for Codex and Gemini#69sergioestebance wants to merge 1 commit into
sergioestebance wants to merge 1 commit into
Conversation
Agents without native --worktree CLI support (Codex, Gemini) can now use worktrees via manual creation. When "Create worktree" is enabled for these agents, Kanban Code creates the git worktree before launching and cd's the agent into the worktree directory. - Remove supportsWorktree gate from launch dialog checkbox - Create worktree via GitWorktreeAdapter before non-native agent launch - Add isManual flag to WorktreeLink for cleanup tracking - Support .worktrees/ path pattern alongside .claude/worktrees/ across cleanup, reconciler, board state, fork, and git root resolution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--worktreeflag now get manual worktree creation before launchGitWorktreeAdapter, launches the agent cd'd into the worktree directory, and tracks it withisManualonWorktreeLinkfor cleanup/.claude/worktrees/and/.worktrees/patternsChanges
WorktreeLink(Link.swift)isManual: Bool?flagLaunchConfirmationDialogsupportsWorktreegate from checkbox +effectiveCreateWorktreeContentView+LaunchGitWorktreeAdapterremoveWorktreederives repo root from/.worktrees/pathsCardReconciler/.worktrees/BoardState/.worktrees/JsonlParser/.worktrees/ContentView.swift/.worktrees/ContentView+Worktree/.worktrees/Test plan
swift buildpassesswift testpasses (752 tests).worktrees/<name>and Codex starts in that directory--worktreestill used)