Summary
Allow users to select which Claude model to use when running tasks and creating/editing schedules. The backend pipe already supports model passthrough (ParallelTaskRequest.model), but neither the frontend nor the scheduler sends it.
Default model: claude-opus-4-5
Preset Model List
claude-opus-4-5 (default)
claude-opus-4-6
claude-sonnet-4-6
claude-sonnet-4-5
claude-haiku-4-5
- Custom text input for advanced users
Changes
Backend
- Add
model TEXT column to agent_schedules table
- Add
model_used TEXT column to schedule_executions table
- Add
model field to ScheduleCreate, ScheduleUpdate, ScheduleResponse
- Scheduler service reads
schedule.model and passes to agent client
- Scheduler agent client includes
model in /api/task payload
Frontend
- Shared
ModelSelector.vue combobox component (dropdown + custom text)
- Model selector in TasksPanel above task input
- Model field in SchedulesPanel create/edit form
- Show
model_used on execution history rows and ExecutionDetail page
- Persist last-used task model in localStorage
Already Working (no changes needed)
- Agent
/api/task endpoint accepts model
ParallelTaskRequest has model field
- Backend forwards
model to agent
- MCP
chat_with_agent passes model in parallel mode
- Claude Code CLI
--model flag
Spec
docs/requirements/MODEL_SELECTION_TASKS_SCHEDULES.md
Summary
Allow users to select which Claude model to use when running tasks and creating/editing schedules. The backend pipe already supports model passthrough (
ParallelTaskRequest.model), but neither the frontend nor the scheduler sends it.Default model:
claude-opus-4-5Preset Model List
claude-opus-4-5(default)claude-opus-4-6claude-sonnet-4-6claude-sonnet-4-5claude-haiku-4-5Changes
Backend
model TEXTcolumn toagent_schedulestablemodel_used TEXTcolumn toschedule_executionstablemodelfield toScheduleCreate,ScheduleUpdate,ScheduleResponseschedule.modeland passes to agent clientmodelin/api/taskpayloadFrontend
ModelSelector.vuecombobox component (dropdown + custom text)model_usedon execution history rows and ExecutionDetail pageAlready Working (no changes needed)
/api/taskendpoint acceptsmodelParallelTaskRequesthasmodelfieldmodelto agentchat_with_agentpassesmodelin parallel mode--modelflagSpec
docs/requirements/MODEL_SELECTION_TASKS_SCHEDULES.md