[PR #1748] [CLOSED] Make entire session available for session.idle event #10042

Closed
opened 2026-02-16 18:14:36 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1748
Author: @pawcoding
Created: 8/9/2025
Status: Closed

Base: devHead: dev


📝 Commits (3)

  • 254a5f3 Initial plan
  • 093b2a0 Add session title to session.idle event for plugin API
  • f8d6dff Merge pull request #2 from pawcoding/copilot/fix-1

📊 Changes

4 files changed (+7 additions, -6 deletions)

View changed files

📝 packages/opencode/src/config/hooks.ts (+1 -1)
📝 packages/opencode/src/session/index.ts (+2 -2)
📝 packages/sdk/js/src/gen/types.gen.ts (+1 -1)
📝 packages/web/src/content/docs/docs/plugins.mdx (+3 -2)

📄 Description

Hey there,
I was playing around with opencode for the last week and already started to customize my experience with agents, plugins, etc. Your example for the desktop notification when a session is idle is really cool. But one thing that's missing for me is the session title, so you can print it in your notification.
And since every other session event (session.deleted, session.updated) already includes the full session information, I sent Copilot to also add the full info to the session.idle event. So far it looks good to me.

If you have any feedback on this or any additional changes need to be made feel free to reach out.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1748 **Author:** [@pawcoding](https://github.com/pawcoding) **Created:** 8/9/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (3) - [`254a5f3`](https://github.com/anomalyco/opencode/commit/254a5f344cc022c9ab2d02b38ac7c379459ee18d) Initial plan - [`093b2a0`](https://github.com/anomalyco/opencode/commit/093b2a085358071076aa95ab2c65c3aa3873fab1) Add session title to session.idle event for plugin API - [`f8d6dff`](https://github.com/anomalyco/opencode/commit/f8d6dffaa7f2bbf9a57f60bb1645acf81adc2029) Merge pull request #2 from pawcoding/copilot/fix-1 ### 📊 Changes **4 files changed** (+7 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/config/hooks.ts` (+1 -1) 📝 `packages/opencode/src/session/index.ts` (+2 -2) 📝 `packages/sdk/js/src/gen/types.gen.ts` (+1 -1) 📝 `packages/web/src/content/docs/docs/plugins.mdx` (+3 -2) </details> ### 📄 Description Hey there, I was playing around with opencode for the last week and already started to customize my experience with agents, plugins, etc. Your example for the desktop notification when a session is idle is really cool. But one thing that's missing for me is the session title, so you can print it in your notification. And since every other session event (`session.deleted`, `session.updated`) already includes the full session information, I sent Copilot to also add the full info to the `session.idle` event. So far it looks good to me. If you have any feedback on this or any additional changes need to be made feel free to reach out. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:36 -05:00
yindo closed this issue 2026-02-16 18:14:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10042