Feature hasn't been suggested before.
Describe the enhancement you want to request
Problem
OpenCode has no way to review, browse, or resume past conversations. Once a session ends, all context is lost unless manually saved via external tools. Makes it hard to pick up where you left off, reference past decisions, or recover from crashes.
OpenCode 无法查看、浏览或恢复历史对话。会话结束后所有上下文丢失,无法续接工作、参考之前的决策或从崩溃中恢复。
Suggested Solution
Reference: iFlow CLI stores sessions as JSONL files with simple management commands.
参考 iFlow CLI 的实现——JSONL 文件存储 + 简单管理命令。
Storage
~/.config/opencode/sessions/
└── /
├── session-.jsonl
└── index.json
Commands
Command
/history
/resume
/chat save
/chat list
/chat resume
Auto-save on exit (normal exit, Ctrl+C) — configurable via opencode.json.
退出自动保存,可配置。
Why
- Continuity: Resume interrupted work without re-explaining
- Knowledge retention: Reference past solutions
- Low cost: JSONL is simple, no DB needed
- Privacy: Local storage, no cloud
- Precedent: iFlow CLI and Claude Code both do this
- 连续性:无需重新解释即可续接工作
- 知识保留:参考过去的解法
- 低成本:JSONL 简单无需数据库
- 隐私:本地存储
- 已有先例:iFlow CLI 和 Claude Code
Feature hasn't been suggested before.
Describe the enhancement you want to request
Problem
OpenCode has no way to review, browse, or resume past conversations. Once a session ends, all context is lost unless manually saved via external tools. Makes it hard to pick up where you left off, reference past decisions, or recover from crashes.
OpenCode 无法查看、浏览或恢复历史对话。会话结束后所有上下文丢失,无法续接工作、参考之前的决策或从崩溃中恢复。
Suggested Solution
Reference: iFlow CLI stores sessions as JSONL files with simple management commands.
参考 iFlow CLI 的实现——JSONL 文件存储 + 简单管理命令。
Storage
~/.config/opencode/sessions/
└── /
├── session-.jsonl
└── index.json
Commands
Command
/history
/resume
/chat save
/chat list
/chat resume
Auto-save on exit (normal exit, Ctrl+C) — configurable via opencode.json.
退出自动保存,可配置。
Why