Skip to content

[BUG]: Stale read from <Show> crash when trying to access subagent task #16039

Closed

Description

@tppawelgrzesik

Description

Windows Desktop App

I'm working with an "Orchestrator" primary agent, he spawns subagents, sometimes when I try to access a subagent right after he got created I get a critical error:

Error: Stale read from <Show>.
    at castError (http://tauri.localhost/assets/index-CA-c6q8u.js:1:10353)
    at handleError (http://tauri.localhost/assets/index-CA-c6q8u.js:1:10586)
    at runComputation (http://tauri.localhost/assets/index-CA-c6q8u.js:1:6908)
    at updateComputation (http://tauri.localhost/assets/index-CA-c6q8u.js:1:6483)
    at runTop (http://tauri.localhost/assets/index-CA-c6q8u.js:1:7917)
    at runQueue (http://tauri.localhost/assets/index-CA-c6q8u.js:1:8818)
    at completeUpdates (http://tauri.localhost/assets/index-CA-c6q8u.js:1:8191)
    at runUpdates (http://tauri.localhost/assets/index-CA-c6q8u.js:1:8108)
    at batch (http://tauri.localhost/assets/index-CA-c6q8u.js:1:3650)
    at flush (http://tauri.localhost/assets/index-ByGhJJRD.js:2306:44483)

Plugins

No response

OpenCode version

v1.2.17

Steps to reproduce

I start a new session, start working with it by describing a task that requires a custom subagent to be used, after thinking the model does execute the task tool and spawn the subagent, I click on the label to go into its session and I instantly get the crash.

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on Mar 4, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of (or related to) existing issues about subagent session navigation. Please check:

    The crash you're seeing when clicking into a subagent session may be related to the same refactor introduced in commit 90270c615. If you can confirm whether the crash is reproducible via the keyboard shortcut (Ctrl+X Down) as well, that would help distinguish whether this is a new crash on top of the navigation issue or a separate problem.

  2. tppawelgrzesik commented on Mar 6, 2026

    @tppawelgrzesik
    Author

    Can be still reproduced with 1.2.20

    Image
  3. adamdotdevin commented on Mar 8, 2026

    @adamdotdevin
    Member

    Can be still reproduced with 1.2.20

    Image

    Could you test on latest and let me know if you're able to reproduce? Also, would love to know how you reliably reproduce, been lacking that on our side.

  4. tppawelgrzesik commented on Mar 9, 2026

    @tppawelgrzesik
    Author

    Can be still reproduced with 1.2.20
    Image

    Could you test on latest and let me know if you're able to reproduce? Also, would love to know how you reliably reproduce, been lacking that on our side.

    It seems to be fixed with 1.2.22.

    To reproduce the issue all I was doing is:

    • Have a couple of session on-going on "local" with workspaces enabled
    • Use an Orchestrator primary agent which delegates work to subagents
    • After making a prompt that queries a couple subagents, I just go ahead and click on the subagent label to go into its session
      Switching between subagents eg back to orchestrator -> go into subagent task session was leading "sometimes" to this issue (often tho)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions