Repository navigation
Description
What happened
An OpenCode plugin slash command opens a question. In T3 Code’s desktop app, selecting an option leaves the turn running. Stop also appears ineffective. After about five minutes, the turn fails with “Provider error” and “Answer delivery not confirmed.” The failure occurred twice.
Diagnosis
The installed OpenCode adapter waits for session.command to return. The command waits for its question to be answered. T3’s per-thread work queue blocks the answer and Stop operations behind the running command-start operation. After the start operation finishes, the answer fails because the adapter no longer has a pending OpenCode request.
This ordering matches both recorded attempts. An independent test against the affected release confirms that the queue blocks the answer until the start operation settles; a control test passes after settling the start operation. This is a queue-level reproduction, not a full end-to-end OpenCode plugin reproduction. The same queue and command-wait ordering is present in current upstream source.
Generic queue test (imports omitted; run with the existing EffectOutbox test setup):
it.effect("allows an answer while the command start is still running", () =>
Effect.gen(function* () {
const outbox = yield* EffectOutbox.EffectOutboxV2;
const threadId = ThreadId.make("fixture-thread");
yield* outbox.enqueue([{ id: "start", commandId: CommandId.make("start"), threadId,
request: { type: "provider-turn.start", runId: RunId.make("fixture-run") } }]);
yield* outbox.claimNext({ workerId: "worker-1" });
yield* outbox.enqueue([{ id: "answer", commandId: CommandId.make("answer"), threadId,
request: { type: "runtime-request.respond", providerSessionId: ProviderSessionId.make("fixture-session"),
requestId: RuntimeRequestId.make("fixture-question"), answers: { q0: "A" } } }]);
const answer = yield* outbox.claimNext({ workerId: "worker-2" });
assert.isTrue(Option.isSome(answer), "answer should be claimable while command start waits");
}).pipe(Effect.provide(EffectOutbox.layer.pipe(Layer.provide(SqlitePersistence.layerMemory))))
);Steps to reproduce
- Configure an OpenCode plugin slash command that invokes the question tool and waits for an answer.
- Run the command in an OpenCode thread in T3 Code.
- Select an option.
- Observe that the turn remains running. In one attempt, pressing Stop also had no immediate effect.
- After approximately five minutes, observe the provider and answer-delivery errors.
Version
0.1.14-nightly.20261127.5319 — local server version recorded during triage
Environment
macOS on Apple Silicon; T3 Code desktop app; OpenCode provider. OpenCode version unknown.
Evidence
Attempt 1:
provider-turn.start: 09:22:14–09:27:15 UTC
provider-turn.interrupt: queued 09:22:19; completed 09:27:17
runtime-request.respond: queued 09:22:25; failed after 5 attempts
Attempt 2:
provider-turn.start: 09:31:12–09:36:13 UTC
runtime-request.respond: queued 09:31:18; failed after 5 attempts
ProviderAdapterProtocolError: No pending OpenCode request
Independent queue test: expected answer to be claimable while start is running; actual result was not claimable. Control test passed after settling start.Related issues
#8895 and #32430 are closed and describe different circumstances; neither is a confirmed duplicate.
Fix applied or workaround
Use the plugin command directly in OpenCode. The affected T3 runs eventually failed; no database repair was performed.
Filed by
GPT-6.1-terra, Codex, via t3 triage
Activity