{"record":{"id":"fc6b8eab4548fba7","repo":"diegosouzapw/OmniRoute","slug":"claude-web-retry-requires-both-conversation-and-pa","errorCode":null,"errorMessage":"Claude Web retry requires both conversation and parent message state","messagePattern":"Claude Web retry requires both conversation and parent message state","errorType":"validation","errorClass":"Error","httpStatus":400,"severity":"error","filePath":"open-sse/executors/claude-web/session.ts","lineNumber":289,"sourceCode":"    timezone: resolveTimezone(extension, input.credentials),\n    locale: resolveLocale(extension, input.credentials),\n    explicitConversationId:\n      extension.conversation_id ?? readLegacyConversationId(input.credentials),\n    explicitParentMessageUuid: extension.parent_message_uuid,\n    assistantMessageUuid: randomUUID(),\n  };\n}\n\nfunction prepareRetryTurn(\n  input: PrepareClaudeWebTurnInput,\n  context: PrepareTurnContext\n): PreparedClaudeWebTurn {\n  const retryKey = makeCacheKey(context.accountScope, context.messages);\n  const cached = lookupCache(retryKey);\n  const conversationId = context.explicitConversationId ?? cached?.conversationId;\n  const parentMessageUuid = context.explicitParentMessageUuid ?? cached?.parentMessageUuid;\n  if (!conversationId || !parentMessageUuid) {\n    throw new Error(\"Claude Web retry requires both conversation and parent message state\");\n  }\n\n  const operation: ClaudeWebOperation = \"retry_completion\";\n  const turnFields: ClaudeWebTurnFields = {\n    operation,\n    prompt: \"\",\n    timezone: context.timezone,\n    locale: context.locale,\n    parentMessageUuid,\n    assistantMessageUuid: context.assistantMessageUuid,\n    isNewConversation: false,\n    toolStates: context.extension.tool_states,\n  };\n  const responseMetadata = {\n    operation,\n    conversation_id: conversationId,\n    parent_message_uuid: parentMessageUuid,\n    assistant_message_uuid: context.assistantMessageUuid,","sourceCodeStart":271,"sourceCodeEnd":307,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/claude-web/session.ts#L271-L307","documentation":"Precondition in prepareRetryTurn: building a Claude Web retry turn requires both an explicit conversationId and parentMessageUuid state, and at least one (conversation id or cached parent message) is missing. Retries continue an existing conversation, so without both anchors the retry endpoint cannot be addressed.","triggerScenarios":"Thrown at open-sse/executors/claude-web/session.ts:289 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fall back to a fresh completion turn (new conversation) instead of retrying","Ensure the client forwards conversation_id / parent_message_uuid extensions, or that the turn cache still holds the prior conversation state for this account scope"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}