Skip to content

Fix Playground command response materialization - #2245

Merged
chubes4 merged 1 commit into
mainfrom
fix/2236-materialize-plugin-state-response
Aug 8, 2026
Merged

Fix Playground command response materialization#2245
chubes4 merged 1 commit into
mainfrom
fix/2236-materialize-plugin-state-response

Conversation

@chubes4

@chubes4 chubes4 commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Materialize PlaygroundRunResponse.text while crossing the runtime boundary.
  • Prevent proxy-backed response values from mutating before plugin-state consumers parse JSON.
  • Add a regression that reproduces the lazy response becoming NUL data after the runtime call returns.

Fixes #2236.

Verification

  • npm exec -- tsx tests/plugin-state-command.test.ts
  • npm run build
  • node ./node_modules/typescript/bin/tsc -b --pretty false
  • git diff --check

AI assistance

OpenAI gpt-5.6-sol via OpenCode diagnosed the lazy runtime response boundary, implemented the focused materialization fix and regression, and ran the verification commands. Chris Huber reviewed and owns the change.

Snapshot response text while crossing the Playground runtime boundary so proxy-backed values cannot mutate before plugin-state consumers parse them.

AI assistance: OpenAI gpt-5.6-sol via OpenCode diagnosed the lazy response boundary, implemented the materialization fix and regression, and ran the focused test, build, typecheck, and diff checks. Chris Huber reviewed and owns the change.
@chubes4
chubes4 merged commit 2e8bd98 into main Aug 8, 2026
3 of 4 checks passed
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.

Preserve typed Playground command output for plugin-state verification

1 participant