Skip to content

fix(cli): global update leaves Codex on the previous built/ while doctor --global reports healthy #1436

Backlog

Description

@Prunil62

Description

After a user-scope install made by CLI 5.7.0, neither aidd sync --global nor aidd setup --global --release <tag> from CLI 5.8.0 moves Codex to the new built/5.8.0. Both commands exit 0, and aidd doctor --global reports "User-scope installation is healthy" while Codex still loads the previous release. Claude Code follows the new built/ in the same runs.

The Codex registration that the CLI refuses as "unproven" is the one the CLI itself wrote with 5.7.0.

Steps to reproduce, each trial in a fresh, empty HOME (no prior Claude Code, Codex or AIDD state, no manual plugin install):

export HOME=$(mktemp -d)
export XDG_CONFIG_HOME=$HOME/.config AIDD_USER_CONFIG_DIR=$HOME/.config/aidd AIDD_SKIP_UPDATE_CHECK=1 \
  CLAUDE_CONFIG_DIR=$HOME/.claude CODEX_HOME=$HOME/.codex
P=aidd-context,aidd-dev,aidd-vcs,aidd-pm,aidd-orchestrator,aidd-refine
npx @ai-driven-dev/[email protected] setup --global --source remote --release v5.14.0 --ide claude,codex --plugins "$P" --yes

# Trial D: the documented update first, then the explicit release
npx @ai-driven-dev/[email protected] sync --global
npx @ai-driven-dev/[email protected] setup --global --source remote --release cli-v5.8.0 --ide claude,codex --plugins "$P" --yes
npx @ai-driven-dev/[email protected] sync --global
codex plugin list
npx @ai-driven-dev/[email protected] doctor --global

# Trial E (new HOME, same 5.7.0 install): the explicit release directly
npx @ai-driven-dev/[email protected] setup --global --source remote --release cli-v5.8.0 --ide claude,codex --plugins "$P" --yes
npx @ai-driven-dev/[email protected] sync --global
codex plugin list

Affected file(s)

cli/ (native plugin activation for Codex, doctor --global). Root cause in the code: not established.

Expected behaviour

Codex's aidd-framework marketplace points to $HOME/.config/aidd/cache/built/5.8.0/aidd-framework/codex and loads the plugins of cli-v5.8.0 (for example aidd-context 2.12.0), as Claude Code does. If the CLI cannot move it, the command exits non-zero or doctor --global reports the drift.

Observed behaviour

Each 5.8.0 command prints, for Codex:

Warning: Native plugin activation — catalogue 'aidd-framework' host catalogue source is unproven; host registration left untouched. codex marketplace add $HOME/.config/aidd/cache/built/5.8.0/aidd-framework/codex failed: Error: marketplace 'aidd-framework' is already added from a different source; remove it before adding this source
Warning: Native plugin activation — upgrade marketplace 'aidd-framework' skipped: codex marketplace upgrade aidd-framework failed: Error: marketplace `aidd-framework` is not configured as a Git marketplace
  • Exit code 0 for every command (both trials).
  • codex plugin list: marketplace still $HOME/.config/aidd/cache/built/5.7.0/aidd-framework/codex, aidd-context 2.11.0 (both trials).
  • Claude Code reads built/5.8.0 (folder version 2.12.0 after the explicit release) in both trials; its registry still lists version 2.11.0.
  • doctor --global (trial D) prints codex (v5.7.0) and claude (v5.7.0), then "User-scope installation is healthy".

AI tool

Other: Codex 0.169.0 (the dropdown has no Codex entry). Claude Code 2.1.332 ran in the same trials and followed the new built/.

aidd-cli version

5.7.0 for the install, 5.8.0 for the update (aidd/5.8.0 node/22.23.1 linux-x64).

OS

Linux

Additional context

  • Also seen on a real user-scope installation, updated on 2026-11-27 with CLI 5.8.0: same "unproven" warning, exit code 0, Codex left on built/5.7.0, doctor --global healthy.
  • Workaround that moved Codex: codex plugin marketplace remove aidd-framework, codex plugin remove <plugin>@aidd-framework for each plugin, then setup --global --release cli-v5.8.0 again. After it, Codex reads built/5.8.0.
  • Trial D also shows that sync --global keeps a pinned ref (v5.14.0 stays in marketplaces.json); docs/INSTALL.md ("Update") presents sync --global as the update without saying so.
  • Trial D then rebuilds built/5.8.0 in place and keeps 35 files removed in cli-v5.8.0 (fix(cli): a --global rebuild for a newer release keeps the files that release removed #1230, fixed on next by 364ca041e, not in 5.8.0).
  • doctor --global was run in trial D only.

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions