Skip to content

[Fix] Fast conversations lose context after cold starts - #1592

Merged
roomote-roomote[bot] merged 3 commits into
developfrom
fix/fast-cold-session-resume-15a67v91ehreo
Aug 28, 2026
Merged

[Fix] Fast conversations lose context after cold starts#1592
roomote-roomote[bot] merged 3 commits into
developfrom
fix/fast-cold-session-resume-15a67v91ehreo

Conversation

@roomote-roomote

Copy link
Copy Markdown
Contributor

​Opened on behalf of @daniel-lxs. Follow up by mentioning @roomote-roomote or in the web UI.

What changed

  • Persist the native OpenCode session ID on each durable Fast conversation.
  • Validate and resume persisted sessions after process restarts or local cache eviction, sending only the new turn when the session remains usable.
  • Keep visible-text transcript reconstruction as a last-resort fallback when OpenCode no longer has the persisted session.
  • Preserve native sessions across provider retries and terminal failures, reconcile stale process-local state against newer durable state, and log the selected session path.

Why this change was made

Fast conversations previously flattened visible history into a synthetic prompt whenever their process-local session cache was cold. That discarded native tool calls, tool results, reasoning blocks, provider signatures, and cache prefix continuity even when OpenCode still had the original session.

Impact

Fast conversations retain their full native transcript across cold process-local starts when the deployment preserves OpenCode storage. Deployments with ephemeral or unavailable OpenCode storage safely validate the persisted ID and fall back to the existing compatibility-history reconstruction instead of failing the turn.

@roomote-community

roomote-community Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

No new code issues found. See task

Reviewed 27a2eaf

@daniel-lxs
daniel-lxs marked this pull request as ready for review August 28, 2026 06:13
@roomote-roomote
roomote-roomote Bot merged commit 86278c3 into develop Aug 28, 2026
18 checks passed
@roomote-roomote
roomote-roomote Bot deleted the fix/fast-cold-session-resume-15a67v91ehreo branch August 28, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant