Skip to content

Background subagent completion flips active TUI model without viewing child session #47526

Closed as not planned

Description

@SK-DEV-AI

Background subagent completion changes the active TUI model without opening the child session.

Repro:

  1. Open a TUI parent session on opencode/muse-spark-1.3-contributor-free, variant xhigh.
  2. Launch a background general subagent on opencode/mimo-v2.5-free.
  3. Do not open the child session view.
  4. Wait for the background completion notice, then check the TUI footer before opening anything.

Expected:
Parent stays on muse-spark-1.3-contributor-free.

Actual:
Active TUI model flips to mimo-v2.5-free.

Stored rows after the flip:

  • parent ses_10a529466ffekP3eyrKuFbDs4t: build, {"id":"muse-spark-1.3-contributor-free","providerID":"opencode","variant":"xhigh"}
  • child ses_f8d6a7bcfffefDiTWqKnKiNMIU: general, {"id":"mimo-v2.5-free","providerID":"opencode","variant":"default"}

So the persisted parent session keeps the right model; the live TUI selection follows the finished background child.

Related:

Environment:

  • opencode 1.18.25 TUI
  • Latest release at report time: v1.18.29
  • Linux, local config with explicit agent.build and subagent models.

Activity

  1. github-actions commented on Sep 5, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions