Skip to content

Add codex update command#19933

Merged
etraut-openai merged 2 commits intomainfrom
etraut/codex-update
Apr 28, 2026
Merged

Add codex update command#19933
etraut-openai merged 2 commits intomainfrom
etraut/codex-update

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Apr 28, 2026

Why

Addresses #9274

Running codex update currently starts an interactive Codex session with update as the prompt. That is a rough edge for users who expect a direct self-update command after seeing the existing update notice, and it forces them to copy the suggested package-manager command manually.

What changed

  • Added a top-level codex update subcommand.
  • Reused the existing install-channel detection and update command runner that the TUI already uses for update prompts.
  • Exposed the update-action lookup from codex-tui so the CLI can invoke the same behavior.
  • Added CLI coverage to ensure codex update is parsed as a subcommand instead of becoming an interactive prompt.

Verification

  • cargo test -p codex-cli
  • cargo test -p codex-tui update_action::tests

@etraut-openai etraut-openai requested review from pakrym-oai and removed request for pakrym-oai April 28, 2026 05:47
@etraut-openai etraut-openai changed the title Add codex update command Add codex update command Apr 28, 2026
@etraut-openai etraut-openai merged commit b985768 into main Apr 28, 2026
25 checks passed
@etraut-openai etraut-openai deleted the etraut/codex-update branch April 28, 2026 06:34
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 28, 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.

3 participants