GitHub 星标
0
月装机量
37
近 7 天 7
综合评分SCORE
27.6
生态多维模型
最近提交
1 个月前
2026-07-06
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-sessions-sidebar@0.1.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-sessions-sidebar@0.1.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-sessions-sidebaropencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→English | 简体中文
opencode-sessions-sidebar
OpenCode TUI plugin that displays the current project's active sessions list in the sidebar.
Features
- Sessions list: Shows up to 10 most recently updated sessions for the current project (configurable)
- Click to switch: Click any session in the list to navigate to it instantly
- Current session indicator: The active session is marked with a
▶prefix - Running indicator: Sessions currently generating show a braille spinner animation
- Project-scoped: Only shows sessions belonging to the current project directory
- Real-time updates: List refreshes automatically on
session.created/session.updated/session.deletedevents - Collapsible panel: Click the header to collapse/expand; state persists across restarts
- Slash commands:
/sessions-refreshand/sessions-countfor runtime configuration - Theme adaptive: Colors auto-desaturate from the current theme for a muted look
Install
Method 1: OpenCode command palette (recommended)
In OpenCode, press Ctrl + P, search for install plugin, and enter:
opencode-sessions-sidebar@latest
Method 2: Manual install
npm install -g opencode-sessions-sidebar@latest
Then create or edit ~/.config/opencode/tui.jsonc:
{
"$schema": "https://opencode.ai/tui.json",
"plugin": ["opencode-sessions-sidebar@latest"]
}
Restart OpenCode
Enter any session and the Sessions panel will appear in the sidebar.
Slash commands
| Command | Description |
|---|---|
/sessions-refresh |
Manually refresh the sessions list |
/sessions-count |
Set the maximum number of sessions to display (1-100) |
License
MIT