Abhinav
87070a7792
Enable MCP tool hooks in Codex sessions ( #39296 )
...
## What changed
- Execute `mcp_tool` hook handlers through the session's shared MCP runtime, including managed hook configurations.
- Restrict hook calls to already-connected, cataloged, and policy-allowed tools. Unavailable servers fail immediately without starting or reconnecting them.
- Pass session metadata to hook tools, cap hook timeouts by the server timeout, and invoke hooks without model-tool approval or recursive hook dispatch.
- Record handler type and execution mode in hook telemetry, and mark memory as externally influenced after successful or blocking MCP hooks when configured.
## Testing
- Added end-to-end coverage for prompt interpolation, hidden tools, blocking decisions, unavailable servers, thread metadata, approval bypass, and memory-mode handling.
- Added MCP runtime coverage for startup readiness, tool filters, catalog revisions, and managed connector policy.
GitOrigin-RevId: 1647cb801ebc5fa385c7bda9d9c266a389c611b8
2026-08-18 22:10:43 +00:00
..
2026-08-13 00:30:08 +00:00
2026-08-18 22:00:25 +00:00
2026-08-13 00:39:04 +00:00
2026-08-17 12:26:59 +00:00
2026-08-17 12:26:59 +00:00
2026-08-10 22:39:29 +00:00
2026-08-04 15:23:43 +00:00
2026-07-09 00:17:38 +00:00
2026-07-22 16:30:12 +00:00
2026-08-13 01:32:42 +00:00
2026-07-08 00:15:49 +00:00
2026-08-10 01:44:30 +00:00
2026-07-22 16:30:12 +00:00
2026-08-17 18:35:54 +00:00
2026-05-28 14:54:39 -07:00
2026-08-18 22:00:25 +00:00
2026-08-04 15:23:43 +00:00
2026-08-13 21:53:52 +00:00
2026-07-22 16:30:12 +00:00
2026-07-15 05:21:13 +00:00
2026-07-08 00:15:49 +00:00
2026-07-14 01:49:16 +00:00
2026-06-27 19:34:10 +00:00
2026-08-18 22:00:25 +00:00
2026-08-12 22:54:35 +00:00
2026-08-04 15:23:43 +00:00
2026-08-17 12:26:59 +00:00
2026-08-18 16:05:51 +00:00
2026-07-31 16:17:44 +00:00
2026-08-18 21:46:18 +00:00
2026-07-08 00:15:49 +00:00
2026-08-12 23:56:45 +00:00
2026-08-18 19:12:30 +00:00
2026-08-15 05:53:54 +00:00
2026-07-15 20:59:21 +00:00
2026-08-11 15:40:52 +00:00
2026-08-04 15:23:43 +00:00
2026-07-23 15:32:36 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-18 18:01:39 +00:00
2026-08-18 18:01:39 +00:00
2026-08-10 18:20:12 +00:00
2026-08-18 22:00:25 +00:00
2026-08-10 18:20:12 +00:00
2026-07-23 19:19:35 +00:00
2026-08-15 01:34:33 +00:00
2026-08-18 21:46:18 +00:00
2026-08-18 06:22:04 +00:00
2026-08-14 05:49:33 +00:00
2026-08-14 01:23:59 +00:00
2026-08-06 10:27:33 +00:00
2026-08-07 00:28:32 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-17 12:26:59 +00:00
2026-08-18 07:56:41 +00:00
2026-08-18 07:56:41 +00:00
2026-08-04 16:16:30 +00:00
2026-07-29 01:16:29 +00:00
2026-08-12 13:33:01 +00:00
2026-08-08 16:58:26 +00:00
2026-08-17 04:01:37 +00:00
2026-07-22 16:30:12 +00:00
2026-07-30 21:49:53 +00:00
2026-08-01 01:17:26 +00:00
2026-08-18 05:42:39 +00:00
2026-07-29 22:00:20 +00:00
2026-08-17 04:01:37 +00:00
2026-07-22 16:30:12 +00:00
2026-08-01 00:38:10 +00:00
2026-08-17 00:25:19 +00:00
2026-07-22 16:30:12 +00:00
2026-08-07 01:26:42 +00:00
2026-07-22 16:30:12 +00:00
2026-08-12 10:34:25 +00:00
2026-07-30 21:12:41 +00:00
2026-08-07 18:38:24 +00:00
2026-07-22 16:30:12 +00:00
2026-08-17 17:28:37 +00:00
2026-07-30 16:44:18 +00:00
2026-08-06 02:30:18 +00:00
2026-07-23 23:18:06 +00:00
2026-08-18 06:22:04 +00:00
2026-08-12 20:05:49 +00:00
2026-08-17 04:01:37 +00:00
2026-07-22 16:30:12 +00:00
2026-07-23 19:19:35 +00:00
2026-08-17 04:01:37 +00:00
2026-05-12 18:40:53 -07:00
2026-08-13 23:38:02 +00:00
2026-08-17 04:01:37 +00:00
2026-08-18 12:37:41 +00:00
2026-08-13 21:45:02 +00:00
2026-07-22 16:30:12 +00:00
2026-08-10 23:32:42 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-18 22:10:43 +00:00
2026-08-04 15:23:43 +00:00
2026-08-10 23:32:42 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-07-22 16:30:12 +00:00
2026-08-17 04:01:37 +00:00
2026-07-22 16:30:12 +00:00
2026-08-04 20:10:31 +00:00
2026-07-23 00:02:15 +00:00
2026-07-08 00:15:49 +00:00