Skip to content

schedule_task permanently pins the calling agent's model, and nothing over MCP can set, see, or change it #42411

Duplicate

Description

@quinnypig

What happened

I set my default model to Claude Opus 5.5. I set it globally. I tried to set it on the project, too, but that went into a different void, one that has since been fixed (#42282, more on that below). And yet every single time my webhook-triggered "Switchboard triage" task woke up, it reached past all of that and started the thread on claude-fable-5-2, like a houseguest who ignores the guest room you made up and sleeps in the bathtub every night because that's where they slept the first time.

So I went looking for the setting that was doing this. Over MCP, it doesn't exist:

  • schedule_task has no model parameter. No options either, so effort is out too.
  • Updating the task through schedule_task can't change the model.
  • list_scheduled_tasks doesn't show the model. It shows the title, the prompt, the schedule, whether it's enabled, the last run status, and then just stops talking, like a witness who's been advised by counsel.

The model is stored. It's sitting right there in scheduled_tasks.model_selection_json. Agents can't see it, can't set it, and can't fix it. The only door in is the Scheduled tasks editor in Settings, which no agent will ever click on, because it's an agent.

Diagnosis

Here's the whole mystery, in two lines:

// apps/server/src/mcp/OrchestratorMcpService.ts:2375 (v0.1.11); ~2461 on main
const modelSelection =
  parent?.thread.modelSelection ?? (yield* projectDefaultModelSelection(project));

Translation: "Whatever model the agent who scheduled this was running at that moment is now the model forever. Tell no one."

The project default only gets a look-in when there's no calling thread. Over MCP, there essentially always is one, because that's what an agent is. The global default never gets consulted at all. So the model your scheduled work runs on, possibly for weeks, is set by whichever model happened to be holding the pen the day you said "hey, set this up." It's model selection by birth order.

The schemas back this up:

  • OrchestratorMcpScheduleTaskInput / OrchestratorMcpSaveScheduledTaskInput (packages/contracts/src/orchestratorMcp.ts) have no modelSelection field.
  • service.updateScheduledTask accepts prompt, title, schedule, enabled, freshSession, and bindToCurrentThread. Model is not invited.
  • OrchestratorMcpScheduledTask, the result of both create and list, has no model field. The one thing you'd need to debug this is the one thing it won't say.

Still true on main as of today.

Steps to reproduce

  1. Set the global default model to model A (say, claude-opus-5-5).
  2. From an agent thread running model B (say, claude-fable-5-2), call schedule_task with a prompt and a webhook or cron schedule. Leave out bindToCurrentThread.
  3. Call list_scheduled_tasks. Observe the absence of any model, which is a strange thing to observe but here we are.
  4. Trigger the task. The run's thread starts on model B.
  5. For the morbidly curious: select model_selection_json from scheduled_tasks shows model B, along with whatever options the caller had on, frozen in amber.

Version

Server 0.1.11, current stable (serverVersion from /.well-known/t3/environment). The relevant code is unchanged on main. The triage CLI is also 0.1.11, for completeness.

Environment

Linux arm64 cloud host, t3 background service (boot-service), MCP tools called from Claude Agent threads (claudeAgent provider). Settings have projectSettingsFolded: true.

Evidence

Task scheduled-task:89e1e3d8-a52b-42f2-b375-26f0a329debb, created 2026-11-23T21:29Z with created_by=agent and creation_source=mcp. Its stored model_selection_json:

{"instanceId":"claudeAgent","model":"claude-fable-5-2","options":[{"id":"fastMode","value":false}]}

Its run_count was 12. I checked three of those runs, at 19:33:36Z, 19:34:26Z, and 19:36:01Z on 2026-11-24. All three started on claudeAgent / claude-fable-5-2.

Then I looked at the rest of the table. Four other agent-created tasks on the same machine had quietly pinned themselves to Fable the same way. I didn't pick that model for any of them. Nobody picked it. It was inherited, like a family curse or a Terraform state file.

After I edited the tasks by hand in Settings → Scheduled tasks, they stored claude-opus-5-5. So the plumbing works fine. Agents just aren't allowed near the faucet.

Related issues

Fix applied or workaround

I edited each task by hand in Settings → Scheduled tasks and picked the model I'd been assuming it was using all along. The web editor sends modelSelection on save, and it sticks. No local patch.

What I'd love:

  1. schedule_task takes an optional modelSelection, options like effort included, on both create and update.
  2. When none is given, a new-thread task follows the project or global default at run time instead of permanently adopting the caller's model. Or, if pinning is the intended design (I can see an argument for it), say so in the result so it isn't a surprise discovered via SQLite.
  3. list_scheduled_tasks and the schedule_task result include the stored model, so the next person debugging this can do it without opening the database.

Filed by

Claude Opus 5.5 (claude-opus-5-5) in Claude Code, via t3 triage, on behalf of the user. Which model wrote this was a deliberate choice, and I'd like scheduled tasks to get the same courtesy.

Activity

  1. added
    via-triage
    on Nov 24, 2026
  2. juliusmarminge commented on Nov 24, 2026

    @juliusmarminge
    Member

    This is the same problem as #16833, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions