Adds a compact session dropdown to the OpenCode sidebar.
Important
Version 1.x supports OpenCode v2 only. OpenCode v1 is no longer supported; use the final 0.x release if you must remain on v1.
Recommended:
opencode plugin -g opencode-session-switchIf OpenCode already has an older cached copy, force a refresh:
opencode plugin -g -f opencode-session-switchManual install:
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["opencode-session-switch"]
}For local development, add your local checkout path to ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["file:///path/to/opencode-session-switch"]
}Reload or restart OpenCode after changing plugin config.
- Sidebar: expand
Sessionsand click a session name to switch to it.
The sidebar uses OpenCode's TUI route API for direct session switching.
MIT