Skip to content

Fix master website schema generation and cached demo restoration - #10859

Merged
ibgreen merged 2 commits into
masterfrom
codex/fix-master-website-deploy
Oct 13, 2026
Merged

ibgreen merged 2 commits into
masterfrom
codex/fix-master-website-deploy

Conversation

@ibgreen

@ibgreen ibgreen commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #10858
Follow up of #10849

Background

Master website deployments fail during playground schema generation. PR website checks skip that step. City Scene also stays finalized after back/forward-cache restoration.

Change List

  • Exclude native typed arrays and runtime loaders from JSON schemas
  • Exercise playground schema generation in website PR checks
  • Restart City Scene after cached navigation restores
  • Register City Scene controls after scene creation
  • Unit tests for schema integrity and cached navigation

Verified /next/ website build, 113 Node tests, three schema tests, lint, and example types; schema generation also passes on Node 22.22.


Note

Low Risk
Changes are limited to example/demo startup, schema generation tooling, and CI; no production auth or data paths.

Overview
Fixes master website builds that failed during playground JSON schema generation, and fixes the City Scene demo staying torn down after back-forward cache (bfcache) navigation.

Playground schema: Adds a TypedArrayNodeParser so native typed arrays (including Float16Array) are stripped from the generated schema instead of breaking generation. Treats @loaders.gl Loader types like other non-JSON runtime classes. New generate-schema.test.cjs checks NumericArray, layer accessors/loadOptions, and dangling $refs. website/scripts/test-build.sh now runs yarn generate-schema and those tests before the Docusaurus build, and copies schema.generated.json into the site static assets.

City Scene: On pagehide, captures control + playback state when the page was ready; on pageshow, restarts the scene and reapplies that state (unless the user switched backend, which clears saved settings). Control listeners are registered once via initializeControls() when a scene is created, avoiding duplicate handlers across restarts. Startup test coverage expands to bfcache restore and settings round-trip.

Reviewed by Cursor Bugbot for commit 14c4201. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-13T17:50:03.146372Z 184bd17 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.

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the earlier settings-loss issue is fixed.

Summary

Fixes website schema generation and restarts City Scene after cached navigation.

  • Playground schemas leave native typed arrays and loader objects out.
  • City Scene returns with its settings after cached navigation.

No new actionable issues were found in the changes since the previous review.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Page hides] --> B[Save settings if ready]
  B --> C[Finalize scene]
  C --> D[Cached page returns]
  D --> E[Create replacement scene]
  E --> F[Wait until ready]
  F --> G{Still current and visible?}
  G -->|Yes| H[Restore settings and controls]
  G -->|No| I[Skip old startup]
  J[Renderer changes] --> K[Clear saved settings]
  K --> L[Create scene with defaults]
Loading

Reviews (2) · Last reviewed commit: "fix: retain city controls across cached ..." · Reviewed by Greptile

Comment thread examples/deck/city-scene/main.ts Resolved
@coveralls

coveralls commented Oct 13, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 83.703%. remained the same — codex/fix-master-website-deploy into master

@ibgreen
ibgreen merged commit 7219b02 into master Oct 13, 2026
8 checks passed
@ibgreen
ibgreen deleted the codex/fix-master-website-deploy branch October 13, 2026 18:58
@chrisgervang chrisgervang mentioned this pull request Oct 22, 2026
53 of 66 tasks
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.

Master website deployment fails generating playground schema

2 participants