Skip to content

fix(realtime): skip deltas for unobserved workspaces - #593

Merged
imshashank merged 1 commit into
mainfrom
codex/fix-realtime-unobserved-deltas
Nov 16, 2026
Merged

imshashank merged 1 commit into
mainfrom
codex/fix-realtime-unobserved-deltas

Conversation

@imshashank

@imshashank imshashank commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Realtime hub instances were resolving issue audiences and validating moves even when no connection belonged to the affected workspace. Health-created and idle instances could therefore perform unnecessary database work for broadcast events.

Skip those unobserved workspace actions before database-backed checks. Invalidate the affected issue boundary and old presence so reconnect reloads the current audience, while preserving the existing validation and ordering for connected workspaces. Production timeout causality remains unproved.

Validation at 0ddb3842a701fa4c3b241266a1df6018a2a3a881, including current main 9113ce76c2ffa992981ba63a32dd12c38c9d7ea6:

  • Full bun run verify: 7,154 passed, 0 failed, 0 skipped; all static and type checks green; source unchanged.
  • Five regressions failed before the fix and passed after it; three deliberately broken variants were rejected by those tests.
  • All six CI jobs, CodeQL and link checks passed at this exact head.
  • Final preview verification is pending.

No migration is required.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Noveum/orbit
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 9113ce7
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fcceb2cf-5a8d-4944-9064-68e600820828
Commits

Reviewing files that changed from the base of the PR and between 9113ce7 and 0ddb384.

Files selected for processing: 3

  • packages/realtime-server/src/hub.ts
  • packages/realtime-server/tests/fixtures/hub-unobserved.fixture.ts
  • packages/realtime-server/tests/hub-unobserved.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions github-actions Bot added tests Test coverage and test infrastructure area: realtime The socket, the hub, scopes and fan-out labels Nov 16, 2026
@imshashank
imshashank marked this pull request as ready for review November 16, 2026 23:39
@imshashank
imshashank requested a review from pulkitxm as a code owner November 16, 2026 23:39
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
orbit Ready Ready Preview Nov 16, 2026 11:40pm UTC

Request Review

@imshashank
imshashank merged commit 3160170 into main Nov 16, 2026
17 checks passed
@imshashank
imshashank deleted the codex/fix-realtime-unobserved-deltas branch November 16, 2026 23:42

This branch was successfully deployed

1 active deployment
Preview — 0ddb3842 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: realtime The socket, the hub, scopes and fan-out tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant