Skip to content

Fix: gate stale Realm renderer generations#84

Closed
ael-dev3 wants to merge 1 commit into
fix/realm-renderer-recovery-followupfrom
fix/realm-renderer-recovery-generation
Closed

Fix: gate stale Realm renderer generations#84
ael-dev3 wants to merge 1 commit into
fix/realm-renderer-recovery-followupfrom
fix/realm-renderer-recovery-generation

Conversation

@ael-dev3

Copy link
Copy Markdown
Owner

Summary

This is a focused follow-up stacked on fix/realm-renderer-recovery-followup (PR #82). It completes the remaining non-terminal renderer-recovery requirements from the Realm Renderer Recovery prompt without duplicating the lifecycle and input protections already under review.

  • Consolidate Realm, title, and graphics-preference capability checks behind one cached, WebGL2-only probe.
  • Remove destructive WEBGL_lose_context probing; capability checks never tear down a context.
  • Assign every Realm scene load a monotonic renderer generation and suppress stale readiness, recovery, and failure callbacks after a scene is retired.
  • Expose active and last-successfully-rendered generations through DOM diagnostics.
  • Extend the pure lifecycle reducer with stale-generation invariants and add a non-destructive probe regression test.
  • Document the generation/capability contract for future renderer work.

Scope

Frontend renderer recovery only. No SpacetimeDB schema, authorization, backend, DNS, deployment, or production-world state changes.

Verification

  • Full Vitest suite: 197 files / 1,758 tests passed.
  • TypeScript project build passed.
  • Vite production build passed.
  • Runtime asset and production-output verification passed.
  • git diff --check passed.

Review note

This branch intentionally targets the existing renderer follow-up branch so the work can be reviewed as a small, mergeable increment after PR #82. Base commit: dc9ac4066cb4427dce733713e01789532fb661e3.

@ael-dev3

Copy link
Copy Markdown
Owner Author

Superseded by #95, which consolidates renderer generation gating and its final exception-safety repairs.

@ael-dev3 ael-dev3 closed this Jul 22, 2026
@ael-dev3
ael-dev3 deleted the fix/realm-renderer-recovery-generation branch July 22, 2026 20:56
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