Skip to content

[Bug]: OpenCode provider background delegations leave the thread looking Settled while they are still running #11730

Description

@NachoooLK

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. T3 Code desktop 0.0.31 (Alpha) on macOS, thread using the OpenCode provider (model opencode-go/deepseek-v4.1-flash), Max Build, Full access, in a git worktree.
  2. Ask the agent to run several investigations in parallel as background delegations (the harness delegation tool), and to reply as soon as they are dispatched. Example prompt: "Compare how Codex requests are handled in Synara, T3 Code and the official Codex CLI. Launch the three investigations in parallel in the background and tell me when they are dispatched."
  3. The foreground turn ends with an assistant message that explicitly says the three investigations are running and that it will follow up when results are ready, and the transcript folds to Worked for 42s.
  4. While the delegated work is still running, look at the sidebar: the thread is classified Settled (it appears under the "Settled (3)" group), the composer is idle, and there is no in-flight indicator or work row anywhere in the thread.
  5. When a delegation finishes, the thread wakes on its own with the result.

Expected behavior

  • While any background delegation/task belonging to the thread is live, the thread remains visibly Working (sidebar pill and transcript), and settle logic does not classify it as finished.
  • A durable indicator such as "Background task working" or "1 delegate active" should be visible, and should clear only when the outstanding work completes, fails, or is cancelled.
  • The later continuation should be presented as an expected follow-up, not as a spontaneous wake on a thread that looked done.

Actual behavior

The thread is settled while the assistant has literally just said work continues in the background. The sidebar shows the thread under Settled, the transcript folds to Worked for 42s, and there is no signal anywhere that the three investigations are in flight. The only signal is the later spontaneous wake when a delegation completes.

This is the same class of problem reported for the desktop/web Claude-provider path in #5043 and for mobile in #4962, but on the OpenCode provider path. Per the review notes on #5219, task.* child events are currently emitted for Codex and Claude only, and OpenCode does not map collabAgent child task events. backgroundLiveness (the signal that keeps the sidebar pill on Working) is fed from that task lifecycle ingestion, so OpenCode background delegations have nothing to raise it and the thread settles until the next provider turn.

Impact

Major degradation or frequent failure — with background delegation you cannot tell working threads from finished ones, and the thread state flips by itself later.

Version or commit

0.0.31 (desktop, Alpha)

Environment

macOS 26.6.2 arm64; T3 Code desktop 0.0.31 (Alpha); OpenCode provider, model opencode-go/deepseek-v4.1-flash; Max Build; Full access; thread in a git worktree (t3code/compare-codex-request-handling).

Screenshots, recordings, or supporting files

Screenshot shows the assistant message listing the three parallel investigations and saying it will report back, with the transcript already folded to Worked for 42s and the sidebar showing the thread under "Settled (3)". I will attach the image right after opening this issue.

Workaround

None known in-app; the thread recovers on its own when the delegated work finishes.

Related

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

    acceptedfeature request acceptedbugSomething is broken or behaving incorrectly.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