Skip to content

Support INITIAL_FILES_UPLOADED event to fix dev server race condition#636

Merged
seveibar merged 1 commit intotscircuit:mainfrom
ShiboSoftwareDev:main
Oct 16, 2025
Merged

Support INITIAL_FILES_UPLOADED event to fix dev server race condition#636
seveibar merged 1 commit intotscircuit:mainfrom
ShiboSoftwareDev:main

Conversation

@ShiboSoftwareDev
Copy link
Copy Markdown
Contributor

This pull request resolves a race condition in the dev server where the
front-end runframe could attempt to render a circuit before all of its
dependent files were available.

• The tsci dev server now emits the INITIAL_FILES_UPLOADED event after it finishes the initial
upload of all project files.
• The runframe now waits for this event before it begins to load and
render the circuit, ensuring all necessary files are present on the
file-server.
• A new test case, initial-files-delay.test.ts, has been added to
specifically simulate and verify this scenario.

/claim #513
/closes #513

Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@seveibar seveibar merged commit ba44746 into tscircuit:main Oct 16, 2025
7 checks passed
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.

Do not try to evaluate circuit until all files have loaded

2 participants