You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(core): onCapture callback errors in capture.ts are silently swallowed #276
In packages/core/src/capture.ts, the onCapture callback is invoked after a capture completes. If the callback throws (or returns a rejected promise in an async case), the error is silently lost — no console warning, no re-throw, no way for the caller to detect the failure.
Root cause
The capture handler invokes options.onCapture(packet, selection) without wrapping it in a try/catch, and without awaiting the return value if the callback is async.
Impact
Silent data loss: if onCapture is async and fails (e.g. a network POST fails), the user's capture attempt appears to succeed
No way to surface errors to the UI for a retry or error state
Fix
Wrap the call and surface errors through a documented onError channel:
Activity
fix: audit bug fixes — capture cleanup, collection isolation, MCP err…