Skip to content

fix: sort codex features list alphabetically#12944

Merged
bolinfest merged 1 commit intomainfrom
pr12944
Feb 26, 2026
Merged

fix: sort codex features list alphabetically#12944
bolinfest merged 1 commit intomainfrom
pr12944

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Feb 26, 2026

Why

codex features list currently prints features in declaration order from codex_core::features::FEATURES. That makes the output harder to scan when looking for a specific flag, and the order can change for reasons unrelated to the CLI.

What changed

  • Sort the codex features list rows by feature key before printing them in codex-rs/cli/src/main.rs.
  • Add an integration test in codex-rs/cli/tests/features.rs that runs codex features list and asserts the feature-name column is alphabetized.

Verification

  • Added features_list_is_sorted_alphabetically_by_feature_name.
  • Ran cargo test -p codex-cli.

@bolinfest bolinfest merged commit fd719d3 into main Feb 26, 2026
37 of 39 checks passed
@bolinfest bolinfest deleted the pr12944 branch February 26, 2026 22:44
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants