Teknium
6bf7de73e1
feat(browser): public captured CDP call seam for trusted plugins
...
Plugins that drive the agent's browser below the browser tools (Secure ENV,
catalog review on #132272 ) had no public way to send a raw CDP command over a
task's supervisor connection, so they bumped CDPSupervisor._next_call_id,
inserted futures into _pending_calls and sent on _ws. That breaks silently on
any internal change and collides between plugins.
SUPERVISOR_REGISTRY.capture(task_id) now returns a CapturedCDP pinned to the
supervisor's current socket and default page session:
call(method, params=None, *, session_id=None, timeout=10.0) -> raw reply
is_valid() / page_session_id / task_id / cdp_url
The validity check and the send run in one supervisor-loop step, so a call
never reaches a newer connection: after a reconnect, stop or registry
replacement every call raises CapturedCDPInvalid. Calls in flight when the
socket drops now fail at once (the supervisor fails pending replies on
teardown) instead of sitting out their timeout.
No model tool, config default or new capability: in-process Python could
already reach this. The handle enforces no origin/consent/ownership policy.
Reduced-scope salvage of #132752 (API shape and names from that PR); its
attach-reply handoff, old-wire cleanup and dispatch fences are not needed
because the supervisor closes the old socket on every reconnect, which drops
its sessions with it.
Co-authored-by: web3blind <264741654+web3blind@users.noreply.github.com >
2026-10-05 17:10:58 -07:00
..
2026-09-29 02:06:58 +05:30
2026-10-02 20:30:25 -05:00
2026-10-05 16:00:48 -07:00
2026-10-04 00:08:20 -07:00
2026-10-05 14:35:39 -04:00
2026-09-29 12:25:29 -05:00
2026-09-28 10:21:41 -07:00
2026-10-05 20:08:11 +05:30
2026-09-30 21:33:08 -04:00
2026-10-05 01:15:16 -07:00
2026-10-01 13:23:12 -07:00
2026-10-05 20:08:11 +05:30
2026-10-01 13:23:12 -07:00
2026-10-02 01:24:41 +05:30
2026-09-28 10:21:41 -07:00
2026-10-01 16:18:46 +05:30
2026-09-30 10:00:37 -05:00
2026-09-30 10:00:37 -05:00
2026-09-28 06:06:17 -07:00
2026-10-01 16:18:46 +05:30
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-10-05 17:10:58 -07:00
2026-10-05 17:10:58 -07:00
2026-09-28 12:43:03 -07:00
2026-10-05 16:42:57 -05:00
2026-10-02 22:54:53 -05:00
2026-10-01 03:18:09 -05:00
2026-10-02 22:54:53 -05:00
2026-10-02 11:24:58 -05:00
2026-09-29 14:12:41 -04:00
2026-10-01 13:23:12 -07:00
2026-10-05 01:15:16 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 06:42:00 -07:00
2026-09-28 10:11:33 -07:00
2026-09-28 12:43:03 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:11:33 -07:00
2026-10-02 01:18:03 +05:30
2026-10-03 16:31:09 +05:30
2026-10-04 01:52:54 +05:30
2026-10-05 16:40:38 -05:00
2026-10-02 20:24:30 -05:00
2026-10-02 21:49:36 -05:00
2026-10-05 16:40:38 -05:00
2026-10-02 21:49:36 -05:00
2026-09-28 10:21:41 -07:00
2026-10-01 01:53:55 -05:00
2026-09-28 10:21:41 -07:00
2026-09-29 12:25:29 -05:00
2026-10-05 16:46:53 -05:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-10-02 01:15:39 +05:30
2026-10-02 21:47:39 -05:00
2026-10-02 01:15:39 +05:30
2026-10-05 20:08:11 +05:30
2026-09-28 12:43:03 -07:00
2026-09-28 10:21:41 -07:00
2026-10-02 01:15:39 +05:30
2026-10-05 01:15:16 -07:00
2026-10-01 16:22:28 +05:30
2026-10-01 16:22:28 +05:30
2026-10-02 18:41:16 -05:00
2026-10-02 20:24:01 -05:00
2026-09-29 15:08:07 +05:30
2026-10-04 00:10:54 +05:30
2026-10-03 10:26:12 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 02:03:42 +05:30
2026-10-04 12:42:25 -05:00
2026-10-04 12:42:25 -05:00
2026-09-27 21:30:10 -07:00
2026-10-03 09:38:33 -07:00
2026-09-27 21:30:10 -07:00
2026-10-05 15:28:17 -07:00
2026-10-05 16:47:32 -05:00
2026-09-28 05:24:26 -07:00
2026-10-02 20:29:17 -05:00
2026-09-28 10:21:41 -07:00
2026-10-05 15:36:45 -07:00
2026-10-05 15:36:45 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-10-03 09:43:03 -07:00
2026-10-03 09:43:03 -07:00
2026-09-28 10:21:41 -07:00
2026-10-05 14:35:39 -04:00
2026-10-05 16:42:57 -05:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-09-29 12:25:29 -05:00
2026-09-29 12:25:29 -05:00
2026-09-28 10:21:41 -07:00
2026-10-05 18:39:43 -05:00
2026-10-04 00:08:20 -07:00
2026-10-05 18:39:43 -05:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-10-03 23:05:48 -07:00
2026-10-03 23:05:48 -07:00
2026-10-03 23:05:48 -07:00
2026-10-03 23:05:48 -07:00
2026-09-28 10:21:41 -07:00
2026-10-01 22:05:55 -07:00
2026-10-05 15:56:28 -07:00
2026-09-28 12:43:03 -07:00
2026-10-05 15:56:28 -07:00
2026-10-05 15:56:28 -07:00
2026-09-28 10:21:41 -07:00
2026-10-05 16:00:48 -07:00
2026-09-28 10:21:41 -07:00
2026-10-05 00:23:05 -07:00
2026-10-03 23:05:48 -07:00
2026-09-28 10:21:41 -07:00
2026-09-30 15:16:40 -05:00
2026-10-02 01:24:41 +05:30
2026-09-28 10:21:41 -07:00
2026-09-28 12:33:01 -07:00
2026-10-02 22:42:55 -05:00
2026-10-05 20:08:11 +05:30
2026-10-05 20:08:11 +05:30
2026-10-03 16:30:40 +02:00
2026-09-29 17:29:05 +00:00
2026-09-29 22:07:30 +05:30
2026-10-04 00:10:54 +05:30
2026-09-28 10:21:41 -07:00
2026-10-04 11:56:08 +05:30
2026-10-01 23:50:31 -07:00
2026-10-05 16:40:15 -05:00
2026-10-05 12:37:46 -04:00
2026-09-30 15:16:40 -05:00
2026-10-05 12:37:46 -04:00
2026-10-02 18:35:34 -05:00
2026-09-30 23:02:33 -05:00
2026-09-28 12:23:25 -07:00
2026-10-05 16:42:22 -05:00
2026-09-28 10:21:41 -07:00
2026-10-01 01:50:16 -05:00
2026-10-04 17:54:05 -07:00
2026-09-29 18:19:39 -05:00
2026-10-02 18:35:45 -05:00
2026-09-29 19:14:28 -05:00
2026-09-28 10:21:41 -07:00
2026-10-01 23:55:54 +05:30
2026-10-01 23:55:54 +05:30
2026-09-28 10:21:41 -07:00
2026-10-05 20:08:11 +05:30
2026-09-28 10:21:41 -07:00