Can't update Codex on Sprite

I’m trying to run codex on a Sprite. The current version is outdated (v0.118.0), but updating doesn’t seem to work. I’ve tried Codex’s own update routine, and invoking the update directly - npm install -g @openai/codex. Neither work because codex is installed to .local/bin instead of the global NPM location.

What’s the recommended way to update?

Does the npm install succeed? I wonder if you can install the latest version using NPM, then change the system path to point to the newer one.

It does succeed and installs to /.sprite. Running that version of codex works fine. So yes, you’re right, I can update the paths to point to that.

Nice, I’d do that then. Or you can probably delete the old version, and then the new one will be found automatically.

I’m surprised that self-update did not work; if that actually failed (Unix exit code non-zero) then it might be worth reporting that as a bug to Codex. A binary installed to a non-standard location should be able to cope with that change.