Skip to content

Model Selection for Tasks & Schedules (MODEL-001) #49

Description

@vybe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions