Skip to content

fix(polling): retry failed event batches and recover connection status - #5774

Closed
duongynhi000005-oss wants to merge 1 commit into
tscircuit:mainfrom
duongynhi000005-oss:fix-5368-polling-recovery
Closed

duongynhi000005-oss wants to merge 1 commit into
tscircuit:mainfrom
duongynhi000005-oss:fix-5368-polling-recovery

Conversation

@duongynhi000005-oss

Copy link
Copy Markdown

Summary

  • Clear error state when a poll batch completes without errors so the UI recovers after the dev server restarts, even when no files changed while offline.
  • Commit recentEvents, lastEventTime, fsMap, and recentlySavedFiles only after all files/get requests in the polled batch succeed so a transient file fetch error does not advance lastEventTime past unfetched file updates.
  • Add unit tests covering disconnect/reconnect recovery with and without file changes, partial batch failure, and retry from the previous event cursor.

Fixes tscircuit/tscircuit#5368
/claim tscircuit/tscircuit#5368

@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
runframe Ready Ready Preview Oct 17, 2026 6:03am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

This branch was successfully deployed

1 active deployment
Preview — 3d4efb7c Deployed Oct 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tsci dev UI doesn't recover after dev-server restart

2 participants