Repository navigation
fix(chat): stop composer render feedback loop - #1326
Conversation
Apply immutable composer inputs after Reactor commits instead of mutating the session during Render. Suppress stale and equivalent projections without losing the latest revision watermark. Co-authored-by: Copilot App <[email protected]> Copilot-Session: bc4eceec-bb07-4efb-8a50-887a7c6d1bac
|
🦞👀 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 maintainer review before merge. Reviewed September 4, 2026, 4:08 PM ET / 20:08 UTC. ClawSweeper reviewWhat this changesThe PR moves composer-input application from the chat root’s render path to a dependency-bounded post-commit effect, with session-owned revisions and no-op notification suppression. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open. This collaborator PR is a focused repair for the active chat render-loop report, and the reviewed patch removes the render-time mutation without introducing a source-backed correctness or security defect. Priority: P0 Review scores
Verification
How this fits togetherThe tray chat root projects gateway and conversation state into a composer session. The composer view consumes that projection to render and update chat controls without feeding mutations back into the root render. flowchart LR
Provider[Chat data provider] --> Root[Chat root projection]
Root --> Inputs[Immutable composer inputs]
Inputs --> Effect[Post-commit composer effect]
Effect --> Session[Composer session]
Session --> ViewModel[Composer view model]
ViewModel --> Controls[Native chat controls]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Preserve the root-to-composer ownership split and land this bounded repair once normal checks for the exact head complete. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: the base path applied composer inputs during render and unconditionally notified the subscribing composer. The PR body also reports a current-head native WinUI fixture run, though this read-only review did not execute it. Is this the best way to solve the issue? Yes. Applying the immutable projection after commit while rejecting stale and equivalent updates breaks the feedback edge without returning composer workflow state to the root. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 35cb92dcf28d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Fixes #1325
Summary
ChatComposerInputsapplication out ofOpenClawReactorChatRoot.Render()and into a dependency-bounded post-commit effect inReactorChatComposerChatComposerSession, so view remounts cannot reset orderingOwnership transfer
OpenClawReactorChatRoot.Render()imperatively applied composer inputs during render.ReactorChatComposerapplies root-projected immutable inputs in a post-commit effect;ChatComposerSessionowns revision sequencing;ChatComposerViewModelowns stale/equivalent admission.The existing Release-only
System.Diagnostics.Debugger.IsSupported=falsemitigation for dotnet/runtime#129191 remains unchanged. This repair removes the application feedback loop that amplified that independent runtime retention regression.Required proof pools
windows-winui-interactive: native chat mount, responsiveness, and live composer UIA layoutValidation
./build.ps1dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter "FullyQualifiedName~ChatComposerViewModelTests|FullyQualifiedName~ChatComposerSessionTests|FullyQualifiedName~ChatRootComposerClosureTests"dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --no-restore --filter "FullyQualifiedName~ChatComposerControls_ExposeOnscreenLayoutThroughUia"Real behavior proof
A current-head isolated real WinUI process mounted the native
ChatPagethrough the UI-test fixture. The chat composer became responsive and exposed onscreen, nonzero UIA bounds forChatComposerInput,ChatComposerAttach, andChatComposerSpeakerToggle; the proof completed in 953 ms instead of wedging in the Reactor render loop.The source closure guard also verifies that
OpenClawReactorChatRootcontains noComposerSession.ApplyInputscall and that application occurs only in the composer post-commit effect.Long-duration CPU/heap soak is not included. The deterministic feedback edges are removed and guarded independently, while the production .NET 10 COM-wrapper mitigation remains active.