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
[Bug]: Native chat cannot read ZCode session history (sessions list fine, transcript unreadable) #27130
ZCode sessions appear in the Agent Session History panel (the scan side has full ZCode support, including its ~/.zcode/cli/db/db.sqlite store and the hidden-transcript filter), but opening one in the native chat / resuming it shows no conversation content.
Steps to reproduce
Run ZCode CLI against any project (messages persist to ~/.zcode/cli/db/db.sqlite).
Open Agent Session History — the ZCode sessions are listed with message counts and previews.
Click a session (or toggle native chat on a ZCode terminal) — no conversation content loads.
Expected
ZCode transcripts read through the same OpenCode SQLite reader as OpenCode 1.x, since ZCode's CLI stores an OpenCode-v1-shaped history.
Actual
NATIVE_CHAT_SUPPORTED_AGENT_LIST has no zcode entry, resolveNativeChatTranscriptAgent('zcode') returns null, and the OpenCode transcript database discovery never probes the ZCode store — so every read reports the transcript unavailable.
Notes
The scan side (session-scanner-zcode-*) already exists on main, so this is only about wiring the chat transcript read path to the same store with the same hidden-row filter.
Measured on Windows 11 (also applies to macOS/Linux: the store path is under the user home on every platform).
gh search terms used before filing: zcode, native chat, transcript, session history.
Confirmed during review. The reviewed fix is #27142, preserving @star-nebula’s initial reader contribution and adding regression coverage for store discovery, full reads, subscriptions, hidden rows, and recorded order. A hidden Electron check fails on main and passes twice with the fix; the PR has before/after screenshots. Keeping this issue open until the fix lands.
Activity
nwparker commentedon Oct 10, 2026
Confirmed during review. The reviewed fix is #27142, preserving @star-nebula’s initial reader contribution and adding regression coverage for store discovery, full reads, subscriptions, hidden rows, and recorded order. A hidden Electron check fails on main and passes twice with the fix; the PR has before/after screenshots. Keeping this issue open until the fix lands.