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
I found the solution.
Edit ~/.local/share/opencode/opencode.db with lazysql
If a sessions is archived, the archived field has timstramp and permision field is NULL
press c to change values of your session record
change archived to NULL and permission as other sessions.
Save query with C-S-s
Reacted by 芣苢, gzhstudy, Ming Liang, QM-kether and jj1st
Since you're already using an agent, you don't need to find it yourself - let it help you find and restore them directly. Try using the following prompts:
I just archived some session conversations. Where can I find them and restore them from archived status? Help me find and restore them.
Reacted by gweisec, zhangxinxin, gzhstudy, CMCat and Telepath0y
For Linux/WSL users, you can manually unarchive sessions via sqlite3:
Open DB: sqlite3 ~/.local/share/opencode/opencode.db
Find your session ID: SELECT id, title FROM session WHERE time_archived > 0;
Set it to 0: UPDATE session SET time_archived = 0 WHERE id = 'your_id';
Then restart/reload your client. Done.
Reacted by vivie-x, SpiralTower, leeming87v5, SenZyo, dcatchers and jj1st
Activity
github-actions commentedon Feb 10, 2026
This issue might be a duplicate of existing issues. Please check:
Cheerwhy commentedon Feb 10, 2026
没删的话,终端里面还有
littlerookie commentedon Feb 10, 2026
桌面版的在上方那个搜索框里搜索下看看,昨天刚一不留神归档了。
2015chunhui commentedon Feb 10, 2026
/session 可以找到之前的对话记录
RogerYe commentedon Feb 24, 2026
linuxing3 commentedon Mar 5, 2026
I found the solution.
Edit ~/.local/share/opencode/opencode.db with lazysql
If a sessions is archived, the archived field has timstramp and permision field is NULL
press c to change values of your session record
change archived to NULL and permission as other sessions.
Save query with C-S-s
gweisec commentedon Mar 13, 2026
Since you're already using an agent, you don't need to find it yourself - let it help you find and restore them directly. Try using the following prompts:
brokenstring314 commentedon Apr 11, 2026
For Linux/WSL users, you can manually unarchive sessions via sqlite3:
Open DB: sqlite3 ~/.local/share/opencode/opencode.db
Find your session ID: SELECT id, title FROM session WHERE time_archived > 0;
Set it to 0: UPDATE session SET time_archived = 0 WHERE id = 'your_id';
Then restart/reload your client. Done.
liyuping2002-design commentedon May 6, 2026
不能在桌面客户端上增加一个取消归档按钮吗,这不是更方便?
Myparjna commentedon May 8, 2026
我需要一个简单的取消归档按钮,谢谢。 I need a easy and convenient unarchived button in opencode-desktop ,please
alpha-egg commentedon May 26, 2026
我的解决方法是,在终端TUI界面输入/session 找到会话,然后让ai自己取消归档,这样就可以在GUI的侧边栏找到了。它的原理应该是,在 opencode 的 SQLite 数据库里,归档只是给 session 表的 time_archived 字段设了一个时间戳,GUI 看到这个字段不为空就隐藏了该会话,取消归档就是把这个字段清空
Gpwin commentedon May 26, 2026
需要赶紧修正这个问题,归档了在左侧就看不见了。
Aporiyan commentedon Jun 8, 2026
添加一个撤销归档/删除归档的功能是很重要的,因为很有可能误点到一个会话。
rekram1-node commentedon Jun 23, 2026
Automated: closing question issues.
GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.
If this is a bug or feature request, please open a new issue with the appropriate template.