codex/codex-rs/exec-server/tests
Adam Perry @ OpenAI a45b8ccb01 Add streaming file replacement to filesystem abstractions (#54505)
## What changed

Add `write_file_stream` to `ExecutorFileSystem` and `EnvironmentAccess`, preserving the accessor's captured sandbox permissions. Local and streaming-capable remote filesystems replace files one bounded chunk at a time and return the byte count. Older executors buffer the input before sending a single `writeFile` request.

Close remote handles on completion or failure, perform best-effort cleanup after cancellation, and invalidate pending metadata lookups. Document that failure or cancellation can leave a truncated or partial file and that in-flight I/O may outlive cancellation.

## Testing

Add coverage for sequential writes, binary and empty files across local and remote filesystems, source failures, handle cleanup, metadata invalidation after cancellation, and compatibility with older executors.

GitOrigin-RevId: d3eb44e0ac2f0f336e9e157d686464f4d45a3f26
History 2026-10-16 04:42:32 +00:00
..
common Enable credential masking for remote exec-server commands (#54309) 2026-10-15 14:41:16 +00:00
exec_process Preserve Windows startup variables and MXC child environment defaults (#54027) 2026-10-14 16:31:06 +00:00
file_system Use descriptor-safe helpers for executable test fixtures (#50018) 2026-10-01 15:57:03 +00:00
relay Retry registry authentication outages and jitter executor reconnects (#50465) 2026-10-02 23:54:32 +00:00
support Move relay helpers into exec-server test support (#40712) 2026-08-25 21:31:40 +00:00
unit Recover deferred environments after provisioning failure (#42388) 2026-09-02 23:49:29 +00:00
accepted_websocket.rs Allow exec-server to proxy permitted private IPs upstream (#48568) 2026-09-26 23:17:41 +00:00
capabilities_v2.rs Enrich V2 capability discovery with resolved plugin and skill metadata (#53763) 2026-10-13 20:40:38 +00:00
capability_discovery.rs Share byte buffers across exec-server output chunks (#49972) 2026-10-01 12:41:39 +00:00
chatgpt_cloudflare_affinity.rs Enable credential masking for remote exec-server commands (#54309) 2026-10-15 14:41:16 +00:00
deferred_environment.rs Expose the last accepted environment ready report (#42403) 2026-09-03 01:12:36 +00:00
environment.rs Honor network policy in remote control and recover remote execution (#47410) 2026-09-23 00:48:53 +00:00
environment_config.rs Preserve the CLI MXC preference in executor config reads (#51525) 2026-10-07 00:29:04 +00:00
exec_process.rs Support remote credential masking with Zsh shell snapshots (#54432) 2026-10-15 22:25:58 +00:00
file_stream.rs Add streaming file replacement to filesystem abstractions (#54505) 2026-10-16 04:42:32 +00:00
file_system_unix.rs Preserve filesystem sandbox policy context when the cwd disappears (#46112) 2026-09-17 04:37:54 +00:00
file_system_windows.rs Upgrade Windows bindings to windows-sys 0.61.2 (#50058) 2026-10-01 18:05:05 +00:00
forward.rs Share byte buffers across exec-server output chunks (#49972) 2026-10-01 12:41:39 +00:00
health.rs Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
http_client.rs Cache executor metadata from initialization (#40343) 2026-08-24 06:43:07 +00:00
http_request.rs Protect the guardian decisions API key from environment forwarding (#50019) 2026-10-01 15:57:53 +00:00
http_request_logging.rs Decouple exec-server HTTP from reqwest types (#35059) 2026-07-24 00:53:05 +00:00
initialize.rs Wire V2 capability discovery through exec-server RPC (#53723) 2026-10-13 17:22:34 +00:00
macos_fs_spawn.rs Avoid fork when spawning macOS filesystem helpers (#46661) 2026-09-19 15:15:25 +00:00
process.rs Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
relay.rs Allow exec-server to proxy permitted private IPs upstream (#48568) 2026-09-26 23:17:41 +00:00
selected_capability_roots.rs Initialize execution environments with the final HTTP policy (#34995) 2026-07-23 19:24:41 +00:00
websocket.rs Support request IDs in exec-server WebSocket handshakes (#52234) 2026-10-08 19:13:52 +00:00