Skip to content

Fix Codex plugin installation#12919

Merged
liliwilson merged 3 commits into
masterfrom
lili/fix-codex-plugin-install
Jun 22, 2026
Merged

Fix Codex plugin installation#12919
liliwilson merged 3 commits into
masterfrom
lili/fix-codex-plugin-install

Conversation

@liliwilson

@liliwilson liliwilson commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes the Codex plugin auto-install path so it works when CODEX_HOME is set to a per-workspace directory that does not yet exist.

  • Create the resolved CODEX_HOME directory before running any codex plugin command. (This is mainly relevant for self-hosted direct backend workers, where we set CODEX_HOME to be different)
  • Restore the codex plugin add <key> step after marketplace add, which was accidentally dropped in Auto-install Codex orchestration plugin for harness runs #11892.
  • Restore config.toml enabled-state detection and cache-based version detection (also regressed in Auto-install Codex orchestration plugin for harness runs #11892).
  • Preserve non-Git/local codex-warp marketplace overrides: skip marketplace add/upgrade when the marketplace is configured as a local directory.

Testing

Tested locally with the oz-local script.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Co-Authored-By: Oz oz-agent@warp.dev

Ensure CODEX_HOME exists before plugin commands. Restore plugin add after marketplace add. Restore config.toml enabled detection. Log command output on failures.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Jun 22, 2026
@liliwilson liliwilson force-pushed the lili/fix-codex-plugin-install branch from bf13515 to be6895c Compare June 22, 2026 18:02
@liliwilson

Copy link
Copy Markdown
Contributor Author

/oz-review

@oz-for-oss

oz-for-oss Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@liliwilson

I'm re-reviewing this pull request in response to a review request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR fixes Codex plugin auto-install for fresh per-workspace CODEX_HOME directories, restores the explicit plugin add command, and switches installed/update detection back to Codex config/cache state.

Concerns

  • The new install paths always run codex plugin marketplace add warpdotdev/codex-warp, which drops the previous guard that avoided mutating a configured non-Git/local codex-warp marketplace override.
  • The PR changes user-facing install/update instructions but does not include screenshots or a recording of the affected UI/flow.

Verdict

Found: 0 critical, 2 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/terminal/cli_agent_sessions/plugin_manager/codex.rs Outdated
Comment thread app/src/terminal/cli_agent_sessions/plugin_manager/codex.rs
Ensure CODEX_HOME exists before plugin commands. Restore plugin add after marketplace add. Restore config.toml enabled detection. Preserve non-Git codex-warp marketplace overrides.

Co-Authored-By: Oz <oz-agent@warp.dev>
@liliwilson liliwilson force-pushed the lili/fix-codex-plugin-install branch from be6895c to 5cfa012 Compare June 22, 2026 18:26
@liliwilson liliwilson marked this pull request as ready for review June 22, 2026 19:00
@liliwilson liliwilson requested a review from abhishekp106 June 22, 2026 19:00
@oz-for-oss

oz-for-oss Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@liliwilson

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR updates the Codex plugin manager to create the resolved CODEX_HOME before plugin commands, restore codex plugin add during install/update flows, detect enabled plugin state from config.toml, and read cached plugin versions.

Concerns

  • The changed Codex plugin install/update instructions and setup behavior are user-facing, but the PR description does not include screenshots or a screen recording demonstrating the updated flow end to end. Per repository guidance, visual evidence is required for user-facing changes.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

post_install_notes: &[
"Restart Codex to activate the plugin.",
"No separate plugin add/install command is required in current Codex versions.",
subtitle: "Run the following commands, then restart Codex.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [IMPORTANT] For this user-facing instruction change, please include screenshots or a screen recording demonstrating the updated install/update flow working end to end.

@liliwilson liliwilson changed the title Fix Codex plugin auto-install for fresh workspace CODEX_HOME Fix Codex plugin installation Jun 22, 2026
@liliwilson liliwilson merged commit b82e90c into master Jun 22, 2026
49 checks passed
@liliwilson liliwilson deleted the lili/fix-codex-plugin-install branch June 22, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants