Skip to content

InstanceState Reload can cause client to hang on subagent return #50671

Description

@RainbowLazer

Description

Debugged the issue source live while running OpenChamber, using Claude code. As I understand it, if InstanceState refreshes during a subagent task, on return to the parent agent, the old state is retained in the cache and fails to match with the new state, causing a deadlock. In sessions with many subagents, or long-poorly-timed background tasks, this can cause OpenCode to become unresponsive to anything on subagent return until restarted.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

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