viyatb-oai
73abda8bfe
Isolate external editor buffers from sandbox-writable paths ( #38830 )
...
## Why
External editor buffers can contain the current composer text and should not be
placed in directories exposed as writable by a restricted filesystem policy.
## What changed
- Create editor buffer files under a protected `editor` directory, trying the
configured Codex home, the default Codex home, and a workspace fallback.
- Reject candidates that overlap writable roots or resolve through symbolic
links, while preserving external editor support for full-disk-write policies.
- Surface an editor error when no protected directory is available.
## Testing
Add coverage for writable roots, aliases, symbolic links, fallback selection,
temporary-directory grants, full-disk-write policies, and editor invocation.
GitOrigin-RevId: df1029d81b327678991ab84ffd1077f0e5855631
2026-08-16 03:14:17 +00:00
..
2026-08-16 03:14:17 +00:00
2026-08-14 16:33:28 +00:00
2026-08-15 05:53:54 +00:00
2026-08-15 10:57:15 +00:00
2026-08-13 18:30:51 +00:00
2026-08-14 20:23:49 +00:00
2026-08-13 13:52:18 +00:00
2026-07-11 01:15:48 +00:00
2026-08-13 04:08:23 +00:00
2026-08-01 17:43:03 +00:00
2026-08-01 17:43:03 +00:00
2026-07-29 14:01:31 +00:00
2026-08-14 20:23:49 +00:00
2026-07-29 18:40:38 +00:00
2026-07-29 13:53:15 +00:00
2026-08-14 16:33:28 +00:00
2026-08-16 03:14:17 +00:00
2026-08-13 00:34:39 +00:00
2026-08-07 00:37:50 +00:00
2026-08-14 20:23:49 +00:00
2026-08-14 20:30:30 +00:00
2026-07-21 19:17:18 +00:00
2026-08-13 00:30:08 +00:00
2026-07-21 14:25:18 +00:00
2026-07-15 01:07:29 +00:00
2026-08-15 10:57:15 +00:00
2026-07-22 23:45:45 +00:00
2026-08-14 20:59:34 +00:00
2026-08-15 05:43:44 +00:00
2026-07-23 23:13:59 +00:00
2026-08-04 16:53:33 +00:00
2026-08-15 10:57:15 +00:00
2026-08-11 19:16:15 +00:00
2026-08-07 00:05:41 +00:00
2026-08-14 20:23:49 +00:00
2026-08-10 11:22:55 +00:00
2026-08-11 21:12:23 +00:00
2026-08-16 03:14:17 +00:00
2026-08-16 03:14:17 +00:00
2026-08-04 16:53:33 +00:00
2026-07-29 03:50:00 +00:00
2026-08-13 04:08:23 +00:00
2026-08-13 04:08:23 +00:00
2026-08-16 01:31:22 +00:00
2026-08-01 17:43:03 +00:00
2026-08-01 17:43:03 +00:00
2026-08-01 17:43:03 +00:00
2026-08-15 17:30:13 +00:00
2026-07-29 14:01:31 +00:00
2026-07-29 14:01:31 +00:00
2026-07-29 14:01:31 +00:00
2026-08-11 19:16:15 +00:00
2026-07-29 14:01:31 +00:00
2026-07-29 14:01:31 +00:00
2026-07-19 16:50:54 +00:00
2026-07-18 18:00:51 +00:00
2026-07-12 19:18:37 +00:00
2026-08-14 20:23:49 +00:00
2026-07-17 23:07:40 +00:00
2026-08-05 20:44:03 +00:00
2026-08-14 16:33:28 +00:00
2026-08-14 20:30:30 +00:00
2026-08-04 19:12:46 +00:00
2026-07-21 19:17:18 +00:00
2026-08-14 16:37:40 +00:00
2026-08-14 16:37:40 +00:00
2026-08-14 20:23:49 +00:00
2026-07-29 13:53:15 +00:00
2026-08-03 23:05:35 +00:00
2026-08-13 19:35:22 +00:00
2026-07-21 20:13:08 +00:00
2026-08-14 20:59:34 +00:00
2026-07-20 15:44:37 +00:00
2026-08-07 02:45:35 +00:00
2026-08-15 17:30:13 +00:00
2026-08-15 17:30:13 +00:00
2026-08-15 05:53:54 +00:00
2026-08-15 17:30:13 +00:00
2026-08-14 20:38:52 +00:00
2026-08-14 20:38:52 +00:00
2026-08-01 17:43:03 +00:00
2026-07-29 13:53:15 +00:00
2026-08-16 01:34:51 +00:00
2026-07-27 17:59:06 +00:00
2026-08-14 20:23:49 +00:00
2026-08-13 00:30:08 +00:00
2026-07-29 14:01:31 +00:00
2026-08-13 04:08:23 +00:00
2026-07-28 20:12:13 +00:00
2026-08-04 19:05:45 +00:00
2026-08-15 17:30:13 +00:00
2026-08-14 20:30:30 +00:00
2026-08-14 20:23:49 +00:00
2026-07-28 19:58:25 +00:00
2026-07-29 14:01:31 +00:00
2026-07-29 14:01:31 +00:00