jif
5b10c107ba
Support encrypted context from MCP session-start hooks ( #63474 )
...
## Why
MCP hook results were flattened to text, so `SessionStart` hooks could
not pass encrypted context to the model as encrypted tool output.
## What changed
Recognize text blocks marked with `codex/encryptedContent` in synchronous
MCP `SessionStart` hooks. Send them to the model as standalone
`function_call_output` items with the originating tool name and namespace.
Keep ciphertext out of hook previews and plaintext spill files. Reject
empty encrypted blocks and cap the serialized encrypted output at
40,000 bytes per hook run.
## Testing
Add a scenario that checks that ciphertext above the plaintext spill threshold reaches
the first model request unchanged, appears once after a cold resume, and
stays out of hook previews and spill files. Cover discarding encrypted
context when hook output fails JSON parsing under both failure policies.
GitOrigin-RevId: cbc11c6f7055cc131212c6e9ddd37a882ed61d38
2026-11-24 00:13:03 +00:00
..
2026-11-10 01:30:08 +00:00
2026-11-20 21:42:17 +00:00
2026-11-04 13:03:01 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-11-13 22:01:26 +00:00
2026-11-20 01:48:00 +00:00
2026-11-20 06:05:04 +00:00
2026-11-20 06:05:04 +00:00
2026-11-17 20:04:36 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-30 18:33:14 +00:00
2026-11-17 14:20:08 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-10-05 18:52:51 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 21:42:17 +00:00
2026-11-03 12:33:26 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 21:42:17 +00:00
2026-09-30 17:33:59 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 21:42:17 +00:00
2026-11-16 04:54:23 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-11-04 00:19:12 +00:00
2026-11-03 21:24:16 +00:00
2026-10-30 20:53:25 +00:00
2026-11-03 21:24:16 +00:00
2026-11-03 21:24:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-17 21:40:36 +00:00
2026-11-21 05:42:40 +00:00
2026-11-21 05:42:40 +00:00
2026-11-16 04:54:23 +00:00
2026-11-21 05:42:40 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-21 05:42:40 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-10 21:28:22 +00:00
2026-11-17 20:04:36 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 23:12:16 +00:00
2026-10-30 18:33:14 +00:00
2026-11-16 04:54:23 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-11-20 23:12:16 +00:00
2026-11-24 00:13:03 +00:00
2026-11-21 21:40:05 +00:00
2026-11-21 21:40:05 +00:00
2026-11-20 23:12:16 +00:00
2026-11-16 04:54:23 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 21:42:17 +00:00
2026-11-13 18:46:45 +00:00
2026-11-17 16:16:36 +00:00
2026-11-21 08:39:16 +00:00
2026-11-21 08:39:16 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 18:24:49 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-21 05:42:40 +00:00
2026-11-17 16:16:36 +00:00
2026-11-17 16:16:36 +00:00
2026-11-20 20:24:34 +00:00
2026-11-20 20:24:34 +00:00
2026-11-20 20:24:34 +00:00
2026-11-18 19:39:41 +00:00
2026-11-02 20:10:37 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-17 20:04:36 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-11-17 22:58:38 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-11-21 08:38:44 +00:00
2026-11-20 21:42:17 +00:00
2026-11-04 13:03:01 +00:00
2026-11-02 21:35:56 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-06 03:27:04 +00:00
2026-10-06 03:27:04 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-30 18:33:14 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-10-21 10:40:59 +00:00
2026-11-20 23:12:16 +00:00
2026-11-17 22:58:38 +00:00
2026-11-17 22:58:38 +00:00
2026-11-17 20:04:36 +00:00
2026-11-21 05:42:40 +00:00
2026-11-21 05:42:40 +00:00
2026-11-21 04:18:31 +00:00
2026-11-21 05:42:40 +00:00
2026-11-23 16:52:47 +00:00
2026-11-20 23:44:47 +00:00
2026-11-20 23:44:47 +00:00
2026-11-17 20:04:36 +00:00
2026-10-30 18:33:14 +00:00
2026-10-30 18:33:14 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 21:42:17 +00:00
2026-11-16 04:54:23 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 21:42:17 +00:00
2026-10-30 18:33:14 +00:00
2026-11-18 15:24:29 +00:00
2026-11-20 23:12:16 +00:00
2026-11-17 03:48:25 +00:00
2026-11-17 03:48:25 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-10-30 20:53:25 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-16 04:54:23 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-16 04:54:23 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-10-05 18:52:51 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 21:42:17 +00:00
2026-11-20 23:12:16 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-10-27 19:11:56 +00:00
2026-11-20 23:12:16 +00:00
2026-11-20 23:12:16 +00:00
2026-11-16 04:54:23 +00:00
2026-11-16 04:54:23 +00:00
2026-10-30 18:33:14 +00:00