mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-20 11:03:08 +00:00
Feature: worktree view customization and stability fixes (#805)
* Changes from feature/worktree-view-customization * Feature: Git sync, set-tracking, and push divergence handling (#796) * Add quick-add feature with improved workflows (#802) * Changes from feature/quick-add * feat: Clarify system prompt and improve error handling across services. Address PR Feedback * feat: Improve PR description parsing and refactor event handling * feat: Add context options to pipeline orchestrator initialization * fix: Deduplicate React and handle CJS interop for use-sync-external-store Resolve "Cannot read properties of null (reading 'useState')" errors by deduplicating React/react-dom and ensuring use-sync-external-store is bundled together with React to prevent CJS packages from resolving to different React instances. * Changes from feature/worktree-view-customization * refactor: Remove unused worktree swap and highlight props * refactor: Consolidate feature completion logic and improve thinking level defaults * feat: Increase max turn limit to 10000 - Update DEFAULT_MAX_TURNS from 1000 to 10000 in settings-helpers.ts and agent-executor.ts - Update MAX_ALLOWED_TURNS from 2000 to 10000 in settings-helpers.ts - Update UI clamping logic from 2000 to 10000 in app-store.ts - Update fallback values from 1000 to 10000 in use-settings-sync.ts - Update default value from 1000 to 10000 in DEFAULT_GLOBAL_SETTINGS - Update documentation to reflect new range: 1-10000 Allows agents to perform up to 10000 turns for complex feature execution. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * feat: Add model resolution, improve session handling, and enhance UI stability * refactor: Remove unused sync and tracking branch props from worktree components * feat: Add PR number update functionality to worktrees. Address pr feedback * feat: Optimize Gemini CLI startup and add tool result tracking * refactor: Improve error handling and simplify worktree task cleanup --------- Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -352,10 +352,13 @@ export function getThinkingLevelsForModel(model: string): ThinkingLevel[] {
|
||||
/**
|
||||
* Get the default thinking level for a given model.
|
||||
* Used when selecting a model via the primary button in the two-stage selector.
|
||||
* Always returns 'none' — users can configure their preferred default
|
||||
* via the defaultThinkingLevel setting in the model defaults page.
|
||||
* Returns 'adaptive' for Opus models (which support adaptive thinking),
|
||||
* and 'none' for all other models.
|
||||
*/
|
||||
export function getDefaultThinkingLevel(_model: string): ThinkingLevel {
|
||||
export function getDefaultThinkingLevel(model: string): ThinkingLevel {
|
||||
if (isAdaptiveThinkingModel(model)) {
|
||||
return 'adaptive';
|
||||
}
|
||||
return 'none';
|
||||
}
|
||||
|
||||
@@ -1203,7 +1206,7 @@ export interface GlobalSettings {
|
||||
/** Default maximum number of agent turns (tool call round-trips) for feature execution.
|
||||
* Controls how many iterations the AI agent can perform before stopping.
|
||||
* Higher values allow more complex tasks but use more API credits.
|
||||
* Defaults to 1000. Range: 1-2000.
|
||||
* Defaults to 10000. Range: 1-10000.
|
||||
*
|
||||
* Note: Currently supported by Claude (via SDK) and Codex (via CLI config).
|
||||
* Gemini and OpenCode CLI providers do not support max turns configuration. */
|
||||
@@ -1528,6 +1531,23 @@ export interface ProjectSettings {
|
||||
*/
|
||||
worktreeCopyFiles?: string[];
|
||||
|
||||
// Worktree Display Settings
|
||||
/**
|
||||
* Number of non-main worktrees to pin as tabs in the UI.
|
||||
* The main worktree is always shown separately. Default: 0.
|
||||
*/
|
||||
pinnedWorktreesCount?: number;
|
||||
/**
|
||||
* Minimum number of worktrees before the list collapses into a compact dropdown selector.
|
||||
* Must be >= pinnedWorktreesCount to avoid conflicting configurations. Default: 3.
|
||||
*/
|
||||
worktreeDropdownThreshold?: number;
|
||||
/**
|
||||
* When true, always show worktrees in a combined dropdown regardless of count.
|
||||
* Overrides the dropdown threshold. Default: true.
|
||||
*/
|
||||
alwaysUseWorktreeDropdown?: boolean;
|
||||
|
||||
// Session Tracking
|
||||
/** Last chat session selected in this project */
|
||||
lastSelectedSessionId?: string;
|
||||
@@ -1652,7 +1672,7 @@ export const DEFAULT_PHASE_MODELS: PhaseModelConfig = {
|
||||
validationModel: { model: 'claude-sonnet' },
|
||||
|
||||
// Generation - use powerful models for quality
|
||||
specGenerationModel: { model: 'claude-opus' },
|
||||
specGenerationModel: { model: 'claude-opus', thinkingLevel: 'adaptive' },
|
||||
featureGenerationModel: { model: 'claude-sonnet' },
|
||||
backlogPlanningModel: { model: 'claude-sonnet' },
|
||||
projectAnalysisModel: { model: 'claude-sonnet' },
|
||||
@@ -1720,7 +1740,7 @@ export const DEFAULT_GLOBAL_SETTINGS: GlobalSettings = {
|
||||
useWorktrees: true,
|
||||
defaultPlanningMode: 'skip',
|
||||
defaultRequirePlanApproval: false,
|
||||
defaultFeatureModel: { model: 'claude-opus' }, // Use canonical ID
|
||||
defaultFeatureModel: { model: 'claude-opus', thinkingLevel: 'adaptive' }, // Use canonical ID with adaptive thinking
|
||||
muteDoneSound: false,
|
||||
disableSplashScreen: false,
|
||||
serverLogLevel: 'info',
|
||||
@@ -1728,9 +1748,9 @@ export const DEFAULT_GLOBAL_SETTINGS: GlobalSettings = {
|
||||
showQueryDevtools: true,
|
||||
enableAiCommitMessages: true,
|
||||
phaseModels: DEFAULT_PHASE_MODELS,
|
||||
defaultThinkingLevel: 'none',
|
||||
defaultThinkingLevel: 'adaptive',
|
||||
defaultReasoningEffort: 'none',
|
||||
defaultMaxTurns: 1000,
|
||||
defaultMaxTurns: 10000,
|
||||
enhancementModel: 'sonnet', // Legacy alias still supported
|
||||
validationModel: 'opus', // Legacy alias still supported
|
||||
enabledCursorModels: getAllCursorModelIds(), // Returns prefixed IDs
|
||||
|
||||
Reference in New Issue
Block a user