Skip to content

feat: Add Codex completions - #1274

Merged
fdncred merged 4 commits into
nushell:mainfrom
PRO-2684:feat/codex-completions
Aug 19, 2026
Merged

feat: Add Codex completions#1274
fdncred merged 4 commits into
nushell:mainfrom
PRO-2684:feat/codex-completions

Conversation

@PRO-2684

Copy link
Copy Markdown
Contributor

Implemented using Codex itself. Verified with toolkit check pr and completion check:

image

Target Codex version: codex-cli 0.148.0.

@fdncred

fdncred commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Why are there only a few with comments/help strings in the screenshot and the code?

@PRO-2684

PRO-2684 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Why are there only a few with comments/help strings in the screenshot and the code?

Comments are copied manually to most of the top-level commands, but yes, some are missing. I've built Codex with clap_complete_nushell, since it doesn't support NuShell natively (openai/codex#6030), and generated a decent completion script. This version looks far more better, with help message for most command and flag:

Screenshots image image

Still some caveats though:

  • Recursive help externs (codex exec help, codex exec help resume, codex exec help fork, codex exec help help, codex login help help...)
  • Some aliases are missing, like a and e.

@fdncred

fdncred commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Looks better. Thanks!

@fdncred
fdncred merged commit eb43c8c into nushell:main Aug 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants