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 25, 19:45 UTC
Add branch/env picker toolbar and create branch flow
Move branch picking from sidebar context menu into ChatView input toolbar. Add env mode toggle (local/worktree) that locks after first message, branch dropdown with create-new-branch inline form, and wire up git:create-branch IPC channel. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Julius Marminge committed
Feb 8, 2026 at 22:57 UTC
3047974fdc759674eeac3969456656e3b8bf40d1
2 files changed
+8
packages/contracts/src/git.ts
+6
@@ -17,6 +17,11 @@ export const gitRemoveWorktreeInputSchema = z.object({
17
path: z.string().min(1),
18
});
19
20
+export const gitCreateBranchInputSchema = z.object({
21
+ cwd: z.string().min(1),
22
+ branch: z.string().min(1),
23
+});
24
+
25
export const gitInitInputSchema = z.object({
26
cwd: z.string().min(1),
27
});
@@ -44,6 +49,7 @@ export type GitWorktree = z.infer<typeof gitWorktreeSchema>;
49
export type GitRemoveWorktreeInput = z.infer<
50
typeof gitRemoveWorktreeInputSchema
51
>;
52
+export type GitCreateBranchInput = z.infer<typeof gitCreateBranchInputSchema>;
53
export type GitInitInput = z.infer<typeof gitInitInputSchema>;
54
55
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
+ GitCreateBranchInput,
4
GitCreateWorktreeInput,
5
GitCreateWorktreeResult,
6
GitInitInput,
@@ -74,6 +75,7 @@ export interface NativeApi {
75
listBranches: (input: GitListBranchesInput) => Promise<GitListBranchesResult>;
76
createWorktree: (input: GitCreateWorktreeInput) => Promise<GitCreateWorktreeResult>;
77
removeWorktree: (input: GitRemoveWorktreeInput) => Promise<void>;
78
+ createBranch: (input: GitCreateBranchInput) => Promise<void>;
79
init: (input: GitInitInput) => Promise<void>;
80
};
81
}