Repository navigation
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 11:16 PM ET / August 9, 2026, 03:16 UTC. ClawSweeper reviewWhat this changesThis PR adds a UI-free reconciler for clearing a session’s reasoning-level override, plus state-machine and architecture-boundary tests. Merge readinessKeep open. This collaborator-authored draft is a bounded, tested stack layer that current main and the latest release do not contain; it needs maintainer sequencing with its dependency and downstream integration PR. Priority: P2 Review scores
Verification
How this fits togetherThe chat provider receives user intent and gateway session snapshots. This new chat-layer component is intended to decide when a clear is confirmed or needs a refresh, while a later provider layer performs gateway calls and updates UI-facing session state. flowchart LR
A[User selects reasoning default] --> B[Chat provider]
B --> C[Clear reconciliation]
C --> D[Gateway patch request]
C --> E[Correlated session refresh]
D --> E
E --> F[Canonical chat session state]
Decision needed
Why: The source supports the bounded extraction, but choosing stack order and accepting a non-user-visible intermediate layer requires maintainer ownership of the chat architecture. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused ownership seam only in stack order, then restack the provider/UI integration and validate the complete clear-to-canonical-snapshot path on its final main-based head. Do we have a high-confidence way to reproduce the issue? Not applicable. This PR is a behavior-neutral extraction, and its state transitions are directly exercised by focused deterministic tests rather than a standalone user workflow. Is this the best way to solve the issue? Yes. Separating the UI-free lifecycle state from the provider is a maintainable seam, provided the later provider delegation remains the only production integration path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4712e227d110. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
Co-authored-by: Copilot App <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Stack: 2 of 3 for #980
Depends on #1090.
Summary
Behavior-neutral extraction of the frozen #1077 thinking-level clear reconciliation state machine into the UI-free
OpenClaw.Chatlayer.ThinkingLevelClearReconcileras the focused owner of per-thread operation versions, connection generations, protected canonical intent, patch acknowledgement, committed-but-unconfirmed state, correlated snapshot acceptance, bounded retries, concrete supersession, interruption, and disposal.OpenClawChatDataProviderresponsible for invoking patch and snapshot requests, storing canonical session snapshots, surfacing errors and notifications, and managing thread UI state.Ownership boundary
OpenClawChatDataProviderin Add Default reasoning reset to chat #1077.ThinkingLevelClearReconcileris authoritative for the UI-free reconciliation seam and its state transitions.OpenClawChatDataProvideror claim its responsibility is closed. Provider delegation and the closure guard are planned for Layer 3.Validation
6480e8702f9bebe94cffbc2423bc3e60a3092b55:git diff --check: passed.\build.ps1: passed602183ae6be206f981b532b56736bd71b5981c2a:Real behavior proof
Current head
6480e8702f9bebe94cffbc2423bc3e60a3092b55leaves the reconciler implementation from602183ae6be206f981b532b56736bd71b5981c2aunchanged. Its focused deterministic tests cover pre-ACK nulls, committed-but-unconfirmed completion, correlated snapshot rejection, bounded retry restart, concrete supersession, disconnect, reconnect, client swap, disposal, and concurrent races. They also prove a late or duplicate rejection cannot reverse an acknowledged clear or invalidate its active refresh.This is a behavior-neutral, UI-free extraction. No UI or screenshot proof is required.
Dependent integration proof
c4f48b62c7f3729ade8293c77f9a50f3911ecadd.79b289e0d7d91e05a6f7da507d3cf25ec9927dfdis an ancestor of this Layer 2 head6480e8702f9bebe94cffbc2423bc3e60a3092b55.602183ae6be206f981b532b56736bd71b5981c2a, not this repaired head. It must be restacked onto6480e8702f9bebe94cffbc2423bc3e60a3092b55.chat-provider-thinking-level-clear-closurefromplannedtoclosedand add the production provider-delegation source guard. Its current implementation consumes bothPendingRequestRegistryandThinkingLevelClearReconcilerthroughOpenClawChatDataProviderin the complete Default/Off UI and session-patch flow.off, reads canonical"off"throughsessions.list, sendsSessionPatch.Clear, reads canonicalnull, reconnects the isolated Tray, observes current-generationnullthroughapp.chat.snapshot, and restores original state infinally.pull_requestCI cannot trigger for Extract thinking-level reconciliation #1094 or Add Default reasoning reset to chat #1077 while their bases are feature branches because the workflow accepts onlymainandmaster. Add Default reasoning reset to chat #1077's body documents the hosted isolated test path, but its exact-head hosted execution is still pending. No green CI claim is made.Review
14ab131e9a2b56822fe360aff0423d9d25566485at 3/6 and found one P2 ordering race:RejectPatchcould reverse an already acknowledged clear.602183ae6be206f981b532b56736bd71b5981c2a.6480e8702f9bebe94cffbc2423bc3e60a3092b55: Claude Opus zero actionable findings at 90% confidence; GPT Codex zero findings at 94% confidence.Upstream status
602183ae6be206f981b532b56736bd71b5981c2ais addressed at6480e8702f9bebe94cffbc2423bc3e60a3092b55and awaits re-reviewmainandmaster602183ae6be206f981b532b56736bd71b5981c2a(run 30983518842)