Repository navigation
Replies: 1 comment
|
A conditional configure would help here. There is also a failover case where an idle thread has queued work, so refusing every queued thread would leave the work pinned to an exhausted account. Could configure offer an explicit, atomic retarget of matching queued selections in addition to its normal behavior? Proposed semantics:
This would let an operate client move pending work without cancel-and-replay. Cancelling is unsuitable for this operation: cancellation produces terminal run updates that can promote the next item, and cancelling a delegated-completion notice disposes its delivery cohort. A client-side final queue read followed by configure still admits a concurrent arrival between the two calls. Source checked at main a09aef3. Orchestrator already serializes commands under a thread lock and commits their events/effects/receipt together. The configure schema has no queue-retarget or conditional option there. This is a source-based proposal, not a full current-main dev-server reproduction or an implemented patch. Merged PR22579 fixes delegated completions following the current selection; it intentionally preserves ordinary queued user selections. This proposal keeps that default and makes failover retargeting explicit. Issue21705/PR22425 concern the separate provider-specific usage-hold policy. A useful regression would barrier an enqueue between the old client's final read and configure, then verify one atomic command handles both sides of that race. It should also cover attachment/cohort preservation, mixed selections, manual holds, a concurrent manual configuration change, actual adapter/session ownership across account and provider switches, native-background safety, and durable replay after a lost response/server restart. |
Uh oh!
There was an error while loading. Please reload this page.
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_configurechanges a thread's selection even while one of its runs is active or queued. A delegated-taskcompletion 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 orqueued? 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. Anoutside 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 existingcompletion-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.
Related, already open
the next tool boundary instead of interrupting the running tool, with that contract declared in the session's
capabilities. Today notices into a busy Claude orchestrator wait for the whole turn to end.
starts would also close the configure gap in 1.
Environment: T3 Code Nightly 0.1.2-nightly.20261022.3526 (
c45c6b97), Windows 11, Claude and Codex providers.All reactions