Skip to content

fix(renderer): scope shared-server events by session - #406

Merged
sudo-tee merged 1 commit into
sudo-tee:mainfrom
jensenojs:fix/shared-server-event-scope
Jun 8, 2026
Merged

fix(renderer): scope shared-server events by session#406
sudo-tee merged 1 commit into
sudo-tee:mainfrom
jensenojs:fix/shared-server-event-scope

Conversation

@jensenojs

Copy link
Copy Markdown
Collaborator

Route renderer event subscriptions through explicit scope policies so global server events do not leak interactive prompts across sessions.

Centralize request ownership checks in session_scope and reuse them from permission/question restore paths. Keep task child-session tool parts working when child events arrive before the parent task part is indexed.

Fixes #405

Route renderer event subscriptions through explicit scope policies so global server events do not leak interactive prompts across sessions.

Centralize request ownership checks in session_scope and reuse them from permission/question restore paths.
Keep task child-session tool parts working when child events arrive before the parent task part is indexed.

Fixes sudo-tee#405
@sudo-tee

sudo-tee commented Jun 8, 2026

Copy link
Copy Markdown
Owner

This is actually an issue I encountered last week I was planning to look at.

Thanks for beating me to it :)

@sudo-tee
sudo-tee merged commit a3e038b into sudo-tee:main Jun 8, 2026
5 checks passed
@jensenojs
jensenojs deleted the fix/shared-server-event-scope branch June 8, 2026 15:13
disrupted pushed a commit to disrupted/opencode-native.nvim that referenced this pull request Jul 23, 2026
Route renderer event subscriptions through explicit scope policies so global server events do not leak interactive prompts across sessions.

Centralize request ownership checks in session_scope and reuse them from permission/question restore paths.
Keep task child-session tool parts working when child events arrive before the parent task part is indexed.

Fixes sudo-tee#405
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.

Permission/question prompts can leak across sessions with a shared opencode server

2 participants