Skip to content

feat(storage): scan OpenCode sessions in foreign-session store - #5055

Open
wutongyuonce wants to merge 2 commits into
apache:mainfrom
wutongyuonce:feat/storage-opencode-foreign-scan
Open

feat(storage): scan OpenCode sessions in foreign-session store#5055
wutongyuonce wants to merge 2 commits into
apache:mainfrom
wutongyuonce:feat/storage-opencode-foreign-scan

Conversation

@wutongyuonce

Copy link
Copy Markdown

Fixes #5053.

Add OpenCode to the foreign-session scanner (list + digest), not the full import path. Reads stay bounded and read-only; child sessions and tool output are excluded.

List and digest OpenCode sessions from ~/.local/share/opencode/opencode.db
in the foreign-session store, with the same enable-flag, sanitize, and
read-only digest contract as Claude Code and Codex.

Generated-by: pi
Iterate OpenCode message/part rows newest-first and stop at the digest
byte cap instead of loading the whole session. Filter, order, and LIMIT
session listing in SQL the same way Codex does.

Generated-by: pi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/L Under 1000 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(storage): scan OpenCode sessions in the foreign-session store

1 participant