Skip to content

fix(server): thread-bound scheduled tasks run on the thread's current provider - #13

Merged
mdatagent merged 1 commit into
customfrom
fix/scheduled-task-thread-provider
Oct 28, 2026
Merged

mdatagent merged 1 commit into
customfrom
fix/scheduled-task-thread-provider

Conversation

@mdatagent

Copy link
Copy Markdown
Collaborator

Upstream fix a27e32fba7 — thread-bound scheduled tasks run on the thread's current provider (pingdotgg/t3code#18467)

Existing systems changed

  1. ScheduledTaskService: a run of a thread-bound scheduled task no longer passes the task's stored modelSelection to ThreadManagementService.sendToThread. The send therefore uses the thread's current model selection, as sendToThread already does when no selection is given (the same path the MCP t3_thread_send tool uses).

    The stored selection now only seeds fresh threads (tasks without a bound thread still launch with it). Before, every automated run in a thread whose provider had changed since the task was created switched the thread to the task's provider and back.

How the systems interact

  1. Scheduler → ScheduledTaskService: on a timer, webhook or manual run, the service builds the prompt and queues it into the bound thread with mode: "queue".
  2. ThreadManagementService → provider session: with no selection on the message, the turn runs on the provider instance and model the thread is set to now.

Verifiable outcome

Upstream PR pingdotgg/t3code#18467 with its regression test

🤖 Generated with Claude Code

… provider

Port of upstream a27e32f (pingdotgg#18467).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mdatagent
mdatagent merged commit 55a4cce into custom Oct 28, 2026
7 of 22 checks passed
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS labels Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant