Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Agent-created threads ignore the app's default model selection, so they start at Medium effort even when the default is High #48183

Openbeausee(GitHub profile, opens in a new tab) opened this issue 0 comments

Area

apps/server

Summary

Threads created by an agent (through the T3 MCP tools, e.g. t3_thread_launch / create_threads) do not inherit the app's default model selection (defaultModelSelection in settings). When the agent passes no effort, the new thread records no effort and shows Medium, even when the app default says high. Threads opened by hand in the app get the default correctly.

Cause (as read from the server's selection order)

The server picks the model selection for a new thread in this order:

  1. the model selection passed by the agent;
  2. the model selection of the calling thread;
  3. the app default (defaultModelSelection).

An agent-created thread almost always gets step 1 or 2, so step 3 is never reached. When the selection from step 1 or 2 has no effort option, nothing fills it in from the app default, and the provider falls back to its catalog default (Medium).

Steps to reproduce

  1. In settings, set the default model selection to a Claude model with effort high.
  2. Open a new thread by hand: it starts at High (expected).
  3. From an agent in another thread, create a thread through the T3 MCP tools, passing a model but no effort option (or no model selection at all).
  4. Open the new thread: the effort shows Medium, and the thread's stored model selection has no effort.

Expected behavior

Agent-created threads use the app default like threads opened by hand. At minimum, when the selection used has no effort, the server fills in the effort from the app default and records it on the thread.

#16406 (closed) covered the composer/runtime mismatch for a launch without options; this issue is about the default itself not being applied to agent-created threads.

  1. tanstack-source added labelsbug

Sign in to join this conversation.