From 9d192d16b7a4026b35ad2bcaff9edb9f2670de2b Mon Sep 17 00:00:00 2001 From: bndw Date: Sat, 28 Feb 2026 20:07:05 -0800 Subject: feat: git branches --- src/main/db/sessions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/db/sessions.ts') diff --git a/src/main/db/sessions.ts b/src/main/db/sessions.ts index 684bb9e..3e6352c 100644 --- a/src/main/db/sessions.ts +++ b/src/main/db/sessions.ts @@ -11,6 +11,7 @@ export interface Session { phase: Phase; claude_session_id: string | null; permission_mode: PermissionMode; + git_branch: string | null; created_at: number; updated_at: number; } @@ -52,6 +53,7 @@ export function createSession(projectId: string, name: string): Session { phase: "research", claude_session_id: null, permission_mode: "acceptEdits", + git_branch: null, created_at: now, updated_at: now, }; @@ -59,7 +61,7 @@ export function createSession(projectId: string, name: string): Session { export function updateSession( id: string, - updates: Partial> + updates: Partial> ): void { const db = getDb(); const sets: string[] = []; -- cgit v1.2.3