Skip to content

[Bug]: Codex cant update #8051

Description

@TheDarkSkyXD

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

trying to update the codex provider

Image

Expected behavior

the provider to update form t3 code

Actual behavior

update teh provider

Impact

Blocks work completely

Version or commit

0.0.33

Environment

windows

Logs or stack traces

Screenshots, recordings, or supporting files

T3_Code_(Alpha)_WriRDUXIg1.png

Workaround

No response

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Aug 24, 2026
  2. TheDarkSkyXD commented on Aug 24, 2026

    @TheDarkSkyXD
    Author
    Image
  3. TheDarkSkyXD commented on Aug 24, 2026

    @TheDarkSkyXD
    Author

    I can't use t3 code with codex not being able to update inside t3 code.

  4. TheDarkSkyXD commented on Aug 24, 2026

    @TheDarkSkyXD
    Author

    ProviderAdapterProcessError: Provider adapter process error (codex) for thread 3d53a50d-475e-4cf2-a694-d043069e6cae: Codex App Server process exited with code 1
    at file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:159222:67
    at file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/Schema-DyMTXMnS.mjs:9178:96
    at ~effect/Utils/internal (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/Schema-DyMTXMnS.mjs:2430:10)
    at startSession (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:178166:59)
    at startSession (definition) (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:100151:23)
    at ensureSessionForThread (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:178247:10)
    at ensureSessionForThread (definition) (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:178089:33)
    at processTurnStartRequested (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:178654:12)
    at processTurnStartRequested (definition) (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:178438:36)
    at processDomainEvent (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:178670:46)
    at processDomainEvent (definition) (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:178635:29) {
    [cause]: CodexAppServerProcessExitedError: Codex App Server process exited with code 1
    at Object.onSuccess (file:///C:/Users/Admin/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/bin.mjs:156311:23)
    }

  5. andrew-trotter commented on Aug 25, 2026

    @andrew-trotter

    I'm experiencing the same. I was on Nightly build when the error arose. I switched to Stable and the error remained. Switched back to Nightly and updates have not resolved it.

  6. andrew-trotter commented on Aug 25, 2026

    @andrew-trotter

    Codex fixed it for me, resolution steps below.

    Root cause: T3 Code resolves codex to %APPDATA%\npm\codex.cmd on Windows. In my case, that npm installation was missing its
    optional Windows binary package (@openai/codex-win32-x64), so codex app-server exited with code 1 during the provider probe.

    The native Codex install was working. Reinstalling the npm package with optional dependencies fixed the probe.

    Manual fix:

    1. Close and reopen T3 Code after the repair.

    2. In PowerShell, reinstall Codex with optional dependencies:

      npm install -g @openai/codex@0.149.1 --include=optional

      Or use @latest if you are intentionally updating Codex.

    3. Confirm the npm launcher works:

      & "$env:APPDATA\npm\codex.cmd" --version

    4. In T3 Code, go to Settings → Providers → Codex and refresh the provider status.

    If the npm launcher still causes issues, set the Codex provider's Binary path to the native executable instead:

    C:\Users<username>\AppData\Local\Programs\OpenAI\Codex\bin\codex.exe

  7. agustinustheo commented on Aug 25, 2026

    @agustinustheo

    I'm experiencing these issues as well.

    My solution is to run codex update inside my terminal.

    It updates Codex for me, but the Provider update by T3Code doesn't work for me.

  8. TheDarkSkyXD commented on Aug 27, 2026

    @TheDarkSkyXD
    Author

    @t3dotgg Can you please fix this. Thanks

  9. vytorrennan commented on Aug 29, 2026

    @vytorrennan

    yup, having the same problem here

  10. marleymwangi commented on Aug 30, 2026

    @marleymwangi

    @t3dotgg
    Current pain point: (Linux install)

    bash
    # Requires sudo
    npm install -g --allow-scripts=@openai/codex @openai/codex@latest
    
    # Doesn't require sudo
    codex update
    Proposed solution:
    

    A simple toggle or detection mechanism that determines whether Codex was installed via npm or as a standalone CLI tool. This would allow codex update to:

    • Use the appropriate update method based on installation source
    • Avoid permission issues by not falling back to npm global installs when the user originally used the direct CLI installer

    This seems like a lightweight fix that would significantly improve the update experience for npm-based installations.

  11. vytorrennan commented on Aug 30, 2026

    @vytorrennan

    also, because t3code uses npm to install the updates, if you use something like mise (which is the default way on Omarchy) it breaks

  12. respectTheCode commented on Sep 1, 2026

    @respectTheCode

    Same here. If installed with the curl shell script then you need to use codex update

  13. kristofferR commented on Sep 2, 2026

    @kristofferR

    I just submitted a PR that will fix this :)

  14. juliusmarminge commented on Sep 5, 2026

    @juliusmarminge
    Member

    The conventional Linux mise npm-backend case is fixed on main by #9927, merged September 5 as c7dc3cbd. T3 no longer offers npm updates inside mise's tool-version directory; these installations stay manual-only. Ordinary npm globals and globals under mise-managed Node retain npm updates.

    This does not add automatic mise updates, which remain a separate proposal in #9225. Custom MISE_DATA_DIR roots with a different basename, native-wrapper detection, and the original Windows optional-binary failure are outside this fix. Native Windows/macOS updates were not tested or run. Keeping this issue open for those remaining cases.

    GPT 6 Astra via Codex in T3 Code.

  15. juliusmarminge commented on Sep 5, 2026

    @juliusmarminge
    Member

    A further mise-shim case from #10050 is fixed on main by #10085, merged September 5 as 2271a27d. A shim resolving to Homebrew's mise executable now stays manual-only instead of offering brew upgrade mise and comparing Codex against mise's version. Automatic mise updates remain a separate proposal in #9225.

    This does not resolve the original Windows optional-binary failure, native-wrapper detection or every custom installation layout. Verification used actual CodexDriver and Linux filesystem/PATH fixtures with synthetic Homebrew metadata, not native macOS/Windows updates. The separate stderr-display concern is unchanged. This issue remains open.

    GPT 6 Astra via Codex in T3 Code

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

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions