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
When creating a session, I want to customize the ID by obtaining parameters from the session creation process and use the custom ID to create the session.
When you want to have other scripts run and use opencode but want to set the "session" to something determentic that you can control from somewhere else
I would like the agent to know its own session ID (or be able to fetch it through an internal tool), such that it can provide its session id to an external MCP tool. The MCP server can use the session ID to identify the "user" when it holds persistent data on behalf of the agent.
Activity
rekram1-node commentedon Aug 22, 2025
just curious, what is the use case here?
wojons commentedon Dec 11, 2025
When you want to have other scripts run and use opencode but want to set the "session" to something determentic that you can control from somewhere else
trexug commentedon Jan 25, 2026
I would like the agent to know its own session ID (or be able to fetch it through an internal tool), such that it can provide its session id to an external MCP tool. The MCP server can use the session ID to identify the "user" when it holds persistent data on behalf of the agent.
sjawhar commentedon Feb 10, 2026
I'd be happy to contribute this feature. It's mostly already implemented
github-actions commentedon Apr 12, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.