codex - 💡(How to fix) Fix Windows: status helper tests expect tilde-shortened AppData path [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19623Fetched 2026-04-26 05:13:44
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Participants
Timeline (top)
labeled ×4unlabeled ×2cross-referenced ×1

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.

Root Cause

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\....

Code Example

$env:RUST_MIN_STACK='16777216'
cargo test -p codex-tui

---

~\AppData\Local\Temp\...\AGENTS.md

---

C:\Users\stefa\AppData\Local\Temp\...\AGENTS.md
RAW_BUFFERClick to expand / collapse

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.

extent analysis

TL;DR

The tests are failing due to a path mismatch between the expected ~\AppData\... and the actual expanded home path C:\Users\<user>\AppData\..., and a workaround may involve updating the test expectations to use the expanded path or a path-agnostic comparison.

Guidance

  • Review the test code for status::helpers::*compose_agents_summary* tests to understand how the expected paths are generated and compare them to the actual output.
  • Consider updating the test expectations to use the expanded home path or a path-agnostic comparison to make the tests more robust across different environments.
  • Investigate using a library or function that can handle path expansions and comparisons in a platform-agnostic way.
  • Verify that the issue is indeed independent of the stack-overflow issue tracked in #19596 by testing with and without the RUST_MIN_STACK environment variable set.

Example

No code example is provided as the issue does not contain sufficient information about the test code or the expected output.

Notes

The solution may require changes to the test code or the use of additional libraries to handle path comparisons. The issue appears to be specific to Windows environments, so testing on other platforms may not be necessary.

Recommendation

Apply a workaround by updating the test expectations to use a path-agnostic comparison, as this is a more targeted solution that addresses the specific issue at hand.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Windows: status helper tests expect tilde-shortened AppData path [1 participants]