Skip to content

fix: wait for runtime output before completing guide checkpoints - #1437

Merged
fhammerschmidt merged 4 commits into
rescript-lang:masterfrom
fhammerschmidt:fix/1421-guide-checkpoint
Oct 14, 2026
Merged

fhammerschmidt merged 4 commits into
rescript-lang:masterfrom
fhammerschmidt:fix/1421-guide-checkpoint

Conversation

@fhammerschmidt

@fhammerschmidt fhammerschmidt commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Start each guide lesson with empty output so its checkpoint waits for matching runtime output. Remove the first lesson's prefilled success message, which completed and saved the checkpoint before the compiler loaded. Saved progress still enables navigation on later visits.

Cover compiler loading and failures, matching and nonmatching output, and saved progress in browser tests. Control compiler downloads at the CDN boundary while running the compiler manager and iframe normally. Use MemoryRouter for navigation tests and clear browser storage between them.

Part of #1421.
Fixes #1403

Start every lesson with empty output instead of pre-completing the first checkpoint. Cover compiler loading and failure, iframe output, saved progress, and nonmatching output. Arrange navigation tests with explicit progress and isolate their storage.

Fixes rescript-lang#1403

Part of rescript-lang#1421.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T20:52:26.710257Z 0a48441 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Match the API v8 configuration shape and setters used during compiler setup so checkpoint regressions reach compilation and iframe execution.
Keep the shared MemoryRouter history fixture and checkpoint test isolation while incorporating the latest website changes.
Use the completedExerciseIds object expected by GuideLayout and check restored completion before navigating. The checkpoint fix no longer masks malformed saved progress with prefilled output.
@fhammerschmidt
fhammerschmidt merged commit 8f84bae into rescript-lang:master Oct 14, 2026
11 checks passed
@fhammerschmidt
fhammerschmidt deleted the fix/1421-guide-checkpoint branch October 14, 2026 20:27
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.

Lesson 1's checkpoint passes before anything compiles

2 participants