feat(desktop): add interactive git branch indicator to chat bottom bar (#11290)

Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Douwe Osinga <douwe.osinga@gmail.com>
Co-authored-by: Douwe Osinga <douwe.osinga@gmail.com>
This commit is contained in:
Abhijay Jain
2026-08-18 17:18:59 +00:00
committed by GitHub
parent 935a37a684
commit c962612bc4
21 changed files with 429 additions and 0 deletions
+7
View File
@@ -180,6 +180,9 @@ type ElectronAPI = {
addRecentDir: (dir: string) => Promise<boolean>;
listRecentDirs: () => Promise<string[]>;
listGitWorktreeDirs: (dir: string) => Promise<string[]>;
getGitBranchInfo: (dir: string) => Promise<{ branch: string } | null>;
listGitBranches: (dir: string) => Promise<string[]>;
switchGitBranch: (dir: string, branch: string) => Promise<{ success: boolean; error?: string }>;
};
type AppConfigAPI = {
@@ -339,6 +342,10 @@ const electronAPI: ElectronAPI = {
addRecentDir: (dir: string) => ipcRenderer.invoke('add-recent-dir', dir),
listRecentDirs: () => ipcRenderer.invoke('list-recent-dirs'),
listGitWorktreeDirs: (dir: string) => ipcRenderer.invoke('list-git-worktree-dirs', dir),
getGitBranchInfo: (dir: string) => ipcRenderer.invoke('get-git-branch-info', dir),
listGitBranches: (dir: string) => ipcRenderer.invoke('list-git-branches', dir),
switchGitBranch: (dir: string, branch: string) =>
ipcRenderer.invoke('switch-git-branch', dir, branch),
};
function getAppLocale(): unknown {