Skip to content

Windows: status helper tests expect tilde-shortened AppData path #19623

@BaseInfinity

Description

@BaseInfinity

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions