[Bug]: Unable to continue the thread - Provider adapter process error (codex) #3742
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/desktop
Steps to reproduce#
- start the app
- start the thread in project with codex
- 2-x message will produce this error and even on restart its not possible to continue so you loose the whole thread, i added pictures this time but it happends sometimes also without them
- can be that 2-x message was after 10 or more minutes
Expected behavior#
Should just normally resume and accept the message
Actual behavior#
just this error message: ProviderAdapterProcessError: Provider adapter process error (codex) for thread 64b6d081-e1e7-4683-935a-b60023dcb538: Invalid thread/resume payload: Expected { readonly "type": "userMessage", ... } | { readonly "type": "hookPrompt", ... } | { readonly "type": "agentMessage", ... } | { readonly "type": "plan", ... } | {
Impact#
Blocks work completely
Version or commit#
0.0.27 (a3422a9bb51d)
Environment#
macOS 15.7.3
Logs or stack traces#
ProviderAdapterProcessError: Provider adapter process error (codex) for thread 64b6d081-e1e7-4683-935a-b60023dcb538: Invalid thread/resume payload: Expected { readonly "type": "userMessage", ... } | { readonly "type": "hookPrompt", ... } | { readonly "type": "agentMessage", ... } | { readonly "type": "plan", ... } | { readonly "type": "reasoning", ... } | { readonly "type": "commandExecution", ... } | { readonly "type": "fileChange", ... } | { readonly "type": "mcpToolCall", ... } | { readonly "type": "dynamicToolCall", ... } | { readonly "type": "collabAgentToolCall", ... } | { readonly "type": "webSearch", ... } | { readonly "type": "imageView", ... } | { readonly "type": "imageGeneration", ... } | { readonly "type": "enteredReviewMode", ... } | { readonly "type": "exitedReviewMode", ... } | { readonly "type": "contextCompaction", ... }, got {"type":"subAgentActivity","id":"xxx","kind":"started","agentThreadId":"019f3716-6175-73a1-82b8-84ca4514692b","agentPath":"/root/verify_qa_g_xx"} at ["thread"]["turns"][0]["items"][60] at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:53492:74 at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/internal/effect.js:1310:96 at ~effect/Utils/internal (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/Utils.js:79:12) at startSession (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:67696:59) at startSession (definition) (Alpha) at ensureSessionForThread (Alpha) at ensureSessionForThread (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:67633:40) at processTurnStartRequested (Alpha) at processTurnStartRequested (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:67862:43) at processDomainEvent (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:68051:46) at processDomainEvent (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:68019:36) { [cause]: CodexAppServerRequestError: Invalid thread/resume payload: Expected { readonly "type": "userMessage", ... } | { readonly "type": "hookPrompt", ... } | { readonly "type": "agentMessage", ... } | { readonly "type": "plan", ... } | { readonly "type": "reasoning", ... } | { readonly "type": "commandExecution", ... } | { readonly "type": "fileChange", ... } | { readonly "type": "mcpToolCall", ... } | { readonly "type": "dynamicToolCall", ... } | { readonly "type": "collabAgentToolCall", ... } | { readonly "type": "webSearch", ... } | { readonly "type": "imageView", ... } | { readonly "type": "imageGeneration", ... } | { readonly "type": "enteredReviewMode", ... } | { readonly "type": "exitedReviewMode", ... } | { readonly "type": "contextCompaction", ... }, got {"type":"subAgentActivity","id":"xxx","kind":"started","agentThreadId":"xxx","agentPath":"/root/verify_qa_g_xx"} at ["thread"]["turns"][0]["items"][60] at CodexAppServerRequestError.invalidParams (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:36139:10) at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:51184:108 at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/internal/effect.js:1310:96 at ~effect/Utils/internal (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/Utils.js:79:12) }
Screenshots, recordings, or supporting files#
Screenshot 2026-07-06 at 15.52.22.png Screenshot 2026-07-06 at 15.52.31.png
Workaround#
copy the message and use the codex cli to continue works, so context is not completely lost
magicsk(GitHub profile, opens in a new tab) added labelsbug
magicsk(GitHub profile, opens in a new tab) added labelsneeds-triage
I hit the same broader failure class: a Codex resume error can leave a T3 Code thread unusable. My exact error was
ProviderAdapterProcessError ... no rollout found for thread id ...rather than the invalid resume payload here. The runtime already treats several stale-session responses (missing/unknown thread) as recoverable; addingno rollout foundto that set lets it fall back to a fresh session instead of bricking the thread. I added a focused regression test locally. This is a different upstream validation error, but the recovery behavior should be the same.Closing as fixed by merged PR #3036, which regenerated the Codex schema so
thread/resumeacceptssubAgentActivity. Any separate missing-worktree or rollout symptom should be tracked independently.juliusmarminge removed labelsneeds-triage
juliusmarminge closed this
Sign in to join this conversation.
Turned out for me that this was caused by me having the agent remove the worktree the chat was based on. Creating new chats has a bug also that if you create it from a broken chat it doesn't show the options for branch/worktree selection, and tries the new chat on the same missing worktree.
Clicking another chat (that didn't have the worktree icon) then clicking new chat again worked for me, weird.