Skip to content

fix: OpenCode plugin: sub-agent sessions flash the main window state - #14

Open
webbrain-one wants to merge 1 commit into
accessd:mainfrom
webbrain-one:webbrain/issue-5
Open

webbrain-one wants to merge 1 commit into
accessd:mainfrom
webbrain-one:webbrain/issue-5

Conversation

@webbrain-one

Copy link
Copy Markdown

Closes #5

Sub-agents spawned by the `task` tool fire `session.idle` in child sessions,
causing the main window to flash the `done` state while the parent agent is
still running. Filter out sessions where `Session.parentID` is set to prevent
this interference.

Additionally, replace the dead `permission.asked` handler with a `permission.ask`
hook and the `question` tool to reliably drive the `needs-input` state.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCode plugin: sub-agent sessions flash the main window state

1 participant