Skip to content

[Linux Desktop] 26.924.20706 Codex tasks stuck on "Starting your task"; CLI works #48212

Closed

Description

@jsyzyvc6cn-tech

What version of the Codex App are you using (From “About Codex” dialog)?

26.924.20706

What subscription do you have?

Pro

What platform is your computer?

Linux 6.6.141-09476-g954adab60416 x86_64 unknown

What issue are you seeing?

After updating ChatGPT Desktop on Linux to 26.924.20706, all local Codex tasks remain indefinitely on “Starting your task”.

The standalone Codex CLI works correctly with the same account and repository.

Relevant desktop backend logs include:

thread_hydration outcome=failure reason=timeout ... wallDurationMs=120005

and repeated:

Worktree archive will be retried errorMessage="Git is unavailable"

However, Git is available and works normally in the same Linux environment:

which git
/usr/bin/git

git --version
git version 2.47.3

git status also works normally in the affected repository.

The desktop app-server itself starts successfully, authenticates successfully, and reports version 0.158.0-alpha.2.

The problem appears specific to the Linux ChatGPT Desktop / Codex integration rather than Git, the repository, account authentication, or standalone Codex CLI.

What steps can reproduce the bug?

  1. Run ChatGPT Desktop 26.924.20706 on Debian 13 (trixie), x86_64, under ChromeOS Crostini.

  2. Open Codex.

  3. Start a brand-new Local task.

  4. Submit a trivial read-only prompt, for example:

    Read-only check. Report the current working directory. Make no changes.

  5. The task remains indefinitely on “Starting your task”.

Troubleshooting already completed:

  • Fully restarted ChatGPT Desktop.
  • Tried multiple brand-new Codex threads.
  • Reset ~/.config/Codex.
  • Tested with a clean CODEX_HOME.
  • Reauthenticated with ChatGPT.
  • Tested on a completely different network using a phone hotspot.
  • Confirmed standalone Codex CLI works correctly.
  • Confirmed Git works correctly in the same Linux environment.
  • Confirmed the affected repository is accessible and git status works normally.

The issue still reproduces after all of the above.

The regression appeared after updating from a previously working 26.908.x ChatGPT Desktop build to 26.924.20706.

What is the expected behavior?

A new Local Codex task should start within a few seconds, create or open the thread successfully, and begin processing the prompt.

The desktop app should detect the installed Git binary at /usr/bin/git and should not report “Git is unavailable” when Git works normally from the same Linux environment.

Additional information

Environment:

  • ChatGPT Desktop: 26.924.20706
  • Platform: Linux x86_64
  • OS: Debian GNU/Linux 13 (trixie) under ChromeOS Crostini
  • Standalone Codex CLI: 0.157.0
  • Desktop bundled Codex app-server: 0.158.0-alpha.2
  • Git: /usr/bin/git
  • Git version: 2.47.3
  • Userspace: Debian GNU/Linux 13 (trixie) under ChromeOS Crostini

Standalone Codex CLI continues to work correctly with the same account and repository.

The desktop backend successfully completes the Codex app-server initialization handshake and reports authenticatedAccountPresent=true.

A separate frontend/network symptom has also appeared in logs: some embedded ChatGPT requests receive a Cloudflare managed-challenge HTML response. However, reproducing the Codex task-start hang on both the normal network and a phone hotspot suggests the primary task-start issue is not specific to the local network.

I can provide the full sanitized backend log if useful.

Activity

  1. added
    app
    on Sep 25, 2026
  2. added
    bug
    app-server
    on Sep 25, 2026
  3. krutkovoffical-creator commented on Sep 25, 2026

    @krutkovoffical-creator

    Yeah same issue happend after updating to the new version

  4. illumin3dpb-ship-it commented on Sep 26, 2026

    @illumin3dpb-ship-it

    Same thing is happening to me, right after the new version.

  5. CodingwithKarim commented on Sep 26, 2026

    @CodingwithKarim

    Currently dealing with same issue on the desktop app right now when updating to version 26.924.20706

  6. sungyongcho commented on Sep 26, 2026

    @sungyongcho

    Same regression on Ubuntu 26.04 (Linux 7.0.0-34-generic x86_64), ChatGPT Desktop 26.924.20706, bundled app-server 0.158.0-alpha.2.

    Additional diagnostic that may point at the root cause: the Electron main process is not reaping its child processes. While a task was stuck on "Starting your task", ps --ppid <ChatGPT main pid> showed accumulating zombies: [git] <defunct>, [zsh] <defunct>, [codex] <defunct>, [gh] <defunct>, [ps] <defunct>.

    This matches the logged timeouts:

    • Failed to load shell env ... Timed out after 5000ms (the login-shell child exits, but its exit is never observed)
    • Git is unavailable (the /bin/sh -c '... exec "$git" --version' probe hits the 10s timeout, even though the same command completes in ~2 ms from a terminal)

    No thread/start/turn/start request reaches the app-server, which itself stays healthy. It reproduces on every launch across reboots since the update. The standalone CLI works.

  7. kris004 commented on Sep 26, 2026

    @kris004

    Adding a controlled reproduction on Gentoo Linux x86_64, consistent with the unreaped-child observation above. Rolling back from 26.924.20706 to 26.917.71314 restored normal thread loading and task startup without resetting the user profile.

    Additional evidence: SIGCHLD handler replacement during startup

    Local syscall traces show:

    • 26.917.71314: an empty-mask/native-style SIGCHLD handler is installed first, followed by the Node/libuv-style handler (full signal mask, SA_RESTART). The login-shell child exits with status 0 and is collected with wait4.
    • 26.924.20706: the Node/libuv-style handler is installed first, then replaced about 11 ms later by the empty-mask/native-style handler. The shell exits with status 0 and SIGCHLD is delivered, but no wait4 collects that child during the observation window. It remains a zombie; a subsequent Codex helper is also left unreaped.

    This directly reproduces the child-reaping failure, rather than merely inferring it from the shell timeout or "Git is unavailable" messages. Handler signatures match the libuv and Electron/Chromium implementations, but the proprietary Owl binary is stripped, so the exact native installer call stack was not symbolized.

    Isolation and A/B controls

    Tests used unmodified runtime executables from the upstream RPMs, a fresh profile, private Xvfb/X11 display, and isolated PID/network namespaces. The personal HOME, shell dotfiles, desktop session, local Gentoo launcher, NODE_OPTIONS preload, transparency changes, and power-management bridge were excluded. The host kernel and system libraries were still Gentoo's.

    Test Result
    Old upstream app Shell hydration completed; no zombies
    New upstream app Successful shell child remained a zombie at 2, 7 and 16 seconds
    New app.asar rebuilt without logical code changes Same failure
    New app with diagnostic startup deferral Shell and subsequent Codex helper were actually spawned and reaped; confirmed by wait4 traces

    The diagnostic-only change was in .vite/build/early-bootstrap.js, at the start of its async startup function:

    - async function o(){await t.a();
    + async function o(){await n.app.whenReady();await t.a();

    The new startup path invokes initializeNodeNetworkPermissions, which begins by hydrating the shell environment; the previous release loaded the shell environment later. These results point to a startup-order conflict that overwrites the child-exit handler.

    Limits: this was an offline startup fixture, not a signed-in end-to-end test. It contained the runtime, app archive, native modules and backend needed for startup, not the complete plugin/tool payload. The policy helper exited 1 in this restricted fixture; the diagnostic change correctly reaped that exit. The one-line deferral is therefore evidence, not a proposed production-ready fix: startup/network-policy ordering and authenticated task creation still need review.

    Could the Linux ordering of shell hydration versus native SIGCHLD initialization be checked? Sanitized diagnostic traces are retained locally if useful; no user conversation logs are attached.

    Diagnosis and drafting were AI-assisted; the observations above come from executed local tests and syscall traces.

  8. dmfallak commented on Sep 26, 2026

    @dmfallak

    Confirming the same Desktop regression on Ubuntu 26.04 (Linux 7.0.0-34-generic x86_64). ChatGPT Desktop 26.924.20706 / bundled app-server 0.158.0-alpha.2 failed for every local conversation.

    Additional A/B evidence:

    • thread/read still returned successfully (errorCode=null) in roughly 3–65 ms for normal-size sessions.
    • The updated renderer then logged thread_navigation outcome=aborted reason=superseded; one unusually large thread also produced a 30-second hydration timeout.
    • Normal sessions below 1 MB failed too, and new chats saved the first user message but remained at Starting your task....
    • Logs from the previous build contained thread_navigation outcome=success with content_visible; the updated build recorded no successful navigation.
    • Downgrading the same installation from 26.924.20706 (build 11431, commit 97cf4a3c7cee97ad6cbb13cb9ab228321db3a385) to 26.915.31945 (build 9922, commit 0242453bc53bf3fc686ef2bc0f8365b71d9d3900) immediately restored conversation rendering and task startup without resetting the profile.

    A private /feedback report was also submitted without conversation transcripts or logs.

  9. CristianGormaz commented on Sep 26, 2026

    @CristianGormaz

    Confirming the same regression on Linux Mint 22.3 with ChatGPT Desktop 26.924.20706.

    All new local tasks remain indefinitely at “Starting your task”, including a trivial fresh conversation (Reply only: OK). I reproduced it with multiple models.

    Troubleshooting already performed:

    • full system reboot;
    • completely signed out and signed back into ChatGPT Desktop;
    • tested fresh conversations;
    • tested different models.

    The failure persists.

    In a controlled reproduction, Desktop created a provisional client-new-thread identity, but I observed no corresponding durable thread creation, no client→real-thread binding, no thread/start, and no model request for the failed task. The app-server itself remained present.

    I submitted Desktop diagnostic feedback:

    no-active-thread-01a0dbfd-1eda-7933-92f5-42b1d34fb786

    I also encountered the Sep 25 Codex 401 backend-key incident earlier, but I am not asserting that it caused this regression; the current “Starting your task” failure persisted after that incident was reported resolved.

    I have preserved the affected local state and have not deleted the local profile/databases because an important affected conversation exists only locally.

  10. nightwolf3 commented on Sep 26, 2026

    @nightwolf3

    Confirming same issue

  11. EthicalAIExplorer commented on Sep 26, 2026

    @EthicalAIExplorer

    Adding a reproduction on Ubuntu 24.04 x86_64 / X11, using the official Linux DEB. Both new and existing Codex chats stalled at “Starting your task”, while the standalone CLI continued working.

    • Failing desktop: 26.924.20706; bundled backend 0.158.0-alpha.2.
    • Working after rollback: 26.917.71314; bundled backend 0.155.0-alpha.16.4.
    • Working standalone CLI: 0.157.1.

    Our additional finding concerns bundled-plugin replacement. The failing desktop accumulated completed staging directories containing .materialization-key, while the active marketplace remained on the previous version. Internal plugin/list calls succeeded, but plugin reconciliation never completed.

    Process inspection found bash, git, gh, and ps children that had exited with status 0 but remained zombies. In the shipped JavaScript, plugin replacement awaits native-host cleanup (the stop_chrome_native_host phase) after staging completes; that helper discovers processes through child_process.execFile('ps', ...). Chat preparation then waits for plugin reconciliation.

    The source, staging state, and zombie ps observations together point to this cleanup step blocking the upgrade. We did not capture the exact suspended JavaScript stack.

    We compared unmodified application binaries on the same host, using temporary Codex/Electron profiles without copying credentials or conversations. Inspection was after approximately 20–25 seconds:

    Test Result
    Previous build, empty temporary profile Plugin reconciliation completed; no zombie direct children at inspection.
    Failing build, empty temporary profile Zombie helpers and a 5-second shell timeout, although initial plugin installation completed.
    Failing build, temporary profile with the previous test's generated bundled-marketplace directory placed at the active target New staging/key completed, zombie ps helpers appeared, the target was not replaced, and reconciliation remained pending.

    This distinction may help reproduction: an empty profile can complete initial plugin installation while subprocess handling remains broken. The older marketplace exposes an additional blocking cleanup path.

    After backing up state and rolling back the installed package without resetting the existing profile, shell loading completed in 553 ms and plugin reconciliation in about 8.6 seconds. No zombie direct children were observed, and replies in both a new and an existing signed-in chat were confirmed in the UI.

    This is consistent with the SIGCHLD startup-order investigation above. We did not independently trace handler replacement or test the diagnostic bootstrap patch.

    Investigation and drafting were assisted by Codex. These observations come from executed local tests, source/log/process inspection, and UI verification; no raw private logs are attached.

  12. vicevolf commented on Sep 26, 2026

    @vicevolf

    Adding a Fedora Workstation reproduction and recovery result, consistent with the child-reaping / SIGCHLD observations above.

    Environment and version comparison

    • Fedora Linux 44 Workstation, x86_64; kernel 7.2.7-200.fc44.x86_64; Git 2.55.0.
    • 26.924.20706-1: local tasks stuck at “Starting your task”; full app restart and a system reboot did not resolve it.
    • Updated to the official RPM 26.924.22138-1: the same failure persisted after relaunch.
    • Standalone Codex CLI 0.157.1 remained usable.

    Observed on the affected builds

    • Shell environment hydration timed out after 5000 ms; Git availability checks failed even though the corresponding shell/Git probes completed normally outside the desktop app.
    • Direct children of the desktop main process accumulated as zombies, including Bash, Git, and process-discovery helpers. Inspected Bash/Git children had exited with status 0.
    • The app-server remained responsive to configuration/account/model requests.
    • A startup syscall trace of 26.924.22138 showed a full-mask, SA_RESTART SIGCHLD handler installed and then replaced by a different empty-mask handler. The successful shell-child exit signal was delivered, but that child was not collected and remained a zombie. This independently supports the startup-order observation in the earlier diagnostic comment. We did not symbolize the native installer stack or test the bootstrap patch.

    Recovery

    The official 26.915.31945-1 RPM passed signature/digest verification. Its application payload was extracted into a user-owned directory and launched with the existing profile, without modifying the application code or resetting/deleting configuration, login state, or conversations. This was a user-local fallback; the system-installed newer RPM was left in place.

    With the older build:

    • Shell environment hydration completed in 111 ms.
    • App-server initialization succeeded.
    • Follow-up inspection found zero zombie direct children and no shell-timeout / “Git is unavailable” messages in that launch's desktop log.
    • Desktop logs showed thread/start and turn/start being dispatched, and the user reported that the desktop appeared functional again.

    This is a same-host version comparison, not a full regression suite or proof of a production-ready code fix.

    Only sanitized observations are included: no raw logs, process IDs/addresses, usernames, hostnames, personal paths, session/request/account IDs, credentials, or conversation content are attached. Investigation and drafting were assisted by Codex.

  13. boommasterxd commented on Sep 26, 2026

    @boommasterxd

    Adding an independent reproduction on Fedora 44 / GNOME Wayland, x86_64, plus signed-in recovery on the same current app version without downgrading. This supports the SIGCHLD startup-order findings above.

    Environment and symptoms

    • Official RPM: chatgpt-26.924.22138-1.x86_64.
    • Bundled backend: codex-cli 0.158.0-alpha.2.1; standalone CLI: 0.157.1.
    • Local chat creation and saved SSH connections stopped progressing after the update.
    • Logs repeatedly showed Failed to load shell env ... Timed out after 5000ms and Git is unavailable.
    • The exact Git availability probe succeeded outside the app in approximately 8 ms; ssh -G resolved all three saved aliases in approximately 9–14 ms.
    • Full restart, sign-out/sign-in, terminal launch, and a separate Electron UI profile did not help. The UI-profile test still used the existing Codex home; it was not a clean-CODEX_HOME test.
    • RPM file verification passed before applying the workaround.

    Traced handler replacement

    A controlled startup trace showed the main process installing a full-mask, SA_RESTART SIGCHLD handler, then replacing it with an empty-mask handler. Shell/helper children exited successfully and SIGCHLD was delivered, but asynchronous children were not collected and remained zombies (bash, ssh, git, and other helpers).

    For this exact executable:

    SHA-256: 23b753552181a8ea661681256c2dbf993fea1285fbc5c824478bad9cbdd45c91
    Original handler: executable base + 0x117da050
    Replacement:      executable base + 0x117d9f78
    

    Disassembly showed that the replacement is a trampoline to a no-op return. We did not identify the native installer call stack.

    Narrow intervention and observed recovery

    We tested a small LD_PRELOAD interposer that preserves the original handler only when SIGCHLD and both exact handler addresses match this observed transition. Other sigaction operations pass through. A launcher pins the executable SHA-256 and bypasses the interposer for a different binary. Installed package files, sandbox settings, and existing profile data were not modified/reset.

    With this intervention, first in the separate UI profile and then after restarting the normal profile:

    • SSH catalog refresh completed; all three saved SSH hosts reached connected with no connection error.
    • Shell environment loading completed; the previous shell-timeout and Git-unavailable errors were absent in the checked launch.
    • No zombie direct children were present at follow-up inspection.
    • A new signed-in local chat started successfully, and a subsequent trivial prompt completed with OK, confirmed by the session's task_complete event.
    • A controlled launcher test with a mismatched executable confirmed that the guard was not loaded.

    This is evidence that preserving child-exit handling restores the affected flows on 26.924.22138, not a proposed production-ready fix. The interposer is build-specific; broader runtime compatibility, long-running behavior, and future releases have not been validated. We did not test the earlier bootstrap-deferral patch or run a task on each connected remote.

    No raw logs, credentials, personal paths, hostnames, or conversation transcripts are attached. Investigation and drafting were assisted by Codex; the observations above come from executed local checks and the user's chat test.

  14. 14 remaining items

  15. RichardMM commented on Sep 26, 2026

    @RichardMM

    same issue on xubuntu. I am forced to use terminal only as desktop does not load any chat from projects.

  16. vcode-sh commented on Sep 26, 2026

    @vcode-sh

    same issue on xubuntu. I am forced to use terminal only as desktop does not load any chat from projects.

    check my solution in comments

  17. sbradley-dragin commented on Sep 26, 2026

    @sbradley-dragin

    Also impacted on Linux Desktop, now on version 26.924.22138 (installed Sept. 26).

    My symptoms are very similar:

    • Existing Codex chats initially would not load.
    • New Codex sessions remain stuck on “Starting your task” and never begin.
    • Codex CLI works correctly.
    • Codex through VS Code works correctly.
    • Remote interaction from the ChatGPT mobile app also works.
    • Normal ChatGPT functionality in the Linux desktop app works.

    One additional datapoint: my system had fs.inotify.max_user_instances=128. After temporarily raising it to 1024, an existing Codex thread that previously would not load began loading successfully. However, I still cannot actually start/interact with Codex from the Linux desktop app; new tasks continue to hang at “Starting your task.”

    So the low inotify limit appears to have been contributing to thread-loading problems, but there seems to be an additional Desktop-specific problem remaining in 26.924.22138.

    I have also already updated the app, logged out/in, and restarted it. CLI/VS Code/mobile continue to work while Linux Desktop does not.

    I have not yet tried the workaround from vcode-sh as I am not blocked, but will try it later today if this issue persists. I'm logging here as I'm interested in knowing when this will be resolved.

  18. VictorSesma commented on Sep 26, 2026

    @VictorSesma

    Additional confirmation on Ubuntu 24.04.5 LTS, x86_64, kernel 7.0.0-34-generic, using the official chatgpt DEB package.

    The issue persists in 26.924.22138, bundled app-server 0.158.0-alpha.2.1 (desktop build 11645). New local Codex tasks remain at “Starting your task”; existing-thread hydration also times out.

    Current process evidence, consistent with the child-reaping reports above: after approximately 75 minutes of desktop uptime, a process snapshot shows 37 zombie direct children of the ChatGPT main process: codex: 1, gh: 3, git: 18, ps: 14, bash: 1. The separate, live Codex app-server is still present. One zombie Codex helper was also inspected through /proc/<pid>/stat and had exit status 0. This establishes an unreaped successful child on this installation; I have not traced SIGCHLD handler replacement locally.

    Other verified observations:

    • App-server initialization completes successfully (127 ms); account lookup reports authenticatedAccountPresent=true and result=succeeded. Requests such as config/read and model/list continue returning with errorCode=null.
    • Desktop startup logs Failed to load shell env ... Timed out after 5000ms, followed by repeated Worktree archive will be retried errorMessage="Git is unavailable".
    • /usr/bin/git --version succeeds (Git 2.43.0). A terminal-side bash -ilc 'command -v git; git --version' probe exits 0 in approximately 0.16 s. This is a comparison probe, not an exact reproduction of Desktop's child-process setup.
    • The affected run records thread_hydration outcome=failure reason=timeout. A new-task timing span reaches thread_creation_started and thread_inputs_ready but is eventually aborted on navigation away. There is no method=turn/start response recorded in that run. There is a successful thread/start for the MCP extension host, so not every thread-start path is failing.

    Package history confirms upgrades from 26.917.71314 to 26.924.20706 on September 25, then to 26.924.22138 on September 26. The shell/Git failures recur across multiple launches of the newer versions.

    No profile reset, downgrade, or bootstrap patch has been applied on this machine, so I am not claiming a locally verified fix. These are sanitized diagnostic observations; no conversation transcripts, account identifiers, or personal paths are attached.

  19. silasthegoldenwizard commented on Sep 26, 2026

    @silasthegoldenwizard

    Follow-up: direct-launch timeout and session-file check

    I repeated the test on Debian 13 (trixie), x86_64, X11, using ChatGPT Desktop 26.924.22138 and its bundled Codex app-server 0.158.0-alpha.2.1, specifically to check whether the apparently stuck Desktop task executes in the background, as reported in #48482.

    Result: the Desktop UI remained at “Starting your task”, the frontend recorded a turn_first_response_visible timeout, and the session-file check below printed no paths. This does not establish that no backend execution occurred; the observations and their limits are detailed below.

    Test setup

    After closing the application, the following process check returned no matches:

    pgrep -af '/usr/lib/chatgpt/ChatGPT'

    I then launched the application directly, without my custom Firejail launcher and without strace, capturing stdout and stderr:

    /usr/bin/chatgpt 2>&1 | tee /tmp/chatgpt-direct.log

    This used my existing application profile and configuration, not a fresh profile.

    Before submitting the prompt, I created a filesystem marker in a second terminal:

    touch /tmp/codex-session-marker-direct2
    date -Ins

    The terminal reported 2026-09-26T19:33:34,134505587+02:00. I submitted the following in the existing local test project desktop-sync-test:

    Reply with exactly: direct-desktop-session-test-2
    

    No assistant response became visible, and the UI continued displaying the startup message.

    App-server and frontend observations

    The local app-server completed initialization successfully (durationMs=212, outcome=success) and transitioned to connected. The account lookup reported authenticatedAccountPresent=true and result=succeeded. Configuration requests continued receiving responses; a configRequirements/read response with errorCode=null is also present after the frontend timeout.

    The Desktop emitted the following fields in a single client.performance.span entry, reformatted here for readability:

    name=turn_first_response_visible
    outcome=failure
    reason=timeout
    submissionKind=new_thread
    threadKind=regular
    responseRuntime=unknown
    marksMs={"thread_creation_started":500.5,"thread_inputs_ready":627.4}
    durationMs=161200.1
    wallDurationMs=161199.6
    backgroundDurationMs=41165
    timingQuality=backgrounded
    

    The recorded wall duration is approximately 161.2 seconds, with 41.2 seconds recorded as background time. These measurements do not establish the configured timeout threshold. This is a turn_first_response_visible timeout, not a thread_hydration event. Likewise, responseRuntime=unknown is a telemetry value, not proof that no runtime was selected.

    The capture contains a /local/client-new-thread:... route. Its identifier was already present in an earlier run, so I am not treating that route as evidence that a new app-server thread was created during this test.

    I found no thread/start, turn/start, turn/started, or task_complete entries in the captured stdout/stderr. This was not a protocol-level RPC trace, so missing log entries do not prove those requests or events never occurred.

    Session-file observation

    While the UI remained stuck, I ran:

    find ~/.codex/sessions -type f -name '*.jsonl' \
      -newer /tmp/codex-session-marker-direct2 \
      -printf '%TY-%Tm-%Td %TH:%TM:%TS  %p\n' \
      2>/dev/null

    No paths were printed. More precisely, the command reported no matching JSONL files with modification times newer than the marker in the searched directory tree. It was not a direct check of file-creation times. Stderr was suppressed, and I did not record the exit status or independently verify the Desktop process’s effective session-storage location and persistence settings.

    Other messages in the same capture

    The previously observed shell-environment timeout and Git warning remain present:

    Failed to load shell env caller=startup detail="Timed out after 5000ms."
    
    [managed-worktree-archive-queue] Worktree archive will be retried errorMessage="Git is unavailable"
    

    The capture also contains Cloudflare managed-challenge HTML associated with /ces/v1/projects/oai/settings and /ces/v1/rgstr, plus generic RequestError messages and Failed to fetch sources dropdown backend catalog. I have not established whether these errors are involved in the task-start failure. Query strings and challenge tokens are omitted here.

    Comparison and remaining question

    In my earlier tests, the same bundled Codex executable completed pwd successfully both inside a Git repository and in a plain directory using --skip-git-repo-check. Those were separate CLI sessions; they do not demonstrate successful execution of a Desktop-submitted task.

    Unlike the execution reported in #48482, I have not observed a corresponding completed background session for this Desktop submission. An earlier failure in the submission path remains a possibility, but neither the exact failure stage nor a separate root cause has been established.

    Which supported diagnostic would best determine whether this Desktop submission reaches thread/start and turn/start, and where its session should be persisted? A targeted protocol or storage check would help distinguish a submission failure from an execution/UI-synchronization failure without resetting the existing profile.

  20. Fourish commented on Sep 26, 2026

    @Fourish

    Temporary hook script

    #!/usr/bin/env bash
    # Linux x86_64. Quit ChatGPT before running this loader.
    set -euo pipefail
    umask 077
    tmp=$(mktemp -d /tmp/chatgpt-sigchld.XXXXXXXX)
    trap 'rm -f -- "$tmp/guard.so"; rmdir -- "$tmp"' EXIT
    
    cc -shared -fPIC -O2 -Wall -Wextra -x c -o "$tmp/guard.so" - -ldl <<'C'
    #define _GNU_SOURCE
    #include <dlfcn.h>
    #include <errno.h>
    #include <signal.h>
    #include <stdint.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    
    static int (*real_action)(int, const struct sigaction *, struct sigaction *);
    static pid_t owner;
    static int intercepted;
    
    __attribute__((constructor)) static void initialize(void) {
        real_action = dlsym(RTLD_NEXT, "sigaction");
        const char *s = getenv("CHATGPT_SIGCHLD_GUARD_PID");
        owner = s ? (pid_t)strtol(s, NULL, 10) : 0;
    }
    
    static ssize_t read_code(const unsigned char *p, unsigned char bytes[16]) {
        Dl_info info;
        long page_size = sysconf(_SC_PAGESIZE);
        if (page_size <= 0 || !dladdr(p, &info)) return -1;
        
        size_t remaining = (size_t)page_size - (uintptr_t)p % (size_t)page_size;
        size_t n = remaining < 16 ? remaining : 16;
        memcpy(bytes, p, n);
        return (ssize_t)n;
    }
    
    static int empty_function(void (*handler)(int)) {
    #if defined(__x86_64__)
        const unsigned char *p = (const unsigned char *)(uintptr_t)handler;
        
        for (int i = 0; i < 4; i++) {
            unsigned char bytes[16];
            ssize_t n = read_code(p, bytes);
            if (n <= 0) break;
            if (n >= 4 && memcmp(bytes, "\xf3\x0f\x1e\xfa", 4) == 0) {
                p += 4;
                n = read_code(p, bytes);
                if (n <= 0) break;
            }
            if (bytes[0] == 0xc3) return 1;
            if (n >= 6 && (memcmp(bytes, "\x55\x48\x89\xe5\x5d\xc3", 6) == 0
                || memcmp(bytes, "\x55\x48\x89\xe5\xc9\xc3", 6) == 0)) return 1;
            if (n < 5 || bytes[0] != 0xe9) break;
            int32_t displacement;
            memcpy(&displacement, bytes + 1, sizeof displacement);
            p += 5 + displacement;
        }
    #else
        (void)handler;
    #endif
        return 0;
    }
    
    int sigaction(int sig, const struct sigaction *act, struct sigaction *oldact) {
        if (!real_action) real_action = dlsym(RTLD_NEXT, "sigaction");
        if (!real_action) { errno = ENOSYS; return -1; }
        if (owner > 0 && getpid() == owner && !intercepted && sig == SIGCHLD && act
            && act->sa_flags == 0 && sigisemptyset(&act->sa_mask) == 1
            && act->sa_handler != SIG_DFL && act->sa_handler != SIG_IGN) {
            struct sigaction current;
            if (real_action(sig, NULL, &current) == 0
                && (current.sa_flags & SA_RESTART)
                && !(current.sa_flags & (SA_SIGINFO | SA_RESETHAND | SA_NOCLDWAIT))
                && current.sa_handler != SIG_DFL && current.sa_handler != SIG_IGN
                && current.sa_handler != act->sa_handler
                && sigismember(&current.sa_mask, SIGCHLD) == 1
                && sigismember(&current.sa_mask, SIGINT) == 1
                && sigismember(&current.sa_mask, SIGTERM) == 1) {
                if (empty_function(act->sa_handler)) {
                    intercepted = 1;
                    if (oldact) *oldact = current;
                    const char msg[] = "[sigchld-guard] preserved existing handler; empty replacement skipped\n";
                    ssize_t written = write(STDERR_FILENO, msg, sizeof msg - 1);
                    (void)written;
                    return 0;
                }
    
            }
        }
        return real_action(sig, act, oldact);
    }
    C
    
    /bin/bash -c '
        export CHATGPT_SIGCHLD_GUARD_PID=$$
        export LD_PRELOAD="$1${LD_PRELOAD:+:$LD_PRELOAD}"
        shift
        exec /usr/lib/chatgpt/ChatGPT "$@"
    ' chatgpt-sigchld "$tmp/guard.so" "$@"
    
  21. olivier-gosselin commented on Sep 26, 2026

    @olivier-gosselin

    Adding independent corroboration on Arch Linux / Omarchy, x86_64, using the official OpenAI Pacman package chatgpt-bin 26.924.22138-1. This supports the existing startup-order diagnosis and same-process recovery reports, rather than proposing a different root cause.

    Reproduction and controls

    • Existing conversations remained on a loading spinner. The failure reproduced through the argument-free official /usr/bin/chatgpt launcher, bypassing the personal wrapper and explicit display flags. The app selected XWayland by default.
    • Package verification reported 4,490 files, zero altered files.
    • Startup traces showed the libuv-style SIGCHLD handler being replaced by a no-op native handler roughly 28 ms later. Successful helper exits delivered SIGCHLD but were not collected. A registration-stack trace placed the replacement inside the packaged executable; the exact source-level function remains unsymbolized.
    • The native executable SHA-256 matches other reports: 23b753552181a8ea661681256c2dbf993fea1285fbc5c824478bad9cbdd45c91.

    Controlled recovery without restarting the app

    After validating the procedure on a disposable process, a build- and process-identity-checked GDB intervention restored the original handler, signal mask and SA_RESTART, verified the result, and detached. One subsequent SIGCHLD notification cleared all 13 zombie direct children. Logs then recorded successful conversation resume, and I confirmed that a previously stalled conversation's history loaded. Follow-up checks found zero zombie direct children and no attached tracer.

    The intervention did not patch installed application files or reset the profile. It is a temporary diagnostic recovery, lost when the process exits, not a recommended routine launch method.

    Separate inotify issue

    This host also had genuine inotify exhaustion associated with orphaned watchers. Cleaning those up did not resolve the conversation spinner. The later handler restoration did, which helps separate the resource-limit problem from this startup regression.

    The documented bootstrap-deferral patch has now been prepared and archive-validated locally, but has not been installed or tested across fresh launches. I am not claiming that persistent workaround or its native startup-policy timing is validated on Arch yet.

    Diagnostics and drafting were assisted by Codex; conversation recovery was confirmed manually. Only sanitized findings are included here, with no raw logs, conversation contents, credentials or personal paths attached.

  22. sbradley-dragin commented on Sep 26, 2026

    @sbradley-dragin

    I'm hitting the same thing on Ubuntu 26.04 (Linux 7.0.0-34-generic, x86_64) with the official .deb, chatgpt 26.924.22138. My native executable has the same SHA-256 as reported above: 23b753552181a8ea661681256c2dbf993fea1285fbc5c824478bad9cbdd45c91. After about 48 minutes of uptime, my main process had around 200 zombie direct children (bash, ssh, git, ps, gh, codex, python3), and every local task was stuck on "Starting your task".

    The whenReady() bootstrap deferral fixed it for me too. After relaunching I see zero zombies at 45 s and at ~105 s, and local tasks work again with my existing profile. I didn't reset anything.

    Ubuntu note: I had to patch in place, not run a private copy

    Ubuntu 24.04+ ships with kernel.apparmor_restrict_unprivileged_userns=1. The package's /etc/apparmor.d/chatgpt profile grants userns only for the path /usr/lib/chatgpt/ChatGPT. A copy of the app launched from another directory doesn't get that exemption, so the Chromium sandbox fails. On Ubuntu I found it more practical to patch resources/app.asar in place and keep a backup. The next package update overwrites the patch anyway, and apt reinstall chatgpt reverts it.

    I didn't want a full extract/repack with @electron/asar, so I wrote a small script that rewrites only .vite/build/early-bootstrap.js. It updates that entry's size and SHA-256 integrity hash/blocks, shifts the offsets of later entries, and copies everything else byte for byte. I compared every packed entry before and after: of 19,472 entries only the target differs, and all integrity hashes verify. The script refuses to run unless the exact original code appears exactly once, so it won't touch a different build.

    patch-asar.py
    #!/usr/bin/env python3

    Workaround for #48212: defer initializeNodeNetworkPermissions until app.whenReady().

    Rewrites only .vite/build/early-bootstrap.js inside app.asar. Usage: patch-asar.py IN OUT

    import hashlib, json, struct, sys

    TARGET = ".vite/build/early-bootstrap.js"
    OLD = b"async function o(){await t.a();let{initializeNodeNetworkPermissions:e}"
    NEW = b"async function o(){await t.a();await n.app.whenReady();let{initializeNodeNetworkPermissions:e}"

    src, dst = sys.argv[1], sys.argv[2]
    raw = open(src, "rb").read()
    hdr_pickle_size = struct.unpack_from("<I", raw, 4)[0]
    json_len = struct.unpack_from("<I", raw, 12)[0]
    header = json.loads(raw[16:16 + json_len])
    base = 8 + hdr_pickle_size

    node = header
    for part in TARGET.split("/"):
    node = node["files"][part]
    off, size = int(node["offset"]), node["size"]
    body = raw[base + off: base + off + size]
    if NEW in body:
    sys.exit("already patched")
    if body.count(OLD) != 1:
    sys.exit("patch site not found exactly once - different build, refusing")
    new_body = body.replace(OLD, NEW)
    delta = len(new_body) - size

    def shift(n):
    for v in n.get("files", {}).values():
    if "files" in v:
    shift(v)
    elif "offset" in v and not v.get("unpacked") and int(v["offset"]) > off:
    v["offset"] = str(int(v["offset"]) + delta)
    shift(header)
    node["size"] = len(new_body)
    bs = node["integrity"]["blockSize"]
    node["integrity"]["hash"] = hashlib.sha256(new_body).hexdigest()
    node["integrity"]["blocks"] = [hashlib.sha256(new_body[i:i + bs]).hexdigest()
    for i in range(0, len(new_body), bs)]

    j = json.dumps(header, separators=(",", ":")).encode()
    inner = struct.pack("<I", len(j)) + j + b"\0" * ((4 - len(j) % 4) % 4)
    hdr = struct.pack("<I", len(inner)) + inner
    open(dst, "wb").write(struct.pack("<II", 4, len(hdr)) + hdr + raw[base:base + off] + new_body + raw[base + off + size:])
    print(f"patched {TARGET}: +{delta} bytes")
    These are the steps I ran:

    quit ChatGPT first

    python3 patch-asar.py /usr/lib/chatgpt/resources/app.asar /tmp/app.patched.asar
    sudo cp -a /usr/lib/chatgpt/resources/app.asar /usr/lib/chatgpt/resources/app.asar.orig
    sudo install -m 644 /tmp/app.patched.asar /usr/lib/chatgpt/resources/app.asar

    after relaunch, this should print 0

    ps -o stat= --ppid "$(pgrep -xo ChatGPT)" | grep -c Z
    Like the others here, I see this as a local workaround until an upstream fix ships, not a proposed fix. I've only verified it on my own machine.

    Confirming this workaround from @vcode-sh works for me as well. Thanks!

  23. adrex98 commented on Sep 27, 2026

    @adrex98

    I can confirm that the app.whenReady() workaround fixes this issue for me on Fedora with ChatGPT Desktop 26.924.20706-1.

    Before applying the workaround, both new and existing local Codex tasks were stuck indefinitely at "Starting your task".

    I patched .vite/build/early-bootstrap.js inside app.asar.

    The change was:

    async function o(){await t.a();let{initializeNodeNetworkPermissions:e}

    to:

    async function o(){await t.a();await n.app.whenReady();let{initializeNodeNetworkPermissions:e}

    I rebuilt the app.asar with the corresponding size/offset/integrity metadata updated, then replaced the installed app.asar.

    After applying the patch:

    • New local Codex tasks start and run normally.
    • Existing local Codex tasks also start and run normally.
    • I closed ChatGPT completely and launched it again normally from the Fedora application menu (not from the terminal), and the workaround still works.
    • I tested both new and existing tasks again after the normal GUI launch.

    Environment:

    • Fedora Linux
    • x86_64
    • ChatGPT Desktop 26.924.20706-1

    So, on my Fedora installation, deferring initializeNodeNetworkPermissions() until app.whenReady() resolves the "Starting your task" issue.

    This may be related to the initialization ordering of the Linux desktop app, although I have not independently confirmed the root cause.

  24. runlvl commented on Sep 27, 2026

    @runlvl

    Confirmed on another Ubuntu 26.04.1 LTS x86_64 machine, GNOME Wayland with the app's default XWayland mode. Official Debian package 26.924.22138 (build 11645) reproduces this: even a trivial new local task stays on "Starting your task". Git 2.53.0 works independently.

    The findings match the child-process handling regression described here:

    • Startup reports Failed to load shell env after 5000 ms and Git is unavailable.
    • Successfully exited bash/git/ps subprocesses remain as zombies under the desktop process.
    • A syscall trace shows libuv installing a SIGCHLD handler through uv_spawn, followed by the native Chromium/ChromeMain startup path replacing it. The shell then exits with status 0 and SIGCHLD reaches the parent, but the parent does not reap that shell during the trace.
    • Inspection of this build's binary shows the replacement handler leading to an empty function. Slowing startup with strace -k changes the outcome, consistent with a startup-ordering race rather than a Git authentication problem.

    Verified recovery: after backing up the profile and local databases, reverting to the official 26.917.71314 (build 10954) restored operation without resetting the original profile. Two fresh local chats returned visible answers, with a complete app exit and normal desktop-entry relaunch between them. Shell initialization completed in 97–98 ms; no direct zombie children or the original shell/Git errors were observed in those checks. Package integrity verification was clean. No binary patch, sandbox disabling, signal interposer or artificial startup delay was used for the working version.

    Only the known-bad version is excluded locally with an exact-version APT pin; later official versions remain eligible for updates.

    Could the desktop team confirm whether this SIGCHLD startup regression is being tracked for a Linux fix? A regression test covering short-lived subprocess exit/close delivery during native startup, shell initialization and a new local task would help prevent recurrence. I can provide sanitized trace excerpts if needed.

  25. juanramon23 commented on Sep 27, 2026

    @juanramon23

    Additional confirmed reproducer on Ubuntu 24.04.5 LTS (amd64), ChatGPT Desktop 26.924.22138:

    • Local APT history shows the desktop was upgraded from 26.915.31945 to 26.924.22138 on 2026-09-27. After the update, new local Codex tasks stayed at “Starting your task”; ChatGPT in the browser continued to work.
    • Standalone Codex CLI 0.157.1 and /usr/bin/git 2.43.0 worked independently. A manual Bash login startup completed in about 0.14 seconds. Desktop diagnostics included “Failed to load shell env” after 5000 ms and “Git is unavailable”. The app-server continued replying to status/config/thread reads, while the captured log contained no turn/start.
    • Reverting only the chatgpt package to this machine’s exact prior version, 26.915.31945, restored UI responsiveness. A new task returned “¡Hola, Juan! ¿En qué te ayudo?” The standalone CLI session remained active. dpkg -V chatgpt reported no file changes. The profile and history were backed up; no reset was needed.
    • APT simulation showed only chatgpt would be downgraded, with no packages added or removed. The prior package was retrieved over HTTPS from the official OpenAI package host.

    SIGCHLD was not traced and zombie children were not directly inspected on this machine, so this report does not independently confirm that mechanism. The symptoms are consistent with the analysis in #48554. This adds an Ubuntu 24.04.5 datapoint to #48212.

    If you encounter the same symptom, preserve local state before troubleshooting. On this system, reverting to its last working official package restored the UI without resetting profile/history. No raw logs, project details, private paths, conversation IDs, credentials, or conversation content are attached.

  26. sitelift commented on Sep 27, 2026

    @sitelift

    Confirmed on Arch Linux / Omarchy, x86_64, using the Omarchy-packaged openai-codex-desktop 26.924.22138-1.

    Before the workaround, new local tasks hung at “Starting your task”. The desktop logged a 5000 ms shell-environment timeout and “Git is unavailable”. Direct Bash/Git/ps children remained zombies, while the bundled Codex CLI successfully answered a test prompt.

    Applied only the documented await n.app.whenReady() addition in .vite/build/early-bootstrap.js. All 19,472 ASAR entries were compared; only that entry’s contents changed, with archive metadata/integrity updated.

    After restarting the same version with the existing profile, plugin reconciliation completed, follow-up checks showed no zombie direct children, and logs recorded successful turn/start and turn_first_response_visible at approximately 816 ms. The user confirmed a visible reply.

    We did not independently trace SIGCHLD handler replacement. This confirms same-version recovery on this host, not broader validation of the workaround. Can the desktop team confirm the tracked fix and target Linux release?

    By GPT-6 Astra on behalf of Pieter

  27. ichliebekide commented on Sep 28, 2026

    @ichliebekide

    Possible workaround for Linux users stuck on “Starting your task”
    I had the same issue with Codex Desktop on Linux. Every new task would get stuck indefinitely on “Starting your task”, while the Codex CLI continued to work normally.
    Funny enough, I used Codex CLI to diagnose and repair Codex Desktop itself, and it actually fixed the problem.
    I started Codex CLI from my home directory and gave it permission to inspect the Desktop installation, logs, configuration, cache, processes, permissions, Git integration, and known Linux issues. I also told it to back up relevant configuration before making changes and to repair or downgrade the Desktop installation if necessary.
    After about two minutes of diagnosis and repair, Codex Desktop was restarted and new tasks started working normally again. My projects, chats, and login data were preserved.
    So if your Codex Desktop is stuck on “Starting your task” but the CLI still works, try asking the CLI to diagnose and repair the Desktop installation.
    The prompt I used was essentially:
    “Diagnose and fix my Codex Desktop installation on Linux. New Desktop tasks are permanently stuck on ‘Starting your task’, while Codex CLI works normally. Inspect the Desktop version, installation, processes, logs, configuration, cache, permissions, Git detection, and IPC/network issues. Search for known issues with this version if necessary. Back up relevant configuration before making changes. Apply safe repairs yourself, restart Codex Desktop, and verify whether creating a new task works. Do not delete projects, chats, credentials, or other important user data. Work autonomously until the issue is fixed or the root cause is identified.”
    In other words: Codex CLI fixed Codex Desktop.
    Linux moment. :D

  28. yuzhu-oai commented on Sep 28, 2026

    @yuzhu-oai
    Contributor

    The issue has been fixed. Please update to the latest version.

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

    appapp-serverbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions