Repository navigation
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 11:40 AM ET / 15:40 UTC. ClawSweeper reviewWhat this changesThis PR moves Gateway request correlation for setup, chat, approvals, health, and other operator calls into a shared pending-request registry with duplicate-response suppression and routing tests. Merge readinessKeep open for maintainer handling. The collaborator-authored PR remains necessary because current main still uses client-local pending maps, but it is conflict-dirty against later gateway authentication and recovery hardening. Likely related people: Barbara Kudiess (high confidence) and Scott Hanselman (high confidence). Priority: P1 Review scores
Verification
How this fits togetherThe Gateway client sends operator requests and turns correlated responses into connection, setup, chat, approval, and state updates. The registry sits between incoming responses and those consumers to decide whether a response completes an active request, is late, or should use generic state routing. flowchart LR
A[Operator request] --> B[Gateway client]
B --> C[Request registry]
D[Gateway response] --> C
C --> E[Complete active request]
C --> F[Suppress late response]
C --> G[Publish generic state]
Decision needed
Why: The conflict touches lifecycle and credential-sensitive code, so automation should not choose which current-main contract survives a manual resolution. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase this focused extraction onto current main, preserve the later handshake and recovery contracts, then publish fresh registry, shared/tray, and real-Gateway routing proof for the resolved head. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect report. The PR supplies a high-confidence exact-head real-Gateway routing run plus deterministic late-response and concurrency coverage. Is this the best way to solve the issue? Unclear pending restack. The ownership transfer is a coherent solution, but its current head cannot establish merge safety until it incorporates later Gateway lifecycle hardening. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9f9a8eda6340. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Stack: 1 of 3 for #980
Summary
Behavior-neutral extraction of gateway request ownership from
OpenClawGatewayClientintoPendingRequestRegistry.OpenClawGatewayClientprivate method, wizard, chat-send, and approval pending stores and locks.PendingRequestRegistry, with one atomic owner per request ID.hello-okbehavior remain unchanged.Default reasoning UI/provider behavior, reasoning reconciliation, and new public
sessions.listbehavior are intentionally out of scope for this lower PR.Validation
Exact head:
79b289e0d7d91e05a6f7da507d3cf25ec9927dfd.\build.ps1: 5/5 projects built.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 3,426 passed, 32 skipped.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 2,037 passed.dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore: 535 passed.dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore: 703 passed.dotnet test .\tests\OpenClaw.WinNode.Cli.Tests\OpenClaw.WinNode.Cli.Tests.csproj --no-restore: 126 passed.dotnet test .\tests\OpenClaw.E2ETests\OpenClaw.E2ETests.csproj --no-build --filter FullyQualifiedName~OpenClaw.E2ETests.Setup.RequestRoutingProofCollectorTests: 3 passed.RealGateway_TrackedRequestRouting_SurvivesReconnect: 1 passed in 4m20s.git diff --check: clean.e2e-test-results-setup-connect): transcriptHEAD=79b289e0d7d91e05a6f7da507d3cf25ec9927dfd, routingRESULT=PASS, cleanupRESULT=PASS.Real behavior proof
The exact-head hosted real-Gateway proof used
E2ESetupFixturewith a unique WSL distro, isolated tray data, unique ports, and ephemeral credentials. It made no model or provider calls.Cleanup proof:
The live Gateway did not naturally replay a duplicate or late response. Deterministic loopback and concurrency coverage proves:
hello-okremains accepted;SessionsUpdated;No UI behavior changed, so screenshots are not applicable.
Review
node.list, and same-method background refreshes were fixed with exact registration pinning and deterministic anti-false-pass tests before the final clean reviews.401 Unauthorized); Claude CLI is not installed. The coordinator accepted this documented environment blocker because both independent reviews are clean.This PR should remain open and unmerged for maintainer review. Later reasoning behavior PRs will stack above this exact branch.