-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
github-copilot/gpt-5.5 still persists/replays thinkingSignature encrypted_content after #84367/#90682/#92941, causing channel/direct LLM request failed #95441
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Summary
On OpenClaw
2026.6.8 (844f405), channel/direct sessions usinggithub-copilot/gpt-5.5can still fail with400 invalid_encrypted_contenteven though the installed build includes the merged replay fixes #84367, #90682, #92941, and #71448.The affected session JSONL files still persist assistant blocks containing
thinkingSignature,textSignature, and nestedencrypted_content/encryptedContent. Later turns in the same channel/direct session can replay stale encrypted reasoning/signature material and the provider rejects the request before model output.User-visible symptom: channel ingress is healthy, but the turn ends as
LLM request failed/ no deliverable assistant reply.Severity / recurrence risk
This appears to be a high-severity, structurally recurring reliability bug, not a one-off corrupted local transcript. The current runtime can continue to persist provider-private Responses reasoning/signature material in long-lived channel/direct sessions. As those sessions age, the stored encrypted/signature payloads can become unverifiable for the current provider/auth/model/session context and then poison every later replay of the same session.
Why this is likely to recur without a code-level fix:
LLM request failed/ missing replies rather than a recoverable assistant response.thinkingSignature/textSignature/encrypted_contentmaterial, the same class of failure can reappear later.Suggested impact classification: P1 / user-facing reliability, with
impact:message-lossandimpact:session-statestyle consequences. This does not look like a security issue from the available evidence, but it can brick important long-running user/channel sessions until manual repair or a sanitized replay path is applied.Environment
2026.6.8 (844f405)v22.22.2github-copilot/gpt-5.5Evidence that the installed build includes prior fixes
Local installed OpenClaw:
GitHub compare checks showed local commit
844f405is after these merged PRs:fix(agents): provenance-bound Codex reasoning replayfix(openai): preserve opaque reasoning transcript fieldsfix(openai): recover invalid reasoning signaturesfix(github-copilot): preserve reasoning ids with encrypted_contentInstalled dist contains the expected fix-related code paths, including:
isInvalidEncryptedContentErrorstripResponsesRequestEncryptedContentretrying without encrypted reasoning contentinclude: ["reasoning.encrypted_content"]dropReasoningFromHistoryRelevant excerpt from installed dist (sanitized):
Evidence from affected session files
Affected
.jsonlsession files still contain persisted replay-only fields:Observed counts in active session files included non-zero occurrences of those fields after the merged fixes were present. The exact session IDs and channel/user IDs are omitted here because they are private.
The raw provider error pattern is:
One failed assistant turn stored only:
{"type":"text","text":"[assistant turn failed before producing content]"}with
stopReason: "error"and anerrorMessagecontaining theinvalid_encrypted_contentrejection.Expected behavior
OpenClaw should not persist or replay stale provider-private encrypted reasoning/signature material in channel/direct session history, or should always recover by retrying with sanitized history before surfacing
LLM request failed.In particular, channel/direct embedded runtime paths should be covered, not just native/OpenAI Responses paths.
Actual behavior
A later turn in the same channel/direct session fails before model output with a user-visible
LLM request failed, even though the channel provider and gateway ingress are healthy.Manual mitigation by removing stale
thinkingSignature/textSignature/encrypted_contentfields from the local session transcript can restore the session, but new turns may persist new signature/encrypted fields again.Suspected gap
The existing fixes appear to cover some Responses/Codex replay paths, but not all of:
github-copilot/gpt-5.5.jsonlhistory containingthinkingSignature/textSignaturePossible robust fixes:
thinkingSignature/textSignature/encrypted_contentat persistence time for Responses-family provider-private blocks, or mark them private/non-replayable.invalid_encrypted_content, retry with all reasoning/signature blocks removed, not just nestedencrypted_content..jsonlfiles.github-copilot/gpt-5.5channel/direct session replay, not only nativeopenai-chatgpt-responsespaths.Related issues / PRs