Skip to content

[Story] Live reload that survives a network drop #74

In review

Description

@aMonteSl

As a developer, I want the XR scene to keep updating after the connection to the extension drops and comes back, so that I never look at stale metrics without knowing it.

Findings: CHARTS-10 / LIFECYCLE-10 (blocker), CHARTS-11, LIFECYCLE-7.

Causes:

  • The SSE reconnect creates a new EventSource with no handlers.
  • The cache-bust rewrites the slice entity's URL, which then fetches index.html as JSON, and it can drop ?revision=.
  • A boot refresh can corrupt the data URL to url: url: ./data.json.
  • The DOM client reloads in a loop.

Acceptance criteria

  • After the server closes and reopens the SSE stream, the next re-analysis reaches the scene (test).
  • Reconnects use back-off, and the connection state is exposed to the scene through the codexr-live-reload-status event. The visible indicator comes with S7's in-scene error surface.
  • Cache-busting preserves existing query parameters and never touches the slice entity's source URL.
  • The DOM client never enters a reload loop.

Status: merged in #69, with unit tests and a headless check against a generated scene. The maintainer's manual check is still pending: drop the network, edit a file, and see the scene update.

Part of #72. Evidence: docs/xr-audit/ (#67).

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added
    tfm
    user-story
    on Nov 25, 2026
  3. added
    area: extension
    area: xr-scene
    stream: xr-bugfix-1.2.1
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: extensionarea: xr-scenestream: xr-bugfix-1.2.1tfmuser-story

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions