WSL: shortcut overlay snapshot regression after #9359
What version of Codex CLI is running?
Built from source. The current openai/codex main commit inspected for this report is62fd410384cca008446c2d64a4f2b3f915f4906e.
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 buildingFooterProps for the shortcut overlay during tests:
On WSL, that selects the Ctrl+Alt+V paste-image binding:
The checked-in snapshot still expects Ctrl+V:
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?
- Use WSL2 where
/proc/versioncontainsmicrosoft, or where
WSL_DISTRO_NAME/WSL_INTEROP is set.
- Check out
openai/codexat
62fd410384cca008446c2d64a4f2b3f915f4906e (or current main while these
source and snapshot bytes remain unchanged).
- From
codex-rs, run:
``bash``
cargo test -p codex-tui \
bottom_pane::chat_composer::tests::footer_mode_snapshots
- Observe the
footer_mode_shortcut_overlaysnapshot mismatch above.
I reproduced the failure on WSL2 in a branch whose task range does not modifychat_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.