merge: integrate v0.13.0rc with React Query refactor

Resolved conflict in use-project-settings-loader.ts:
- Keep React Query approach from upstream
- Add phaseModelOverrides loading for provider model persistence
- Update both currentProject and projects array to keep in sync
This commit is contained in:
Stefan de Vogelaere
2026-01-20 19:36:30 +01:00
133 changed files with 9283 additions and 3269 deletions

View File

@@ -1029,6 +1029,18 @@ export interface GlobalSettings {
* Each PhaseModelEntry can specify a providerId for provider-specific models.
*/
activeClaudeApiProfileId?: string | null;
/**
* Per-worktree auto mode settings
* Key: "${projectId}::${branchName ?? '__main__'}"
*/
autoModeByWorktree?: Record<
string,
{
maxConcurrency: number;
branchName: string | null;
}
>;
}
/**
@@ -1308,6 +1320,7 @@ export const DEFAULT_GLOBAL_SETTINGS: GlobalSettings = {
// Deprecated - kept for migration
claudeApiProfiles: [],
activeClaudeApiProfileId: null,
autoModeByWorktree: {},
};
/** Default credentials (empty strings - user must provide API keys) */