Skip to content

Codex cannot start on Android/Termux because the launcher hardcodes /bin/sh #43292

Done

Description

@kinton

What happened

After updating to T3 Code v0.1.12, sending a message in a Codex thread fails with “Provider session failed to open”. Expected: the Codex app-server starts and the turn runs. Actual: the launch fails before Codex starts.

Diagnosis

The non-systemd fallback in agentScopeCommand launches /bin/sh directly. On this Termux host /bin/sh is absent, but sh is available on PATH. The same hardcoded path is present on main.

Steps to reproduce

  1. Run the Linux ARM64 T3 Code server in Android/Termux without systemd.
  2. Open a Codex thread and send a message.
  3. Check the server trace for the underlying spawn error.

Version

T3 Code v0.1.12; Codex CLI 0.166.0

Environment

Android 7.1.1 (arm64), Termux, Linux ARM64 server via glibc compatibility, runit.

Evidence

Error: spawn /bin/sh ENOENT

Related issues

No response

Fix applied or workaround

Changing only the non-systemd launcher from /bin/sh to sh resolved via PATH let a real GPT-6.2 Sol turn complete through T3. Suggested upstream fix: keep /bin/sh where available and otherwise resolve sh from the server PATH, preserving the wrapper arguments and OOM behavior.

Filed by

Drafted with Hermes Agent.

Activity

  1. added
    via-triage
    on Nov 26, 2026
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

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions