Skip to content

Preserve partial generation on disconnect#615

Draft
abi wants to merge 2 commits into
mainfrom
cursor/preserve-generation-on-disconnect-c2b2
Draft

Preserve partial generation on disconnect#615
abi wants to merge 2 commits into
mainfrom
cursor/preserve-generation-on-disconnect-c2b2

Conversation

@abi

@abi abi commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Preserve in-progress generation output when the WebSocket disconnects unexpectedly.
  • Mark unfinished variants as errored and return the UI to the code review state instead of resetting.
  • Show a connection-loss message that explains partial output was preserved.
  • Tighten the generation WebSocket payload typing in the touched file.

Walkthrough

disconnect_preserves_partial_landing_page.mp4

Connection lost with partial landing page preserved

Testing

  • Passed: pnpm exec eslint src/App.tsx src/generateCode.ts --ext ts,tsx --report-unused-disable-directives --max-warnings 0
  • Passed: pnpm exec tsc --noEmit
  • Manual: fake WebSocket backend streamed a partial SaaS landing page and then dropped the transport; the UI preserved the partial landing page and showed the connection-loss error.
  • Warning: full pnpm lint still fails on existing repository lint debt outside this change.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

cursoragent and others added 2 commits July 1, 2026 16:37
Co-authored-by: Abi Raja <abimanyuraja@gmail.com>
Co-authored-by: Abi Raja <abimanyuraja@gmail.com>
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.

2 participants