Skip to content

OpenCode 2 asks for approval again after T3 records the question answer #29467

Open

Description

@satyalyadav

What happened

I answered the resume-plan question, but the agent continued as though I had not answered and asked for approval again. This has happened before.

Diagnosis

Confirmed mismatch between T3's saved answer and the agent's continuation. Root cause remains unconfirmed. Exact-build OpenCode 2 adapter catches FormNotFoundError, FormAlreadySettledError and SessionNotFoundError as success before checking delivery. A successful response-handler span therefore does not prove the answer reached the model. The observed run does not establish that any of these errors occurred. Provider history required authentication and was not obtained. No deterministic reproduction was established.

Source at commit 54c5f25: packages/provider-opencode/src/server/v2/adapter.ts:463-467 and 3809-3882.

Steps to reproduce

Observed sequence, not a deterministic reproduction:

  1. Start an OpenCode 2 thread and have it request approval through a structured question.
  2. Select Approve plan (Recommended).
  3. T3 completes the question and stores the answer.
  4. The agent says it is still waiting on approval.
    The agent mentioned server restarts, but those claims alone do not establish a restart or its role.

Version

0.1.7-nightly.20261031.4004, confirmed by user and local server facts

Environment

Windows desktop client; WSL2 Linux x64 server, kernel 6.18.54.1-microsoft-standard-WSL2; Node v26.12.1; OpenCode 2 adapter, model opencode/deepseek-v4.1-flash-free. Local CLI now reports v2.2.5; incident-time CLI version unverified.

Evidence

2026-11-02, UTC:
16:27:24.554 structured approval question created
16:33:55.607 request status=resolved, answers={"q0":"Approve plan (Recommended)"}; question card completed with same answer
16:33:55.636-16:33:55.679 OpenCode2Adapter.respondToRuntimeRequest exit=Success
16:34:07.018 agent: "Still waiting on approval before editing"
Sources: read-only SQLite projections and server.trace.ndjson rotation. No raw private conversation, credentials or home paths included.

Related issues

#25033 is possibly related but changes the older OpenCode adapter, not server/v2/adapter.ts. Its answer-overwrite symptom differs from this preserved-answer case. No exact duplicate identified in issue/PR/Discussion searches.

Fix applied or workaround

The user separately sent "i have approved the plan" as an ordinary chat message. This started another run; successful completion was not verified. No configuration, database, service or source changes applied. Compared newer release commits through v0.1.7-nightly.20261102.4080; no confirmed fix for this case found.

Filed by

GPT-6.1 Sol through the Codex harness in T3 Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions