WSL: shortcut overlay snapshot regression after #9359

Open 💬 0 comments Opened Jul 26, 2026 by sangoi-exe

What version of Codex CLI is running?

Built from source. The current openai/codex main commit inspected for this report is
62fd410384cca008446c2d64a4f2b3f915f4906e.

What subscription do you have?

ChatGPT Pro. This is a source-test failure and does not depend on the subscription.

Which model were you using?

Not applicable.

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

WSL2. The failure is a deterministic unit-test snapshot mismatch and does not depend on
terminal input.

Codex doctor report

{"status":"not_available","reason":"source-test reproduction"}

What issue are you seeing?

bottom_pane::chat_composer::tests::footer_mode_snapshots is again
environment-dependent on WSL.

The current main source calls is_probably_wsl() while building
FooterProps for the shortcut overlay during tests:

https://github.com/openai/codex/blob/62fd410384cca008446c2d64a4f2b3f915f4906e/codex-rs/tui/src/bottom_pane/chat_composer.rs#L3652-L3663

On WSL, that selects the Ctrl+Alt+V paste-image binding:

https://github.com/openai/codex/blob/62fd410384cca008446c2d64a4f2b3f915f4906e/codex-rs/tui/src/bottom_pane/footer.rs#L1177-L1192

The checked-in snapshot still expects Ctrl+V:

https://github.com/openai/codex/blob/62fd410384cca008446c2d64a4f2b3f915f4906e/codex-rs/tui/src/bottom_pane/snapshots/codex_tui__bottom_pane__chat_composer__tests__footer_mode_shortcut_overlay.snap#L11-L17

The resulting diff is:

- "  @ for file paths                           ctrl + v to paste images"
+ "  @ for file paths                           ctrl + ⌥ + v to paste images"

In the complete codex-tui run, 3,231 tests passed, this one failed, and four
were ignored.

What steps can reproduce the bug?

  1. Use WSL2 where /proc/version contains microsoft, or where

WSL_DISTRO_NAME/WSL_INTEROP is set.

  1. Check out openai/codex at

62fd410384cca008446c2d64a4f2b3f915f4906e (or current main while these
source and snapshot bytes remain unchanged).

  1. From codex-rs, run:

``bash
cargo test -p codex-tui \
bottom_pane::chat_composer::tests::footer_mode_snapshots
``

  1. Observe the footer_mode_shortcut_overlay snapshot mismatch above.

I reproduced the failure on WSL2 in a branch whose task range does not modify
chat_composer.rs, footer.rs, or the tracked snapshot. I then verified
read-only that current upstream main still contains the same contradictory
render and snapshot state.

What is the expected behavior?

Snapshot tests should be deterministic across WSL and non-WSL hosts. WSL-specific runtime
behavior should remain covered by a focused test rather than changing the broad shortcut
overlay snapshot.

Additional information

This appears to be a regression of:

  • #9361
  • #9359, merged as 3f3916e5950bdb2c3096cc681dd8d672c9023086

That fix gated WSL detection out of the broad snapshot path during tests while retaining a
focused assertion for the WSL-specific binding. Current main no longer has that test-time
gate.

View original on GitHub ↗