Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Codex native sub-agents still kill the parent turn under ChatGPT sharing (0.1.10 nightly), and T3's orchestration prompt tells Codex to use them #37386

Closedna-zar(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues. Same symptom as #29992, #31852 and #17708 (all closed; #29992 as not reproducible). It still reproduces on 0.1.10 nightly, without a forked history, and T3's own orchestration prompt leads Codex into it.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Codex via Connect with ChatGPT (subscription sharing). The rollouts show model_provider_id: "openai_token_sharing", Codex CLI 0.166.0, gpt-6-astra.
  2. Start a child with delegate_task (provider codex). Give it a task where it wants an isolated reviewer, for example a skill that asks for a separate review agent.
  3. The child calls collaboration.spawn_agent with fork_turns: "none".

Expected behavior

Either native sub-agents work under subscription sharing, or T3 does not offer them. Examples: hide spawn_agent when the provider is openai_token_sharing, or tell Codex to use delegate_task instead. If a spawn is refused, the parent turn should get a tool error it can recover from, not a terminal failure.

Actual behavior

  • The spawned sub-agent session starts, applies its thread settings, receives its NEW_TASK inter-agent message (encrypted payload), and stops. There is no model turn: about 14 events in total.
  • About 2 seconds later the parent turn fails with: "Codex used a feature that ChatGPT sharing does not support. Use another provider for this request."
  • This happened in 4 of 7 delegated Codex runs on 16 November 2026. Each failed run had exactly one spawn_agent call. The 3 runs that never spawned finished normally. Work done before the spawn stayed on disk, but the run was lost late, after 10–15 minutes of work.

Two details that may help:

  1. No fork is needed. #29992 points at forked history (input items). Here fork_turns was "none" and it still failed. So the spawn itself, or the encrypted inter-agent message, seems to be the unsupported feature.
  2. T3's prompt invites the call. T3's orchestration instructions, which are injected into every Codex session, say: "Subagents: use your native tool when the child uses your provider … (… Codex spawn_agent, then wait)". Under subscription sharing, that advice leads straight to the failure. spawn_agent is also available to the model, although #29992's analysis says managed launches set features.multi_agent=false.

Workaround: tell every Codex child "do not start sub-agents", and run those steps as separate delegate_task runs from the parent.

Impact

Major degradation: long delegated runs fail late and must be restarted. Skills that expect isolated sub-agent reviewers can't run as designed on Codex.

Version or commit

T3 Code (Nightly) 0.1.10-nightly.20261115.4736 (desktop, macOS), Codex CLI 0.166.0

Environment

macOS (Apple silicon), local server, Codex via Connect with ChatGPT (subscription sharing), gpt-6-astra, medium effort, delegated child threads (delegate_task), full-access runtime.

Logs or stack traces

Rollouts from 16 Nov 2026: each failed parent has one function_call spawn_agent (namespace collaboration, fork_turns: "none"). The sub-agent rollout (14 lines) ends with thread_settings_applied → inter_agent_communication_metadata {"trigger_turn": true} → agent_message (NEW_TASK) → task_complete. Then the parent gets a terminal failure with the message above. Contents are not attached because they include private project material. I can share specific fields on request.

  1. I tried to reproduce this on the current build and could not.

    Commit 69f8f59b51 (origin/main). The end-to-end failure needs a real Connect with ChatGPT (openai_token_sharing) login, which no worker has, so the sharing rejection and the failed parent turn were not observed. Root-cause check with the real Codex CLI 0.169.0: codex exec --ignore-user-config -m gpt-6-astra with an empty CODEX_HOME and main's exact managed launch args from CodexManagedRuntime.ts (model_provider=openai_token_sharing, features.api_key_model_discovery=true, features.multi_agent=false, features.multi_agent_v2=false). The provider base_url pointed at a loopback mock that served Codex's bundled model catalog (gpt-6-astra has multi_agent_version "v2") and recorded requests. The first /v1/responses request offered collaboration.spawn_agent, wait_agent, send_message, list_agents, followup_task and interrupt_agent. The same run with -c agents.enabled=false added offered none of them. So on main, a Codex session under ChatGPT sharing is still offered native sub-agents, and T3's orchestration instructions tell it to use spawn_agent. Failing test: one assertion that the managed launch args include agents.enabled=false, added to the existing case in apps/server/src/provider/CodexManagedRuntime.test.ts. All 4 parameterised cases fail on that assertion only.

    Closing as not planned. If it still happens for you, reply with the exact steps and the version you are on and it will be looked at again.

  2. juliusmarminge closed this

Sign in to join this conversation.