Skip to content

Prevent conversation visibility races during organisation switching - #481

Merged
witbrock merged 1 commit into
mainfrom
codex/fix-org-switch-conversation-races
Aug 29, 2026
Merged

Prevent conversation visibility races during organisation switching#481
witbrock merged 1 commit into
mainfrom
codex/fix-org-switch-conversation-races

Conversation

@witbrock

Copy link
Copy Markdown
Member

Outcome

Prevents content and metadata from the previously selected organisation from remaining visible or being repainted by late asynchronous responses while an organisation switch is in progress.

Changes

  • emit an organisation-switch-start event synchronously and serialise organisation mutations
  • clear conversation-derived UI and caches at switch start
  • fence history, session-list, invite, focus, links, queue, new-chat, and live-response work by organisation generation
  • accept only the latest switch completion and recover the canonical context after a failed switch
  • add regression coverage for late old-organisation responses and rapid/superseded switches

Validation

  • 12 targeted race tests pass
  • neighbouring chat-tab suite: 272 tests pass
  • 59 neighbouring organisation/context tests pass
  • JavaScript syntax checks and frontend static lint pass
  • candidate server starts with the configured environment; /health reports Mongo connected and model registry ready
  • live /von/ page loads in headless Chrome without page errors

The broader frontend run has 9 pre-existing failures in 4 unrelated/independently reproducible suites; no acceptance claim is made for those paths.

@witbrock
witbrock merged commit d1eb152 into main Aug 29, 2026
4 checks passed
@witbrock
witbrock deleted the codex/fix-org-switch-conversation-races branch August 29, 2026 20:06
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