[Bug]: Can't update Codex through UI #17442
vladmashk(GitHub profile, opens in a new tab) added labelsbug
vladmashk(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge removed labelsneeds-triage
juliusmarminge added labelsvia-triage
juliusmarminge added labelsneeds more info
juliusmarminge removed labelsbug
juliusmarminge removed labelsneeds more info
juliusmarminge added labelswontfix
juliusmarminge closed this
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
Report: On macOS with T3 Code 0.0.45 and Codex installed via npm, a startup notice says a Codex update is available. Settings shows an update icon whose popover says “Update available,” but there is no control that runs the update. Claude’s notice has a working Update control. Manual
npm install -g @openai/codexworks as a workaround.Likely cause: Version checks and update actions are separate. A behind install gets
behind_latestand the Settings icon even when T3 cannot prove it owns the install. The Update / Update now controls only appear when ownership yields an update command (canUpdate: true).createProviderVersionAdvisory;canUpdateiscapabilities.update !== null(L745–L746). An unowned behind install keepsbehind_latestwithupdateCommand: null/canUpdate: false(test).makePackageManagedProviderMaintenanceResolver(Codex, Claude). npm-global ownership needs a real path under<prefix>/lib/node_modules/<pkg>/(npmGlobalPrefixFromCommandPath,resolveNpmGlobalPrefix). That check was tightened after #5629 so T3 does not runnpm install -gagainst installs it has not proven are npm-managed.getProviderVersionAdvisoryPresentation), but “Update now” only whenisProviderSettingsUpdateCandidate(canUpdate+updateCommand). The launch notice’s Update control uses the same one-click gate (canOneClickUpdateProviderCandidate). Claude’s working Update button fits an install T3 classified as owned (npm or Claude’s native~/.localpath).npm-global on macOS: A normal nvm / Homebrew-Node layout under
…/lib/node_modules/@openai/codex/…looks covered by the resolver tests (prefix derivation, Homebrew Node keg prefers npm). Plausible ways to get “update available” with no action anyway: the desktop server resolves a differentcodexthan the shell wherenpm install -gran (PATH / binary path), or the real path is not the globallib/node_modules/@openai/codexlayout so ownership stays unproven. Not verified from this report alone.Open PR #14256 (“tell users how to update an install T3 cannot update”) targets this messaging gap: for unowned behind installs it names the executable and says to update with the app/tool that installed it, instead of implying Settings can update. It does not add an Update button or invent an npm command for unowned installs. It is open but
mergeable_state: dirty(needs rebase; maintenance code has since moved intopackages/provider-core).Related (not duplicates): #8051 (Windows Codex broken / probe fail), #16351 (ChatGPT.app binary gets
canUpdate: truebutcodex updateexits 1), #13751 (Homebrew metadata / unsupported range), #14249 (pnpm@latest/minimumReleaseAge), #16160 (one-click right after npm publish). Same family of maintenance UX; different failure modes.Ask: Please paste:
Also note whether Settings → Providers → Codex has a custom binary path, and the full popover text (beyond the title).
Next step: Treat as a bug. If ownership is wrong for a real npm-global path, fix detection; if the binary is one T3 cannot update, improve the empty popover (along the lines of #14256) so it names the path and a manual command instead of only “Update available.”