Summary
On Windows, cargo test -p codex-tui can fail three status::helpers::*compose_agents_summary* tests because the expected path uses ~\AppData\... while the actual output uses the expanded home path C:\Users\<user>\AppData\....
This surfaced after working around the separate stack-overflow issue in #19596 with RUST_MIN_STACK=16777216.
Repro
On Windows PowerShell / Git Bash environment:
$env:RUST_MIN_STACK='16777216'
cargo test -p codex-tui
Failing tests
status::helpers::tests::compose_agents_summary_includes_global_agents_path
status::helpers::tests::compose_agents_summary_names_global_agents_override
status::helpers::tests::compose_agents_summary_orders_global_before_project_agents
Observed diff shape
Expected:
~\AppData\Local\Temp\...\AGENTS.md
Actual:
C:\Users\stefa\AppData\Local\Temp\...\AGENTS.md
For compose_agents_summary_orders_global_before_project_agents, the same mismatch appears inside Some(...).
Notes
This appears independent from the stack-overflow abort tracked in #19596. With the stack increased, the suite gets far enough to expose these normal assertion failures.
Summary
On Windows,
cargo test -p codex-tuican fail threestatus::helpers::*compose_agents_summary*tests because the expected path uses~\AppData\...while the actual output uses the expanded home pathC:\Users\<user>\AppData\....This surfaced after working around the separate stack-overflow issue in #19596 with
RUST_MIN_STACK=16777216.Repro
On Windows PowerShell / Git Bash environment:
Failing tests
status::helpers::tests::compose_agents_summary_includes_global_agents_pathstatus::helpers::tests::compose_agents_summary_names_global_agents_overridestatus::helpers::tests::compose_agents_summary_orders_global_before_project_agentsObserved diff shape
Expected:
Actual:
For
compose_agents_summary_orders_global_before_project_agents, the same mismatch appears insideSome(...).Notes
This appears independent from the stack-overflow abort tracked in #19596. With the stack increased, the suite gets far enough to expose these normal assertion failures.