Skip to content

Make scan and customer state consistent across multiple browser tabs #75

@techmore

Description

@techmore

Summary

This issue is still partially relevant, but the problem is narrower now than when it was filed.

What Changed

The codex/runtime-contract-fixes branch already addressed a major part of the multi-tab inconsistency problem:

  • per-client runtime state moved onto ClientStateRegistry
  • active scan replay for newly connected tabs now lives in a dedicated connection handler
  • scan/job/runtime handlers are more consistent about sid-scoped state

Remaining Gap

What likely still remains is hydration and shared-current-view behavior beyond live scan replay:

  • how a fresh tab reconstructs the current customer/network/report context when no active replay buffer exists
  • which parts of state should be persisted vs remain per-client
  • whether current-view hydration should come from persisted state, an API snapshot, or a lightweight shared active-state store

Recommendation

Keep this issue open, but narrow it to the remaining shared-hydration problem rather than the broader per-client state-isolation bug, which is largely addressed by the runtime-state work already landed on the branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority: highHigh priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions