Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR adds structural request and recovery-choice diagnostics to ChatGPT Responses rejection logs. Example: A cached WebSocket continuation containing one completed tool result receives the known replay rejection.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Partial Merge readiness⛔ Blocked before merge - 2 items remain Keep this PR open: it supplies useful, distinct diagnostics for reported continuation failures, and no introduced correctness defect was found. Priority: P2 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe embedded ChatGPT Responses transport converts conversation history into WebSocket or HTTP requests, processes provider events, and reports failures through the existing transport logging host. flowchart TD
A[Conversation and completed tool results] --> B[ChatGPT Responses transport]
B --> C[Cached WebSocket request]
B --> D[HTTP SSE request]
C --> E[Existing recovery decision]
D --> E
E --> F[Structural diagnostics]
F --> G[Gateway logs]
Technical reviewBest possible solution: Keep structural diagnostics in the existing transport owner and preserve the current recovery and privacy boundaries. Do we have a high-confidence way to reproduce the issue? Source confirms that current-main warnings omit the proposed request-form and recovery-choice facts; the provider rejection itself has affected-release reports but no deterministic current-main reproduction. Is this the best way to solve the issue? Recording the actual dispatched request structure at the existing recovery boundary is appropriate and avoids inferring transport state or changing retry policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6c1414454bd2. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +77, Tests +81, Docs +14, Other -1. Total +171 across 7 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 16, 2026, 10:21 PM ET / October 17, 2026, 02:21 UTC. |
Additional real running-Gateway evidence (baseline only)Read-only inspection of the existing operator Gateway on 2026-10-17 confirmed a real continuation rejection at 07:03:04 UTC. Gateway status reports OpenClaw 2026.10.2; the installed CLI identifies build b8952d4, running on Node 24.19.0 / Linux (WSL2). This is NOT a deployment of this PR head. Sanitized field excerpts from the Gateway file log, retrieved through the supported logs command (nonessential fields omitted): The user-facing error above is paraphrased; the provider rejection and transport fields are extracted from the actual log. Host/account/model identifiers, run/trace/span IDs, local paths and endpoints are omitted. No conversation or tool content is included. What this establishes: the real Gateway encounters the reported rejection and its terminal warning exposes only configured transport=auto, without the proposed request-form/recovery-choice fields. What this does NOT establish: actual WebSocket versus HTTP dispatch, presence of a cached response reference, selection or success of full-input-reconnect, or the behavior of this PR in a running Gateway. Those facts cannot be inferred from this baseline log. The running-Gateway proof request and maintainer decision therefore remain open. Separately, the unchanged PR head 7557f30 was retested today: the two focused replay/streaming files passed 13/13 tests (Vitest duration 5.45 s). These remain in-process transport tests, not Gateway end-to-end evidence. No additional Gateway was started, no live Gateway was modified/restarted, and no deliberate provider failure was triggered for this capture. |
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
|
Closing due to inactivity. |
Related: #167667
Follow-up to #174943; independent diagnostic change, not a recovery fix.
What Problem This Solves
Operators cannot tell whether a rejected ChatGPT continuation used a cached response reference, what structural input it carried, or which existing recovery path was selected.
User Impact
Gateway logs now report the actual local transport, presence (not value) of a previous response reference, structural item counts, and the recovery action selected for rejected WebSocket/HTTP requests. Terminal warnings summarize the last local dispatch. No request bodies, message/tool contents, IDs, credentials, or encrypted payloads are copied into these fields.
This does not change provider requests, classification policy, retry limits, tool execution, configuration, or stored history. It does not fix the provider rejection. No migration or restart is introduced.
Why This Change Was Made
The transport owner already knows the exact cached WebSocket payload and existing recovery decision. The diagnostics consume those facts rather than trying to infer them from the conversation.
full-input-reconnectrecords an attempted recovery choice, not success;propagatedelegates to the existing outer handler. Dispatch means invocation of the local send interface, not proof of provider receipt. SSE errors after HTTP 200 carry the terminal request summary rather than a separate rejection/recovery event.The simplify pass keeps one diagnostic sibling and moves the existing timeout/failure categorization helpers unchanged out of the oversized provider. No new state store, dependencies, knobs, or retry owner. Against main: 121 production lines added / 44 removed; 84 test lines added / 4 removed; 14 documentation lines added.
Includes the same two-line CI-only fixture repair as #174943: explain the native-update fixture's existing database-admission isolation and remove its obsolete ledger fingerprint. This is an exact baseline shrink, not a new allowance or a change to mock behavior.
Evidence