Skip to content

[codex] Normalize persisted session JSON strings#51

Merged
nedtwigg merged 1 commit intomainfrom
codex-session-state-normalization
May 6, 2026
Merged

[codex] Normalize persisted session JSON strings#51
nedtwigg merged 1 commit intomainfrom
codex-session-state-normalization

Conversation

@nedtwigg
Copy link
Copy Markdown
Member

@nedtwigg nedtwigg commented May 6, 2026

Summary

Normalizes JSON-stringified persisted session blobs inside readPersistedSession() instead of in the VS Code adapter.

Why

Some VS Code state paths can hand back an inner serialized JSON string. Parsing at the persisted-session boundary covers webview restore, live resume layout planning, save-time previous-pane lookup, workspaceState reads, and WebviewPanel deserialization without changing the generic platform getState() contract.

Validation

  • pnpm --filter mouseterm-lib test -- session-migration
  • pnpm --filter mouseterm-lib build

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7a32746
Status: ✅  Deploy successful!
Preview URL: https://ed5d487c.mouseterm.pages.dev
Branch Preview URL: https://codex-session-state-normaliz.mouseterm.pages.dev

View logs

@nedtwigg nedtwigg marked this pull request as ready for review May 6, 2026 17:09
@nedtwigg nedtwigg merged commit 856d4ba into main May 6, 2026
6 checks passed
@nedtwigg nedtwigg deleted the codex-session-state-normalization branch May 6, 2026 17:09
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