The best way to control Claude Code, Codex and more from any computer or phone
Add git checkout support and clear errors on success
Wire up git:checkout IPC channel across the full stack so branch selection actually checks out the branch. Clear error banners when a subsequent checkout or branch creation succeeds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Julius Marminge committed
Feb 8, 2026 at 23:19 UTC
59448593d8e6b067e1691150f1925107114f3cc7
2 files changed
+8
packages/contracts/src/git.ts
+6
@@ -22,6 +22,11 @@ export const gitCreateBranchInputSchema = z.object({
22
branch: z.string().min(1),
23
});
24
25
+export const gitCheckoutInputSchema = z.object({
26
+ cwd: z.string().min(1),
27
+ branch: z.string().min(1),
28
+});
29
+
30
export const gitInitInputSchema = z.object({
31
cwd: z.string().min(1),
32
});
@@ -50,6 +55,7 @@ export type GitRemoveWorktreeInput = z.infer<
55
typeof gitRemoveWorktreeInputSchema
56
>;
57
export type GitCreateBranchInput = z.infer<typeof gitCreateBranchInputSchema>;
58
+export type GitCheckoutInput = z.infer<typeof gitCheckoutInputSchema>;
59
export type GitInitInput = z.infer<typeof gitInitInputSchema>;
60
61
export interface GitListBranchesResult {
packages/contracts/src/ipc.ts
+2
@@ -1,5 +1,6 @@
1
import type { AgentConfig, AgentExit, OutputChunk } from "./agent";
2
import type {
3
+ GitCheckoutInput,
4
GitCreateBranchInput,
5
GitCreateWorktreeInput,
6
GitCreateWorktreeResult,
@@ -76,6 +77,7 @@ export interface NativeApi {
77
createWorktree: (input: GitCreateWorktreeInput) => Promise<GitCreateWorktreeResult>;
78
removeWorktree: (input: GitRemoveWorktreeInput) => Promise<void>;
79
createBranch: (input: GitCreateBranchInput) => Promise<void>;
80
+ checkout: (input: GitCheckoutInput) => Promise<void>;
81
init: (input: GitInitInput) => Promise<void>;
82
};
83
}