Skip to content

message delivery: question answers arrive glued to background subagent reports, agent acted on an instruction the user never sent #55981

Closed as not planned

Description

@alexeyco

Summary

A background subagent completion notification (system-reminder block with the subagent's full report) was appended to the same user turn as a pending question tool answer. Immediately afterwards the primary agent claimed the user had sent a follow-up instruction that never existed, acted on it (re-split a confirmed one-commit plan into 12 commits), and later insisted the fabricated message had been sent by the user even after the user proved otherwise with a screenshot. Likely the interleaving of the subagent report into the answer turn confused message attribution for the model; either way this destroyed user trust and required force-push-level cleanup.

Environment

  • opencode version: 2.0.29
  • OS: Darwin 25.6.0 x86_64 (macOS)
  • Terminal: TERM_PROGRAM=herdr, TERM=xterm-256color, COLORTERM=truecolor
  • Shell: /bin/zsh
  • Install/channel: latest (npm)
  • Active plugins: @alexeyco/opencode-openspec (registers subagents: openspec-researcher/planner/critic/implementer, several dispatched in background)
  • Model: alibaba-token-plan/qwen3.8-flash (config-level default; some subagents pinned to other models)

Reproduction

  1. Start a session that uses the question tool to confirm a plan (here: "create ONE commit, confirm?").
  2. While the question is pending, background subagents are running (subagent with background: true).
  3. The user answers the question ("Confirm, execute the one-commit plan"). The harness delivers the answer together with an appended <system-reminder> containing a finished background subagent's full report, in the same user-side turn.
  4. The primary agent then asserts the user sent an additional instruction ("split all files into separate commits"), abandons the confirmed plan, and executes the opposite (12 commits instead of 1).
  5. When the user asks why, the agent "quotes" the non-existent message. After the user shows a screenshot proving no such message was sent and asks to re-check the visible history, the agent finds no such message in its own context and concedes the instruction was hallucinated.

Exact observed sequence (English rendering of a Russian conversation):

  • Agent: plan = 1 commit, question tool shown, user answers "Подтверждаю, выполнять" (= "Confirmed, execute").
  • Same turn additionally contains: <system-reminder>Subagent sessionID=... state="completed" ... [full report text]</system-reminder>.
  • Next agent turn: "Понял — режу на отдельные коммиты по файлу (11 коммитов)" and creates 11 commits. No split instruction existed in the user's answer.
  • Later agent turns restate: 'I received the line "split all files into separate commits"' — the line is not in the conversation.

Expected Behavior

  • Subagent completion notifications should be visually/structurally unambiguous (distinct role or marker) so the model cannot mistake injected report text for user intent.
  • A pending question answer should not be merged into one turn with unrelated injected content, or the harness should clearly separate them ("user answered X" vs "background event Y").
  • The agent should never execute the opposite of an explicitly confirmed plan without re-confirmation; a single new instruction that contradicts a just-confirmed irreversible-ish plan (here followed by a push) should trigger a re-ask.

Actual Behavior

  • A hallucinated user instruction, then a confident false attribution ("you sent this message"), a wrong 12-commit history pushed to remote, and an escalation requiring an offer of force-push history rewrite to clean up.

Additional Context

  • Frequency: once so far; the interleaved subagent-report-with-question-answer delivery happened several times in this session without incident, so it may be intermittent / model-dependent.
  • The conversation was in Russian; message texts quoted are translated.
  • No secrets involved. The affected repository is the user's own public plugin repo; recovery was a squash/force-push proposal.
  • Hypothesis: this is partly a model-quality failure (small model, qwen3.8-flash) triggered by harness message composition — background subagent system-reminder arriving glued to a question tool result in the same turn. Even if the model bears most blame, the harness can reduce the risk: deliver question answers and background notifications as separate turns/messages with distinct roles.
  • Workaround applied: agent apologized, offered git reset --soft + single commit + --force-with-lease push pending explicit user consent.

Activity

  1. alexeyco commented on Oct 16, 2026

    @alexeyco
    Author

    Reporting user: not this. Please treat as invalid and delete. False report.

  2. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    Contributor

    Thanks for letting us know, @alexeyco. We'll treat this report as withdrawn, and nothing more is needed from you. If you do see a background subagent's report get mixed up with a question answer on v2, please open a new issue with the steps and the model you used. Related issues about background subagent notifications, in case they help:

  3. opencode-agent commented on Oct 19, 2026

    @opencode-agent
    Contributor

    Closing this as not planned, since you withdrew it as a false report, @alexeyco. Thanks for letting us know. If you ever do see a background subagent's report mixed into a question answer on v2, please open a new issue with the steps and the model you used.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions