Skip to content

当一个对话被"归档",要去哪里找回它 #12888

Closed as not planned
Closed as not planned

Description

@RogerYe

Question

手贱掉了一下"归档",然后这个对话就从当前项目消失了

Activity

  1. github-actions commented on Feb 10, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. Cheerwhy commented on Feb 10, 2026

    @Cheerwhy

    没删的话,终端里面还有

  3. littlerookie commented on Feb 10, 2026

    @littlerookie

    桌面版的在上方那个搜索框里搜索下看看,昨天刚一不留神归档了。

  4. 2015chunhui commented on Feb 10, 2026

    @2015chunhui

    /session 可以找到之前的对话记录

  5. RogerYe commented on Feb 24, 2026

    @RogerYe
    Author
  6. linuxing3 commented on Mar 5, 2026

    @linuxing3

    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

  7. gweisec commented on Mar 13, 2026

    @gweisec

    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.

  8. brokenstring314 commented on Apr 11, 2026

    @brokenstring314

    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.

  9. liyuping2002-design commented on May 6, 2026

    @liyuping2002-design

    不能在桌面客户端上增加一个取消归档按钮吗,这不是更方便?

  10. Myparjna commented on May 8, 2026

    @Myparjna

    我需要一个简单的取消归档按钮,谢谢。 I need a easy and convenient unarchived button in opencode-desktop ,please

  11. alpha-egg commented on May 26, 2026

    @alpha-egg

    我的解决方法是,在终端TUI界面输入/session 找到会话,然后让ai自己取消归档,这样就可以在GUI的侧边栏找到了。它的原理应该是,在 opencode 的 SQLite 数据库里,归档只是给 session 表的 time_archived 字段设了一个时间戳,GUI 看到这个字段不为空就隐藏了该会话,取消归档就是把这个字段清空

  12. Gpwin commented on May 26, 2026

    @Gpwin

    需要赶紧修正这个问题,归档了在左侧就看不见了。

  13. Aporiyan commented on Jun 8, 2026

    @Aporiyan

    添加一个撤销归档/删除归档的功能是很重要的,因为很有可能误点到一个会话。

  14. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions