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
{{ message }}
Repository navigation
Session export/import — portable bundles for store merge + sessions-to-go #291
Fleet clients hold a separate session store from the canonical hub, and there is no way to move session history between stores — the 2026-09-04 MacBook situation (560 MB local vs ~3 GB hub, zero cross-visibility) is the standing case. The thin-client PRD (amicode#792) unifies the view but not the stores; the offline story ("sessions to go") needs the same primitive.
Approach
Server-side export/import verbs, faithful at the storage layer: opencode export session <id> → a portable JSONL bundle (session metadata + every message part in order, IDs and timestamps preserved); opencode import session <bundle> [--remap-dir <from>=<to> ...] → writes into the target store idempotently (existing session ID = no-op), with an optional directory-remap table so sessions from another machine's paths appear under the target's project buckets.
Approaches Considered
Storage-layer verbs (chosen) — faithful (parts, timestamps, model metadata), idempotent, reusable for one-time merge + offline export.
Activity