mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-16 21:53:07 +00:00
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:
@@ -788,6 +788,8 @@ export interface PhaseModelConfig {
|
||||
// Quick tasks - commit messages
|
||||
/** Model for generating git commit messages from diffs */
|
||||
commitMessageModel: PhaseModelEntry;
|
||||
/** Model for generating pull request descriptions from branch diffs */
|
||||
prDescriptionModel: PhaseModelEntry;
|
||||
}
|
||||
|
||||
/** Keys of PhaseModelConfig for type-safe access */
|
||||
@@ -1189,6 +1191,8 @@ export interface GlobalSettings {
|
||||
// Session Tracking
|
||||
/** Maps project path -> last selected session ID in that project */
|
||||
lastSelectedSessionByProject: Record<string, string>;
|
||||
/** Maps session ID -> persisted model selection for that session */
|
||||
agentModelBySession?: Record<string, PhaseModelEntry>;
|
||||
|
||||
// Worktree Selection Tracking
|
||||
/** Maps project path -> last selected worktree (path + branch) for restoring on PWA reload */
|
||||
@@ -1567,6 +1571,8 @@ export const DEFAULT_PHASE_MODELS: PhaseModelConfig = {
|
||||
|
||||
// Commit messages - use fast model for speed
|
||||
commitMessageModel: { model: 'claude-haiku' },
|
||||
// PR descriptions - use balanced model for better quality descriptions
|
||||
prDescriptionModel: { model: 'claude-sonnet' },
|
||||
};
|
||||
|
||||
/** Current version of the global settings schema */
|
||||
|
||||
Reference in New Issue
Block a user