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 Request: Add session_start hook for session lifecycle #12110
Request to add a session_start hook to complement the existing session_completed hook, enabling actions to be triggered when a new session begins.
Use Case
I'm using a Continuous Learning MCP Server that stores user preferences and learned patterns across sessions. Currently:
✅ session_completed hook exists - can save state when session ends
❌ session_start hook missing - cannot auto-load state when session begins
This means the MCP can save memories, but there's no way to automatically read them at the start of a new session. Users must manually trigger the read operation.
Proposed Solution
Add session_start to the experimental hooks:
// Current (from opencode-sdk-go/config.go)typeConfigExperimentalHookstruct {
FileEditedmap[string][]ConfigExperimentalHookFileEdited`json:"file_edited"`SessionCompleted []ConfigExperimentalHookSessionCompleted`json:"session_completed"`
}
// ProposedtypeConfigExperimentalHookstruct {
FileEditedmap[string][]ConfigExperimentalHookFileEdited`json:"file_edited"`SessionCompleted []ConfigExperimentalHookSessionCompleted`json:"session_completed"`SessionStart []ConfigExperimentalHookSessionStart`json:"session_start"`// NEW
}
Activity
github-actions commentedon Feb 4, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
github-actions commentedon Apr 6, 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.