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 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Opus 4.6 committed 2026-02-11 09:00:18 -08:00
1 parent 3047974fdc
commit 59448593d8
2 files changed
+8

No files matched your search

+6
View File
@@ -22,6 +22,11 @@ export const gitCreateBranchInputSchema = z.object({
branch: z.string().min(1),
});
export const gitCheckoutInputSchema = z.object({
cwd: z.string().min(1),
branch: z.string().min(1),
});
export const gitInitInputSchema = z.object({
cwd: z.string().min(1),
});
@@ -50,6 +55,7 @@ export type GitRemoveWorktreeInput = z.infer<
typeof gitRemoveWorktreeInputSchema
>;
export type GitCreateBranchInput = z.infer<typeof gitCreateBranchInputSchema>;
export type GitCheckoutInput = z.infer<typeof gitCheckoutInputSchema>;
export type GitInitInput = z.infer<typeof gitInitInputSchema>;
export interface GitListBranchesResult {
+2
View File
@@ -1,5 +1,6 @@
import type { AgentConfig, AgentExit, OutputChunk } from "./agent";
import type {
GitCheckoutInput,
GitCreateBranchInput,
GitCreateWorktreeInput,
GitCreateWorktreeResult,
@@ -76,6 +77,7 @@ export interface NativeApi {
createWorktree: (input: GitCreateWorktreeInput) => Promise<GitCreateWorktreeResult>;
removeWorktree: (input: GitRemoveWorktreeInput) => Promise<void>;
createBranch: (input: GitCreateBranchInput) => Promise<void>;
checkout: (input: GitCheckoutInput) => Promise<void>;
init: (input: GitInitInput) => Promise<void>;
};
}