[Bug]: Settling a Codex thread fails permanently when its rollout is missing #5680
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/web
Steps to reproduce#
This was generated by AI during triage.
- Open an existing Codex-backed thread in T3 Code (Alpha).
- T3 thread ID:
a273f826-68a2-4e2c-962d-739a771040e1 - Mapped Codex thread ID:
019fdf74-aaa9-7950-b252-7cc7a8650470
- T3 thread ID:
- Click Settle.
- Observe the provider error and repeated Failed to settle thread notifications.
This was captured on one thread. The apparent precondition is that Codex app-server no longer has a rollout for the mapped Codex thread ID. A deterministic way to create that state is not yet known.
Expected behavior#
Settling should complete without requiring a resumable provider rollout.
If T3 must access the provider session and the rollout is missing, it should reconcile or repair the stale thread mapping, or offer an actionable cleanup path. The user should not be left with a thread that permanently needs attention and cannot be settled.
Actual behavior#
Settlement fails before the state transition completes. T3 calls ensureSessionForThread → startSession, and Codex app-server returns no rollout found for thread id 019fdf74-aaa9-7950-b252-7cc7a8650470.
The UI shows a ProviderAdapterProcessError banner and repeated Failed to settle thread notifications. The thread remains unsettled and still needs attention. Retrying produces the same failure.
This is related to, but distinct from, #4589. In #4589 the settle command succeeds and the client fails to apply subscription updates. In this case, provider session startup fails before settlement because the mapped Codex rollout does not exist.
Impact#
Major degradation or frequent failure
Version or commit#
No response
Environment#
- macOS- T3 Code (Alpha) desktop app- Codex provider / Codex app-server- App version not visible in the captured error
Logs or stack traces#
ProviderAdapterProcessError: Provider adapter process error (codex) for thread a273f826-68a2-4e2c-962d-739a771040e1: no rollout found for thread id 019fdf74-aaa9-7950-b252-7cc7a8650470
at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:74942:74
at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/internal/effect.js:1383:96
at ~effect/Utils/internal (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/Utils.js:79:14)
at startSession (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:89403:59)
at ensureSessionForThread (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:89326:40)
at processTurnStartRequested (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:89674:43)
at processDomainEvent (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:89867:46)
Caused by: CodexAppServerRequestError: no rollout found for thread id 019fdf74-aaa9-7950-b252-7cc7a8650470
at CodexAppServerRequestError.fromProtocolError (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:54466:10)
at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:72153:143
Screenshots, recordings, or supporting files#
codex-clipboard-9087901f-6b0e-4753-8495-feafd6cf567e.png
Workaround#
No reliable workaround is confirmed. The UI advises resolving or interrupting the thread first, but the settlement path itself fails because the mapped Codex rollout is missing.
quasa0(GitHub profile, opens in a new tab) added labelsbug
quasa0(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge closed this
Sign in to join this conversation.