diegosouzapw/OmniRoute · error · Error

Claude Web retry requires both conversation and parent…

Error message

Claude Web retry requires both conversation and parent message state

What it means

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.

Solutions

  1. Fall back to a fresh completion turn (new conversation) instead of retrying
  2. 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
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at open-sse/executors/claude-web/session.ts:289 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/fc6b8eab4548fba7. Report an issue: GitHub.

Appendix: source

Thrown at open-sse/executors/claude-web/session.ts:289

    timezone: resolveTimezone(extension, input.credentials),
    locale: resolveLocale(extension, input.credentials),
    explicitConversationId:
      extension.conversation_id ?? readLegacyConversationId(input.credentials),
    explicitParentMessageUuid: extension.parent_message_uuid,
    assistantMessageUuid: randomUUID(),
  };
}

function prepareRetryTurn(
  input: PrepareClaudeWebTurnInput,
  context: PrepareTurnContext
): PreparedClaudeWebTurn {
  const retryKey = makeCacheKey(context.accountScope, context.messages);
  const cached = lookupCache(retryKey);
  const conversationId = context.explicitConversationId ?? cached?.conversationId;
  const parentMessageUuid = context.explicitParentMessageUuid ?? cached?.parentMessageUuid;
  if (!conversationId || !parentMessageUuid) {
    throw new Error("Claude Web retry requires both conversation and parent message state");
  }

  const operation: ClaudeWebOperation = "retry_completion";
  const turnFields: ClaudeWebTurnFields = {
    operation,
    prompt: "",
    timezone: context.timezone,
    locale: context.locale,
    parentMessageUuid,
    assistantMessageUuid: context.assistantMessageUuid,
    isNewConversation: false,
    toolStates: context.extension.tool_states,
  };
  const responseMetadata = {
    operation,
    conversation_id: conversationId,
    parent_message_uuid: parentMessageUuid,
    assistant_message_uuid: context.assistantMessageUuid,

View on GitHub (pinned to a179ffed5b)