Fix: Restore views properly, model selection for commit and pr and speed up some cli models with session resume (#801)

* Changes from fix/restoring-view

* feat: Add resume query safety checks and optimize store selectors

* feat: Improve session management and model normalization

* refactor: Extract prompt building logic and handle file path parsing for renames
This commit is contained in:
gsxdsm
2026-02-22 10:45:45 -08:00
committed by GitHub
parent 2f071a1ba3
commit 9305ecc242
26 changed files with 761 additions and 203 deletions

View File

@@ -2204,10 +2204,32 @@ export class HttpApiClient implements ElectronAPI {
}),
commit: (worktreePath: string, message: string, files?: string[]) =>
this.post('/api/worktree/commit', { worktreePath, message, files }),
generateCommitMessage: (worktreePath: string) =>
this.post('/api/worktree/generate-commit-message', { worktreePath }),
generatePRDescription: (worktreePath: string, baseBranch?: string) =>
this.post('/api/worktree/generate-pr-description', { worktreePath, baseBranch }),
generateCommitMessage: (
worktreePath: string,
model?: string,
thinkingLevel?: string,
providerId?: string
) =>
this.post('/api/worktree/generate-commit-message', {
worktreePath,
model,
thinkingLevel,
providerId,
}),
generatePRDescription: (
worktreePath: string,
baseBranch?: string,
model?: string,
thinkingLevel?: string,
providerId?: string
) =>
this.post('/api/worktree/generate-pr-description', {
worktreePath,
baseBranch,
model,
thinkingLevel,
providerId,
}),
push: (worktreePath: string, force?: boolean, remote?: string, autoResolve?: boolean) =>
this.post('/api/worktree/push', { worktreePath, force, remote, autoResolve }),
sync: (worktreePath: string, remote?: string) =>