Skip to content
Source
Sign inSign up
pingdotgg/t3code

Codex threads have no way to stay in Working while they wait on a PR or a background job #38330

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

What happened

A Codex thread that babysits a PR until it merges leaves the sidebar's Working section as soon as the PR's checks pass. It then sits in the inbox, looking finished, while it actually waits days for a teammate's review. A Claude thread in the same spot can call t3_background_wait to hold itself in Working. A Codex thread can't, because nothing in T3 lets a Codex thread mark work as awaited.

Diagnosis

Two changes combine to cause this.

  1. Since #33214 (first released in v0.1.10), a PR watch counts as awaited work only while checks are pending. packages/shared/src/orchestrationV2PendingBackgroundWork.ts:330 reads ...(link.watch.checksPending === false ? {} : { awaited: true as const }). Before that, any unmerged watched PR held the thread. #36230 tracks the review-wait gap this opens, reported from Claude threads.
  2. Awaiting background work is Claude-only. In v0.1.10, awaitBackgroundTasks is implemented in apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts and not in CodexAdapterV2.ts. ThreadManagementService.ts:1582 returns reason: "unsupported" when the runtime lacks it. #30124 asked for this on Codex and was closed as completed on 2026-11-03, but the v0.1.10 Codex adapter still doesn't implement it.

So on Codex, the PR watch was the only way to hold a thread, and #33214 removed it once checks pass. The t3 CLI's thread commands (list, start, send, show) also have no way to hold a thread. A script-driven babysitter has no fallback either.

Main and v0.1.11-nightly.20261117.4838 are unchanged on both points.

Steps to reproduce

  1. Start a Codex thread and have it open a PR in a repo that needs a teammate's approval, then call watch_pull_request while checks are running.
  2. While checks run, the thread stays in Working.
  3. When checks pass, the thread moves to the inbox. The PR is still open and still watched, and the agent is still waiting on review.
  4. Have the Codex agent call t3_background_wait on any background task to hold the thread. The call is refused as unsupported.

Expected: some way for a Codex thread (or a script acting for it) to stay in Working while it waits.

Version

0.1.10 (desktop app "T3 Code (Beta)" and local server both report 0.1.10). The behavior first appeared in v0.1.10. v0.1.8 and v0.1.9 held the thread until merge. The triage CLI was also 0.1.10.

Environment

macOS 26 (Darwin 25.6.0), arm64. Desktop app against a local server on 127.0.0.1. Provider: Codex.

Evidence

- v0.1.10 `orchestrationV2PendingBackgroundWork.ts:330`: `checksPending === false ? {} : { awaited: true }`. At v0.1.8, every unmerged watched PR got `awaited: true`.
- `git grep -l awaitBackgroundTasks v0.1.10 -- 'apps/server/src/orchestration-v2/Adapters/*AdapterV2.ts'` lists only `ClaudeAdapterV2.ts`.
  • #36230 (open): a watched PR waiting on a teammate's review leaves Working since #33214. Same symptom, reported from Claude threads.
  • #33214: the change that limited the PR-watch hold to pending checks.
  • #30124 (closed as completed): asked for a Codex equivalent of t3_background_wait. v0.1.10 still doesn't implement it for Codex.
  • #35214 (closed, not planned): T3 automatically marking obvious waits.

Fix applied or workaround

No configuration fix exists. The current workaround is a Claude child thread that runs a dummy background command and marks it awaited with t3_background_wait, so T3 holds the parent. It costs a model call to start and another every 2 hours to renew.

Either of these would fix it:

  1. Implement awaitBackgroundTasks for Codex, so t3_background_wait works on Codex threads.
  2. Add a provider-independent hold that a script can drive from the t3 CLI: acquire, heartbeat and release, counted as awaited work, released when the process exits or misses heartbeats, and not blocking user messages.

An option on watch_pull_request such as until: "approved" | "merged" (proposed in #36230) would also cover the PR case, as long as it works on every provider.

Filed by

Filed via t3 triage by Claude Code (Claude Opus 5.5).

  1. tanstack-source added labelsbug

  2. This is the same problem as #36230, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

  3. juliusmarminge closed this

Sign in to join this conversation.