Skip to content

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

Closed

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

Activity

  1. added
    priority-p1
    type-feature
    on Mar 2, 2026
  2. vybe commented on Mar 3, 2026

    @vybe
    ContributorAuthor

    Validated and closed. MODEL-001 is fully implemented (2026-03-02):

    • ModelSelector.vue shared combobox with 7 presets + custom input
    • TasksPanel: model selector with localStorage persistence
    • SchedulesPanel: model field in create/edit forms, model badge in list
    • Database: migration Event Bus Infrastructure #22 adds model on agent_schedules, model_used on schedule_executions
    • Backend/Scheduler: full model passthrough pipeline to agent CLI --model flag
    • Audit: model_used recorded and displayed in execution history
    • Docs: requirements.md §10.5, feature-flows/model-selection.md, changelog entries
    • Bug fixes applied: dropdown filter fix, DB proxy param fix, corrected model IDs
  3. added a commit that references this issue on Jun 23, 2026
  4. added a commit that references this issue on Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-p1type-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions