You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Add VS Code notifications when an agent completes or needs attention #39936
I have verified this feature I'm about to request hasn't been suggested before.
I found related work for system notifications in the TUI, Desktop app, and CLI, including #7242, #4454, #13334, and #18366.
However, I could not find an existing issue or pull request specifically covering native notifications from the official VS Code extension when an OpenCode session:
completes,
requires permission or user input,
asks a question,
or encounters an error.
The current request is specifically about subscribing to OpenCode session events from the VS Code extension and surfacing them through the VS Code notification API.
Describe the enhancement
The OpenCode VS Code extension currently does not show a VS Code or operating-system notification when an agent:
finishes a response or task,
requests permission or user input,
encounters an error.
This makes long-running sessions difficult to follow when the user switches to another VS Code tab or application.
Proposed behavior
Add optional VS Code notifications for:
Agent/session completion
Permission or question requests
Session errors
A notification could include an action such as Open OpenCode, which focuses the related OpenCode terminal.
Notifications should be configurable and disabled individually if necessary.
To avoid unnecessary interruptions, completion notifications could only be displayed when the OpenCode terminal is not currently focused.
Implementation idea
The extension already starts an OpenCode server on a local port. It could subscribe to the server's session event stream and use the VS Code notification API when a relevant session event is received.
The implementation should:
prevent duplicate notifications,
associate notifications with the correct session or terminal,
dispose event subscriptions when the terminal or extension closes,
avoid notifying for sessions that were not started by the current VS Code window.
I would be interested in implementing this after receiving feedback on the expected behavior and architecture.
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: Live session status panel in sidebar + background session completion notifications #28175: Requests background session completion notifications and a live session status panel — overlaps with the completion/attention notification goals here, though that issue targets the TUI/desktop rather than the VS Code extension specifically. It may be worth coordinating to avoid duplicating the event-subscription and notification logic.
Yes, #28175 is closely related. Is there any update on or ongoing work for the background-session notifications discussed there? If that work does not also cover the official VS Code extension, I’m happy to keep this issue focused specifically on the extension-level notification layer and coordinate with the shared event-subscription work.
Activity
github-actions commentedon Jul 31, 2026
This issue might be a duplicate of existing issues. Please check:
aerenkaradag commentedon Jul 31, 2026
Yes, #28175 is closely related. Is there any update on or ongoing work for the background-session notifications discussed there? If that work does not also cover the official VS Code extension, I’m happy to keep this issue focused specifically on the extension-level notification layer and coordinate with the shared event-subscription work.
febergs commentedon Aug 3, 2026
Can attest: This would help me a lot in my workflow.
Workflow:
I usually run 2–3 VS Code windows with concurrent opencode sessions in each one, and the per-window focus is exactly the part that matters.
EDIT: In fact, I eventually even built a custom hook to solve it via macOS script editor, because I wanted the feature so much
aerenkaradag commentedon Aug 11, 2026
Seems like quite a few people in the community are really looking forward to this one. @Hona , any update on where things stand with the feature?
Udayakumarg commentedon Aug 21, 2026
@Hona
This would be a really useful UX improvement for running OpenCode agents in the background, especially when a session completes or needs attention.
Do you have any updates on this, or is there currently any workaround to get notifications for these events?
It would be great to see this picked up.
github-actions commentedon Oct 21, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.