jif
bce96bcb43
Reject oversized reviewed terminal input ( #41159 )
...
## Why
Reviewing a shortened `write_stdin` action while sending the complete input could allow unreviewed bytes to reach an escalated terminal.
## What changed
- Require the fully formatted action and approval reason to fit within 8,000 bytes.
- Reject truncated or oversized actions before requesting approval or writing any bytes to the terminal.
- Document the reviewed stdin size limit in the app-server protocol.
## Testing
Add an integration test that uses JSON escaping to push a formatted action over the limit and verifies that it is neither offered for approval nor executed, while a subsequent valid write still succeeds.
GitOrigin-RevId: f6c96a78a65a136366c8119a7d242dfc2ec05fe6
2026-08-27 14:54:13 +00:00
..
2026-08-27 11:31:40 +00:00
2026-08-27 11:27:50 +00:00
2026-08-27 11:31:40 +00:00
2026-08-27 04:58:21 +00:00
2026-08-20 07:37:52 +00:00
2026-08-27 14:54:13 +00:00
2026-08-17 22:26:27 +00:00
2026-08-21 06:41:28 +00:00
2026-08-25 05:16:45 +00:00
2026-08-27 08:44:54 +00:00
2026-08-23 06:10:44 +00:00
2026-08-26 22:48:37 +00:00
2026-08-27 14:54:13 +00:00
2026-08-27 14:54:13 +00:00
2026-08-25 13:10:24 +00:00
2026-08-25 21:20:51 +00:00
2026-08-26 16:28:35 +00:00
2026-08-25 21:20:51 +00:00
2026-08-26 06:51:58 +00:00
2026-08-26 06:51:58 +00:00
2026-08-25 19:54:52 +00:00
2026-08-25 19:54:52 +00:00
2026-08-27 07:50:05 +00:00
2026-08-27 07:50:05 +00:00
2026-08-23 10:06:57 +00:00
2026-08-27 02:00:31 +00:00
2026-08-27 11:31:40 +00:00
2026-08-05 18:19:22 +00:00
2026-08-20 19:19:41 +00:00
2026-08-25 19:54:52 +00:00
2026-08-27 07:50:05 +00:00
2026-08-23 21:29:11 +00:00
2026-08-23 21:29:11 +00:00
2026-08-27 07:50:05 +00:00
2026-08-25 17:41:22 +00:00
2026-08-23 21:29:11 +00:00
2026-08-25 17:41:22 +00:00
2026-08-27 07:50:05 +00:00
2026-08-17 22:26:27 +00:00
2026-08-27 00:02:26 +00:00
2026-08-25 19:54:52 +00:00
2026-08-26 16:28:35 +00:00
2026-08-04 00:51:53 +00:00
2026-08-27 04:58:21 +00:00
2026-08-10 01:44:30 +00:00
2026-08-10 17:02:19 +00:00
2026-08-20 05:07:17 +00:00
2026-08-20 07:03:02 +00:00
2026-08-25 05:16:45 +00:00
2026-08-14 00:18:29 +00:00
2026-08-25 05:16:45 +00:00
2026-08-25 21:34:05 +00:00
2026-08-21 21:17:42 +00:00
2026-08-26 23:58:10 +00:00
2026-08-23 22:23:40 +00:00
2026-08-23 22:23:40 +00:00
2026-08-25 19:54:52 +00:00
2026-08-26 16:28:35 +00:00
2026-08-25 20:26:23 +00:00
2026-08-27 06:58:07 +00:00
2026-08-27 06:58:07 +00:00
2026-08-06 13:37:07 +00:00
2026-08-06 13:37:07 +00:00
2026-08-25 16:47:13 +00:00
2026-08-20 17:46:05 +00:00
2026-08-17 19:06:53 +00:00
2026-08-25 17:41:22 +00:00
2026-08-17 04:01:37 +00:00
2026-08-17 04:01:37 +00:00
2026-08-18 18:41:40 +00:00
2026-08-26 18:42:44 +00:00
2026-08-26 22:37:59 +00:00
2026-08-25 17:41:22 +00:00
2026-08-17 21:49:30 +00:00
2026-08-20 23:26:59 +00:00
2026-08-17 21:49:30 +00:00
2026-08-20 23:26:59 +00:00
2026-08-23 20:08:40 +00:00
2026-08-24 10:56:54 +00:00
2026-08-26 22:37:59 +00:00
2026-08-19 12:56:08 +00:00
2026-08-25 14:34:25 +00:00
2026-08-20 06:03:25 +00:00
2026-08-20 06:03:25 +00:00
2026-08-27 00:07:26 +00:00
2026-08-13 11:11:26 +00:00
2026-08-20 19:46:29 +00:00
2026-08-25 17:41:22 +00:00
2026-08-04 15:23:43 +00:00
2026-08-26 16:28:35 +00:00
2026-08-25 19:54:52 +00:00
2026-08-11 19:30:12 +00:00
2026-08-11 19:30:12 +00:00
2026-08-26 22:37:59 +00:00
2026-08-26 22:37:59 +00:00
2026-08-20 19:19:41 +00:00
2026-08-25 17:41:22 +00:00
2026-08-20 06:29:32 +00:00