Skip to content

[Bug] 导入时 OpenCode v1.x 会话无法识别 - 不支持新的 SQLite 存储格式 #682

Description

@kfumi

What happened? / 问题描述

OpenCode 会话导入功能无法检测到 OpenCode v1.x 版本的会话。导入器扫描的是旧版 JSON 文件存储格式,但 OpenCode v1.x 已经迁移到 SQLite 数据库存储。

Steps to reproduce / 复现步骤

  1. 安装 OpenCode v1.x(例如 v1.18.26)
  2. 在 OpenCode 中创建一些对话
  3. 打开 PI-Desktop → 设置 → 导入 → 选择 "OpenCode"
  4. 无法检测到任何会话

Expected behavior / 预期行为

PI-Desktop 应该能够检测并导入 OpenCode v1.x SQLite 数据库中的会话。

Actual behavior / 实际行为

  • 导入器扫描路径:~/.local/share/opencode/storage/session/(JSON 文件)
  • OpenCode v1.x 存储路径:~/.local/share/opencode/opencode.db(SQLite 数据库)
  • v1.x 中 storage/session/ 目录不存在
  • 结果:检测到 0 个会话

App version / 应用版本

v0.15.1

Operating system / 操作系统

Windows

Extra environment / 其他环境信息

No response

Logs / 日志

Screenshots / 截图

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions