feat(server): opt-in location interest for event subscriptions#37486
Open
armancharan wants to merge 4 commits into
Open
feat(server): opt-in location interest for event subscriptions#37486armancharan wants to merge 4 commits into
armancharan wants to merge 4 commits into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
6 tasks
armancharan
commented
Jul 17, 2026
armancharan
commented
Jul 17, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
No test supplies a workspace; avoid an unnecessary brand cast. Co-authored-by: Cursor <cursoragent@cursor.com>
Collect matching subscribers first so encode/offer share one pass. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jul 18, 2026
armancharan
marked this pull request as draft
July 18, 2026 02:09
armancharan
marked this pull request as ready for review
July 18, 2026 02:25
This was referenced Jul 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Related to #36443
#36443
Parent: #36441
✧ raised · ○ in review · ● approved · ✓ merged
#36441 epic: scope streams + bound payloads
Merge in order:
v2
└ ○ #37486 location interest ← this PR
└ ○ #37487 session interest + fan-out bench
└ ○ #37585 stream ownership / diagnostics
└ ○ #37586 reconnect herd
Siblings under the epic (not git parents of the stack tip):
└ ○ #37559 session blobs + payloadHash
└ ○ #37570 ensure-on-first-failure → feeds #37586
First slice of the subscription-scope stack. Session narrowing continues in #37487.
Type of change
What does this PR do?
Adds opt-in location interest on
GET /api/event. Unscoped clients keep the global public feed. Scoped clients only receive matching location events (plus installation lifecycle /global.disposed). The feed still encodes each accepted public event once, then offers the shared frame to matching subscriber queues.TUI connects with the resolved primary directory. Scope changes reconnect with a new query rather than overlapping streams. Architecture doc updated to match.
How did you verify your code works?
bun test test/event-feed.test.tsinpackages/serverbun test test/promise.test.ts test/effect.test.tsinpackages/clientScreenshots / recordings
n/a
Checklist