The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | export function resolveProjectThreadCreationBranch(input: { |
| 2 | readonly workspaceMode: "local" | "worktree"; |
| 3 | readonly selectedBranch: string | null; |
| 4 | readonly currentCheckoutBranch: string | null; |
| 5 | }): string | null { |
| 6 | if (input.selectedBranch !== null) { |
| 7 | return input.selectedBranch; |
| 8 | } |
| 9 | return input.workspaceMode === "local" ? input.currentCheckoutBranch : null; |
| 10 | } |