diff options
| author | bndw <ben@bdw.to> | 2026-02-28 20:07:05 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-28 20:07:05 -0800 |
| commit | 9d192d16b7a4026b35ad2bcaff9edb9f2670de2b (patch) | |
| tree | 2603dd04c3567074e84be271c448ede02ee7097d /src/main/db/sessions.ts | |
| parent | 283013c09d4855529e846951a1e090f0f16030a8 (diff) | |
feat: git branches
Diffstat (limited to 'src/main/db/sessions.ts')
| -rw-r--r-- | src/main/db/sessions.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 { | |||
| 11 | phase: Phase; | 11 | phase: Phase; |
| 12 | claude_session_id: string | null; | 12 | claude_session_id: string | null; |
| 13 | permission_mode: PermissionMode; | 13 | permission_mode: PermissionMode; |
| 14 | git_branch: string | null; | ||
| 14 | created_at: number; | 15 | created_at: number; |
| 15 | updated_at: number; | 16 | updated_at: number; |
| 16 | } | 17 | } |
| @@ -52,6 +53,7 @@ export function createSession(projectId: string, name: string): Session { | |||
| 52 | phase: "research", | 53 | phase: "research", |
| 53 | claude_session_id: null, | 54 | claude_session_id: null, |
| 54 | permission_mode: "acceptEdits", | 55 | permission_mode: "acceptEdits", |
| 56 | git_branch: null, | ||
| 55 | created_at: now, | 57 | created_at: now, |
| 56 | updated_at: now, | 58 | updated_at: now, |
| 57 | }; | 59 | }; |
| @@ -59,7 +61,7 @@ export function createSession(projectId: string, name: string): Session { | |||
| 59 | 61 | ||
| 60 | export function updateSession( | 62 | export function updateSession( |
| 61 | id: string, | 63 | id: string, |
| 62 | updates: Partial<Pick<Session, "name" | "phase" | "claude_session_id" | "permission_mode">> | 64 | updates: Partial<Pick<Session, "name" | "phase" | "claude_session_id" | "permission_mode" | "git_branch">> |
| 63 | ): void { | 65 | ): void { |
| 64 | const db = getDb(); | 66 | const db = getDb(); |
| 65 | const sets: string[] = []; | 67 | const sets: string[] = []; |
