Skip to content

Gate run button on startup toolbox bootstrap#309

Merged
milanofthe merged 1 commit into
mainfrom
fix/gate-run-button-on-toolbox-bootstrap
Jun 2, 2026
Merged

Gate run button on startup toolbox bootstrap#309
milanofthe merged 1 commit into
mainfrom
fix/gate-run-button-on-toolbox-bootstrap

Conversation

@milanofthe
Copy link
Copy Markdown
Member

The run button unlocked as soon as the engine wheel finished initializing (pyodideState.initialized), but bootstrapToolboxes() runs after that inside the backendReady promise and installs the preloaded catalog toolboxes (e.g. pathsim-chem, which pulls docutils for RST docstring rendering) via micropip. So the button was clickable while those installs were still in flight.

This folds the bootstrap into the button's loading state:

  • bootstrapComplete flag, set in a finally after bootstrapToolboxes() (so a failed toolbox still unlocks the button).
  • runLoading = pyodideLoading || !bootstrapComplete and runReady = pyodideReady && bootstrapComplete drive the run/continue buttons and the handleRun guard.
  • Status text shows "Loading toolboxes..." during the bootstrap phase.

svelte-check: 0 errors, 0 warnings.

@milanofthe milanofthe merged commit 454975b into main Jun 2, 2026
4 checks passed
@milanofthe milanofthe deleted the fix/gate-run-button-on-toolbox-bootstrap branch June 2, 2026 12:28
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