You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Delegated tasks: a conditional thread_configure, and acknowledging one task's completion from outside #24294
We run a long-lived orchestrator thread that delegates many tasks and is sometimes moved to another provider instance
with t3_thread_configure. Two gaps make that move unsafe today, and two related requests are already open.
1. A conditional configure
t3_thread_configure changes a thread's selection even while one of its runs is active or queued. A delegated-task
completion notice that was queued just before the change can then start on the old selection (the same family as #22577).
Could it take a condition, for example ifIdle: true, that refuses the change when any run of the thread is active or
queued? The check would run under the thread's dispatch lock together with the change, and a refusal would never
interrupt or cancel anything.
2. Acknowledging one task's completion from outside
Cancelling a queued completion notice (t3_queue_cancel) disposes the whole cohort of tasks that notice carries. An
outside operate client that has already relayed one task's result has no way to mark only that task delivered.
Could an MCP tool, for example delegated_task_acknowledge {parentThreadId, taskId}, dispatch the existing
completion-delivery acknowledgement and remove that task from the queued notice? It should be an acknowledgement, not
a cancel that returns the task to pending, which would deliver it again.
Activity