Skip to content

fix(app): parse multiline SSE events when observing activation - #118

Open
rudycelekli wants to merge 1 commit into
CopilotKit:mainfrom
rudycelekli:fix/telemetry-sse
Open

rudycelekli wants to merge 1 commit into
CopilotKit:mainfrom
rudycelekli:fix/telemetry-sse

Conversation

@rudycelekli

Copy link
Copy Markdown

Valid SSE events may use multiple data lines and CRLF or CR separators. The activation observer parses each line as JSON separately and misses successful runs. Parse event frames, preserve chunk boundaries and release the stream reader after observation.

Validation: the added regression fails on upstream 9c982df1a16b734a49d8dd9d1c29b0e4b1b1805b and passes with this change. The complete frontend Vitest suite and TypeScript check pass locally on Node 24.19.0.

Prepared with AI assistance and independently reviewed by another agent before submission. Provider calls are mocked; this does not establish live model-provider behavior.

Combined integration checks pass: 249 Node tests, 157 Python tests, TypeScript, frontend lint (0 errors, 2 warnings), and the production workspace build. These combined results belong to the private integration branch; each PR also has its own focused regression and relevant suite results above. Live provider behavior is untested.

Independent AI review passed on this exact head. Nine isolated production-browser checks passed for the combined chat shell/key dialog and QR request flow; no page errors. No live provider calls were made.

This branch has not been deployed

No deployments
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