From 4aaed77705081009fe9e3d7025b545108f7db205 Mon Sep 17 00:00:00 2001 From: Clawd Date: Sat, 28 Feb 2026 18:32:21 -0800 Subject: Remove git worktree/branch management Session-scoped artifacts already solve the concurrent session problem. No need for worktrees or branches. Simpler is better. --- src/main/preload.ts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/main/preload.ts') diff --git a/src/main/preload.ts b/src/main/preload.ts index 1747763..7c1d634 100644 --- a/src/main/preload.ts +++ b/src/main/preload.ts @@ -3,7 +3,6 @@ import type { SDKMessage } from "@anthropic-ai/claude-agent-sdk"; import type { Project } from "./db/projects"; import type { Session, Message } from "./db/sessions"; import type { Phase, UserPermissionMode } from "./claude/phases"; -import type { GitWorktreeInfo } from "./git/worktree"; export interface ClaudeFlowAPI { // Projects @@ -32,7 +31,7 @@ export interface ClaudeFlowAPI { mode: UserPermissionMode ) => Promise; - // Session Artifacts (new session-specific) + // Session Artifacts (session-specific) readSessionArtifact: ( projectPath: string, sessionId: string, @@ -60,12 +59,6 @@ export interface ClaudeFlowAPI { content: string ) => Promise; - // Git - isGitRepo: (projectPath: string) => Promise; - getWorktreeInfo: (projectPath: string, sessionId: string) => Promise; - commitChanges: (worktreePath: string, message: string, files?: string[]) => Promise; - hasUncommittedChanges: (worktreePath: string) => Promise; - // Events onClaudeMessage: ( callback: (sessionId: string, message: SDKMessage) => void @@ -121,15 +114,6 @@ const api: ClaudeFlowAPI = { writeArtifact: (projectPath, filename, content) => ipcRenderer.invoke("artifact:write", projectPath, filename, content), - // Git - isGitRepo: (projectPath) => ipcRenderer.invoke("git:isRepo", projectPath), - getWorktreeInfo: (projectPath, sessionId) => - ipcRenderer.invoke("git:worktreeInfo", projectPath, sessionId), - commitChanges: (worktreePath, message, files) => - ipcRenderer.invoke("git:commit", worktreePath, message, files), - hasUncommittedChanges: (worktreePath) => - ipcRenderer.invoke("git:hasChanges", worktreePath), - // Events onClaudeMessage: (callback) => { const handler = ( -- cgit v1.2.3