codex/codex-rs/exec-server/tests
Winston Howes 1530f828cb Preserve complete shell snapshot exports through filtering and replay (#43907)
## Why

Line-based export parsing can truncate multiline values or mistake their contents for declarations. Snapshot replay also needs to restore Bash options before parsing functions that use extended glob syntax.

## What changed

- Capture shell state, aliases, and complete export records with NUL-delimited boundaries, separating capture, credential preparation, and rendering.
- Apply credential and environment policy to whole exports, preserving multiline values and making credential aliases follow allowed overrides.
- Restore Bash `shopt` options before functions, including for Bash running as `sh`.
- Support non-evaluating POSIX `ENV` path expansion and preserve native environment metadata and unset exports.
- Move core and exec-server snapshot consumers to the shared capture parser. Allow capture overhead while enforcing the exec-server's 512 KiB state-and-environment limit before filtering.

## Testing

Add regression coverage for complete capture records, multiline export filtering and replay, credential alias overrides, `ENV` expansion, and `PATH` export state. Extend exec-server tests to cover Bash-backed `sh`, `extglob`, `nocasematch`, `set -u`, and large environments.

GitOrigin-RevId: 7589ab4d137529a395dcee10b5162718de24a621
History 2026-09-08 20:41:01 +00:00
..
common Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
file_system Require filesystem backends to implement directory walks (#39749) 2026-08-20 17:16:52 +00:00
relay Retry confirmed remote registration conflicts (#41219) 2026-08-27 23:24:21 +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 Add direct SigV4 transport to exec-server (#42781) 2026-09-04 14:49:46 +00:00
capability_discovery.rs Batch sandboxed capability root discovery (#40443) 2026-08-24 17:39:16 +00:00
chatgpt_cloudflare_affinity.rs Add opt-in concurrent exec-server request dispatch (#36987) 2026-08-04 22:28:15 +00:00
deferred_environment.rs Expose the last accepted environment ready report (#42403) 2026-09-03 01:12:36 +00:00
environment.rs Recover capability discovery after executor disconnects (#38420) 2026-08-13 19:14:30 +00:00
environment_config.rs Propagate executor home directories into sandbox contexts (#41204) 2026-08-27 20:44:47 +00:00
exec_process.rs Preserve complete shell snapshot exports through filtering and replay (#43907) 2026-09-08 20:41:01 +00:00
file_stream.rs Harden unsandboxed patch filesystem access (#39659) 2026-08-20 08:10:08 +00:00
file_system_unix.rs Batch sandboxed capability root discovery (#40443) 2026-08-24 17:39:16 +00:00
file_system_windows.rs Improve no-follow filesystem behavior across platforms (#39666) 2026-08-20 08:32:11 +00:00
forward.rs Add attributed exec process lifecycle telemetry (#42373) 2026-09-02 21:58:58 +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 Resolve HTTP MCP bearer tokens in executor environments (#39926) 2026-08-21 12:50:15 +00:00
http_request_logging.rs Decouple exec-server HTTP from reqwest types (#35059) 2026-07-24 00:53:05 +00:00
initialize.rs Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
process.rs Expose a stable executor build identity in environment metadata (#43513) 2026-09-07 16:55:06 +00:00
relay.rs Recover deferred environments after provisioning failure (#42388) 2026-09-02 23:49:29 +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 [codex] Trace exec-server JSON-RPC requests (#27466) 2026-06-24 12:50:18 -07:00