Settings
++ No workspace selected. Use the sidebar to return to{' '} + + Workspace + {' '} + and select a project. +
++ No workspace selected. Use the sidebar to return to{' '} + + Workspace + {' '} + and select a project. +
++ Default model per agent type, plus per-task limits. +
+ + {isLoading && !draft ? ( +Loading…
+ ) : error ? ( ++ Failed to load settings. +
+ ) : draft ? ( +Coming soon
; +} + +interface AgentSettingsFormProps { + draft: AgentSettings; + onModelChange: (agentType: AgentTypeKey, model: string) => void; + onMaxTurnsChange: (value: number) => void; + onMaxCostChange: (value: number | null) => void; + onSave: () => void; + onDiscard: () => void; + saving: boolean; +} + +function AgentSettingsForm({ + draft, + onModelChange, + onMaxTurnsChange, + onMaxCostChange, + onSave, + onDiscard, + saving, +}: AgentSettingsFormProps) { + return ( +