Use Option symbol for mac key hints (#5582)

## Summary
- show the Option (⌥) symbol in key hints when the TUI is built for
macOS so the shortcut text matches the platform terminology

## Testing
- cargo test -p codex-tui

------
https://chatgpt.com/codex/tasks/task_i_68fab7505530832992780a9e13fb707b
This commit is contained in:
Josh McKinney
2025-10-23 20:04:15 -07:00
committed by GitHub
parent a6b9471548
commit e258f0f044
3 changed files with 21 additions and 0 deletions

View File

@@ -284,6 +284,11 @@ mod tests {
terminal
.draw(|f| w.render_ref(f.area(), f.buffer_mut()))
.expect("draw");
#[cfg(target_os = "macos")]
insta::with_settings!({ snapshot_suffix => "macos" }, {
insta::assert_snapshot!(terminal.backend());
});
#[cfg(not(target_os = "macos"))]
insta::assert_snapshot!(terminal.backend());
}