Skip to content

[kernel 1116] browser logging: cdp pipeline#194

Open
archandatta wants to merge 4 commits intomainfrom
archand/kernel-1116/cdp-pipeline
Open

[kernel 1116] browser logging: cdp pipeline#194
archandatta wants to merge 4 commits intomainfrom
archand/kernel-1116/cdp-pipeline

Conversation

@archandatta
Copy link
Copy Markdown
Contributor

@archandatta archandatta commented Apr 1, 2026

Note

Medium Risk
Introduces new HTTP endpoints and lifecycle management for a CDP event capture pipeline; incorrect locking/start-stop behavior or incomplete cdpmonitor implementation could cause missed events or shutdown leaks.

Overview
Adds a new events capture pipeline to the API server: ApiService now owns an events.CaptureSession plus a cdpmonitor.Monitor, wires them up in New, and stops/closes them during Shutdown.

Exposes new routes POST /events/start and POST /events/stop to (re)seed a fresh capture session ID and start/stop the CDP monitor under a mutex.

Updates the events package to make CaptureSession restartable via Start(sessionID), switches timestamps to Unix milliseconds, makes sequence generation atomic, and adds events.CategoryFor to derive categories from type strings; tests are updated accordingly.

Reviewed by Cursor Bugbot for commit 365787c. Bugbot is set up for automated code reviews on this repo. Configure here.

@archandatta archandatta marked this pull request as ready for review April 2, 2026 15:19
Base automatically changed from archand/kernel-1116/browser-logging to main April 2, 2026 15:34
@archandatta archandatta force-pushed the archand/kernel-1116/cdp-pipeline branch from 1e544a7 to 6d929c8 Compare April 2, 2026 17:39
@archandatta archandatta force-pushed the archand/kernel-1116/cdp-pipeline branch from 6d929c8 to 76d837f Compare April 2, 2026 17:44
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

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