Skip to content
This repository was archived by the owner on Mar 21, 2026. It is now read-only.

feat: add session-scoped SSE filtering for /event - #1

Merged
pcelebrado merged 10 commits into
devfrom
phase2-9650-session-sse
Mar 2, 2026
Merged

pcelebrado merged 10 commits into
devfrom
phase2-9650-session-sse

Conversation

@pcelebrado

@pcelebrado pcelebrado commented Mar 2, 2026 •

Copy link
Copy Markdown
Owner

Issue for this PR

Closes anomalyco#9650

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This adds optional session-scoped filtering to the /event endpoint using the sessionID query parameter. If sessionID is provided, events with a concrete non-matching session id are skipped. If sessionID is not provided, stream behavior stays unchanged.

I also added focused tests for both paths so existing consumers keep legacy behavior while session-specific consumers get isolated streams.

How did you verify your code works?

  • bun test test/server/event-subscribe.test.ts
  • bun test test/control-plane/sse.test.ts test/acp/event-subscription.test.ts

Screenshots / recordings

N/A (no UI change).

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Paul Celebrado added 10 commits March 1, 2026 13:13
…lti-agent demand mapped to Jules integration
…20 Phase 1)

Implements 7 stateless proxy routes for the Jules REST API, a typed HTTP
client with Result-based error handling, Zod v4 validation schemas, and
48 tests across 4 test files. Zero existing files modified.

Routes: sessions CRUD, activities, approve/reject, cancel, sources.
All code passes AGENTS.md style compliance (no any/try/catch/else/let).
Adds 5 live tests that hit jules.googleapis.com when JULES_API_KEY is set.
Tests skip automatically when the env var is absent. Validates both the
client layer and route layer against the real API.
@github-actions

github-actions Bot commented Mar 2, 2026 •

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@pcelebrado pcelebrado self-assigned this Mar 2, 2026
@pcelebrado
pcelebrado merged commit 3d9fa5a into dev Mar 2, 2026
10 of 15 checks passed
@pcelebrado
pcelebrado deleted the phase2-9650-session-sse branch March 2, 2026 13:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]:Support sessionID Filter for SSE Event Subscription

1 participant