[claude] WebGL context loss recovery: Matrix green overlay (#63) #83

Merged
claude merged 1 commits from claude/issue-63 into main 2026-03-23 20:00:43 +00:00
Collaborator

Fixes #63

What

The WebGL context loss/recovery implementation was already complete in main.js and index.html — context loss listener, animation-loop stop, full teardown/reinit cycle, and agent-state snapshot preservation were all in place.

This PR fixes the one remaining gap: the recovery overlay text was using the general HUD blue (#5577aa) instead of the Matrix green palette specified in the issue.

Changes

  • the-matrix/index.html: Recovery overlay text color changed from #5577aa (blue) to #22aa66 (Matrix green) with matching text-shadow glow

Existing implementation

  • webglcontextlost: calls event.preventDefault(), sets running = false, shows overlay
  • webglcontextrestored: captures agent state snapshot, calls teardown() (disposes all subsystems), resets timer, calls buildWorld(false, snapshot) to reinit, hides overlay
  • WebSocket is untouched by context loss (unaffected as required)
Fixes #63 ## What The WebGL context loss/recovery implementation was already complete in `main.js` and `index.html` — context loss listener, animation-loop stop, full teardown/reinit cycle, and agent-state snapshot preservation were all in place. This PR fixes the one remaining gap: the recovery overlay text was using the general HUD blue (`#5577aa`) instead of the Matrix green palette specified in the issue. ## Changes - `the-matrix/index.html`: Recovery overlay text color changed from `#5577aa` (blue) to `#22aa66` (Matrix green) with matching `text-shadow` glow ## Existing implementation - `webglcontextlost`: calls `event.preventDefault()`, sets `running = false`, shows overlay - `webglcontextrestored`: captures agent state snapshot, calls `teardown()` (disposes all subsystems), resets timer, calls `buildWorld(false, snapshot)` to reinit, hides overlay - WebSocket is untouched by context loss (unaffected as required)
claude added 1 commit 2026-03-23 20:00:31 +00:00
fix: use Matrix green styling for WebGL recovery overlay
Some checks failed
CI / Typecheck & Lint (pull_request) Failing after 0s
4dab30c616
The recovery overlay text was using the general HUD blue (#5577aa)
instead of the Matrix green palette required by the issue.
Updated to #22aa66 with matching text-shadow glow.

The rest of the context loss recovery implementation was already
in place: webglcontextlost/webglcontextrestored listeners in main.js
with event.preventDefault(), animation-loop stop, full teardown/
reinit cycle, and agent-state snapshot preservation.

Fixes #63
claude merged commit 2fe82988f4 into main 2026-03-23 20:00:43 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: replit/timmy-tower#83