Repository navigation
fix: keep loaded conversations visible while disconnected - #2037
roboclaw-bot wants to merge 17 commits into
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: TheAngryPit <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: TheAngryPit <[email protected]>
Worked on by: - @vyctorbrzezowski - @TheAngryPit Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: TheAngryPit <[email protected]> OpenClaw-Publication: fd1c6563-c9af-4beb-90fb-55b09f08f94a
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Worked on by: - @vyctorbrzezowski - @TheAngryPit Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: TheAngryPit <[email protected]> OpenClaw-Publication: ed9605e2-926e-4e50-acff-8fa8c06a04d8
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs real behavior proof before merge. What this changesThis PR retains loaded native conversations and drafts offline, then verifies connection and session identity before restoring access. Example: Disconnect while reading agent:research:fixture-other with an unsent draft.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain Keep this maintainer-authored draft open: main still discards loaded chat when the operator client retires, and this PR contains a useful, distinct repair. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe native chat provider translates manager-owned Gateway connections and events into conversation snapshots consumed by the Workspace and Reactor composer. flowchart LR
Registry[Gateway registry] --> Lifetime[Chat provider connection]
Manager[Connection manager] --> Lifetime
Lifetime --> Bridge[Retained gateway bridge]
Bridge --> Transport[Gateway WebSocket client]
Bridge --> Provider[Chat data provider]
Provider --> UI[Workspace and native chat]
Technical reviewBest possible solution: Retain presentation in the existing conversation owner while suspending transport access and restoring it only after fresh authority verification. Do we have a high-confidence way to reproduce the issue? Main's SetOperatorClient disposes the loaded provider even when the replacement client is null, directly establishing the reported retirement path without executing target code. Is this the best way to solve the issue? Separating conversation lifetime from manager-owned transport lifetime addresses the cause; the stable bridge, correlated verification and existing conversation state have distinct responsibilities, with no definite smaller complete repair established. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2a2370699158. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: Source inspection found no concrete bypass, but the retained-authority boundary still needs final-effect qualification. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReview history (4 earlier review cycles)
Reviewed November 11, 2026, 6:53 PM ET / 23:53 UTC (Revision 5). |
Worked on by: - @vyctorbrzezowski - @TheAngryPit Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: TheAngryPit <[email protected]> OpenClaw-Publication: 181b4a44-0c51-46f0-818f-7936da5d3e08
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Worked on by: - @vyctorbrzezowski - @TheAngryPit Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: TheAngryPit <[email protected]> OpenClaw-Publication: 77cb6921-d175-4e39-9ad1-56a32b9084cb
|
@clawsweeper re-review |
Worked on by: - @vyctorbrzezowski - @TheAngryPit Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: TheAngryPit <[email protected]> OpenClaw-Publication: f2ab220a-a26e-4d0f-91d1-ec2babb8367e
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
PR cleanup reviewReviewed head: Thanks for preserving the detailed proof gaps. I checked head I recommend keeping this draft with the current owner. The exact-head UI job and CI Gate remain failed, and the four native lifecycle failures need their TRX/exception context before diagnosis. Reconciliation also needs to preserve main’s newer scroll behavior and extend the retained bridge for agent identity, older-history and tool-output/profile APIs; resolving textual conflicts alone would not cover those contracts. The existing authority, native-behavior and compatibility proof requests remain open. This was read-only source triage, not merge clearance, and no duplicate patch work was started. Action in this cleanup pass: leaving this PR open. No branch changes or runtime-proof waiver. The findings above come from source, discussion and recorded-CI review; Windows validation was not rerun in this pass. |
Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @TheAngryPit - @vyctorbrzezowski Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 52c95cad-1496-42bf-aae7-b6b821976ecb
Worked on by: - @TheAngryPit - @vyctorbrzezowski Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 5e0b9154-ebe5-427a-9cea-5dc850fd1d32
Worked on by: - @TheAngryPit - @vyctorbrzezowski Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 0ad441e2-1890-42ed-a62c-85b8741d39e9
Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @TheAngryPit - @vyctorbrzezowski Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: bd34b708-e148-44e1-889f-a47076849ae8
Worked on by: - @TheAngryPit - @vyctorbrzezowski Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 77e64878-ee15-4352-be36-6d227fdea626
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Worked on by: - @TheAngryPit - @vyctorbrzezowski Co-authored-by: TheAngryPit <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: b5729751-1e17-460f-88f1-133ce2728ee9
|
Note 🤖 Codex responding on behalf of TheAngryPit Here are the current-head observations inline, so inspecting these results does not require following the artifact download redirect. This is partial qualification; the remaining boundaries below are still open. Head
The final-socket receipts, verbatim: I inspected the original before/offline/recovered PNGs from this run and checked their SHA-256 values against capture receipts. The original-resolution captures and native run metadata are in the Gateway fixture artifact; the socket observations above come from the Tray TRX artifact. An additional released-profile compatibility run passed on 12 November: Not established: live manager/provider revocation propagation or installer/Store replacement. The socket cases use the production WebSocket client against a synthetic loopback Gateway; manager-auth invalidation is supplied at the production observation boundary. The native app captures also use a synthetic Gateway and test data. The added upgrade run proves portable-profile persistence compatibility, not native/WSL Gateway runtime migration. Full CI on this head is red on the separate UsagePinned lookup and UsageHero preview cases; the passing cases above do not make the complete run green. No rerun was requested to work around artifact access. |
|
This pull request has been automatically marked as stale due to inactivity. |
Supersedes #1950 (fix: keep loaded conversations visible while disconnected).
What Problem This Solves
Fixes: retiring the operator connection removes an already-loaded native conversation and draft instead of keeping them readable while disconnected.
User Impact
User impact: the loaded transcript, selected conversation and draft remain mounted read-only while offline. Sending resumes only after fresh connection, profile and immutable session authority is verified. This is still a draft: current mock-Gateway CI is failed, full live-provider/race qualification and latest-stable signed installed-upgrade proof remain open.
Why This Change Was Made
Conversation presentation and transport authority have different lifetimes. The existing provider retains confirmed presentation, suspends retired routes and verifies authority before reuse. A retained selected row is not a general roster or permission to create/send. The latest continuation applies only the developer-qualified comment cleanup; executable code, assertions, fixture ordering and timeouts are unchanged.
Evidence
386c99dd370c2cf9891aafa30707a9f0553cf277, tree0ba04afab83046836e30edde814523e583865d7c. Its sole parent is packet base235e916b3af1140b7745d05965563bd081512668. The exact corrected LOCAL named NoComments patch was applied once:21 paths,+4/-116 lines, with mixed-code lines preserved. Patch SHA-256:591c2e29121cf83252314281b8f623272e2c16fc1e561a951d3cb36fa2c3e80c.WaitForQueuedActionAsyncremain. Fresh139 bounded source-compatible checks passed,0failed/0skipped, including1syntax check of46 C# files. Whole-candidate P0-P3 source/proof-plan Autoreview completed3/3chunks, scoped-clean,0findings (OpenClaw engine, effective modelopenai/gpt-6.1-sol). TestAudit completed. These are not full/native execution.Run mock Gateway application scenarios; the CI Gate failed downstream. Release correlation, Release reader and latest-stable portable-profile steps subsequently passed. The visible portable-profile total is1passed/0failed/0skipped. No new-head full fixture total is fabricated.UsageHero_RealShellCapturesCardAndRangeInLightAndDark(run248bb3d582674c539a15019bd9060ff9) andUsagePinned_ToggleOwnsHitPointAndTabOrderWithVisibleOperationFeedback(runs87e6e4fb96024588a55b85fec48933deand94d3d0b3a6a24d71a485f82d93daea05). That identifies failed-case groups, not their assertion or cause. The public annotation contains only exit code1; the bounded log omits the failed-step detail. Full-log API access returned403 with quota available, and current TRX/artifact13930240622 returned401. No baseline/flake assertion, retry or speculative source fix was made.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive:Partial. Developer-provided native synthetic retention/retry receipts are detailed below. Current ordinary UI passed, but the current mock-Gateway group failed; independent original image/TRX inspection and remaining acceptance are open.windows-wsl-gateway-e2e:Partial. Current setup/network/revocation WSL lanes passed. The two controlled surviving-WebSocket cases below do not establish full live-provider/manager revocation or all races.windows-clean-installer-upgrade:Open. Exact official signed fresh installation and upgrade from latest stable with stored data preserved still require an admitted target/artifacts. The old stored-profile fixture and portable-profile1/1 do not satisfy this pool.Validation
0ba04afab83046836e30edde814523e583865d7c; local commit57070f1a827ad7984229324e67f2da5c5c0e8f6c. Comparison main2a23706991584d5bcb813f40deda4cd2883667bc. Observed current CI merge ref9fccfcb6b149dba5a28774ab38547ed5975b1898; normal workflow selects the PR merge checkout.dotnet run --project comment-audit/TokenAudit.csproj --no-restore:80 C# token/directive comparisons passed; single-comment PowerShell equivalence passed.dotnet restore Focused.csproj --configfile NuGet.Configanddotnet test Focused.csproj --no-restore --logger 'trx;LogFileName=nov12-comment-cleanup.trx' --results-directory ./results-nov12-comment:139 passed/0failed/0skipped. SDK9.0.100/net9.0 Linux source-compatible harness linking actual owners:117timeline,4projection,11roster,6ledger,1syntax check parsing46 files. Not139new tests or full Windows acceptance../build.ps1, fulldotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restoreand fulldotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restorewere not executed locally on this Linux host. Canonical Windows/.NET10 Core and Tray project gates passed separately; no exact missing TRX totals are invented. No global install, GUI run, extra host lease or large native-copy Linux campaign was performed.git diff --checkpassed. Strict4px reader, immutable identity, fresh-history, draft, ordinary-send and security assertions are unchanged. No workflow delta, skipped selected proof, longer timeout or assertion weakening was added.Real Behavior Proof
Developer-provided CI extracts, with explicit provenance
Vitor supplied LOCAL inspection/extraction manifests from head235e916b, run43118807517, tested merge
ff7e0f45a76434a7d70de2adc987f7746ae773e9, tree5aab353f6375a5cd34469fd832a5a006161dae88. Public metadata/source bindings and the supplied manifest contents were inspected here. The complete original PNG/TRX payloads were not independently downloaded:both native artifact13900942982 and Tray artifact13900766074 returned401. This disclosure does not discard the supplied receipts or pretend that manifest inspection was pixel inspection.The386 continuation changes comments only; token/directive equivalence carries these unchanged controlled contracts forward, not the old binary hash or a new execution. Source-bound native binary from the manifest:X64/.NET10, app SHA-256
cfbcaae3ad337457551f4aa04468b40bcbd50d5cf5b90d4c3503a57dd21e3f86; assembly8f3881e01aacfd1b1c0cb34c1be72962daf009f12cc196dc1dbf07f47f011b2f. Display is Light/English; scale is not recorded.Native synthetic disconnect/retry
The supplied per-case receipts report:
ExplicitDisconnectRetainsLoadedTranscriptDraftAndScrollAcrossRecovery:Passed,7.3344959s.ConnectedVerificationTimeoutHasExplicitRetryWithoutDiscardingTheLoadedDraft:Passed,29.0037138s.chat.sendis ok in the supplied receiving ledger/test receipt. The sent screenshot precedes UI settle and alone does not prove a completed rendered send.Capture SHA-256:before/recovered
b812e295d7e912b064c49b47ddc0b62ec93191ecc352884a28e178bcf7a700fd; offlinef499e0c3dde874c6b87bb23b45f51c31a3af0d022d3b5e1e8f14c691010b2769; sentda5433a33ac1ac993b3b8adf37f1ef548b8fdf92e51ea6ec429d1de09b73fdf7. These are indexed original images, not new attachments or independently viewed pixels here.Surviving production-WebSocket authority boundary
The supplied original Tray TRX hash is
78609dda7f6272c8968a5f454ae04514db9da6c2d285cfb146c17511b9815ebd. BothRetiredProfileCannotWriteQueuedChatToTheSurvivingSocketrows passed:revoked:false548.9562ms;revoked:true576.7930ms. Their recorded ordering is:TaskCanceledExceptionbefore lock release.chat.sendwithOutcome:okat request ordinal23, then the final health barrier at ordinal24. Handshake remains1.Copied summary fields from the developer-provided CI extract:
These are controlled receiving-server outcomes with a positive current-write control and health ordering, not a zero inferred from silence. Ordinals are receipt positions, not opaque RPC request IDs. Wire profile change uses the real fixture socket; manager auth is injected at the production owner observation boundary, not live server credential revocation or a complete manager-to-provider journey.
Remaining qualification
Current386 mock-Gateway failure still needs its actual TRX ErrorInfo/message/stack and output for the three named fixture run IDs above. No failure cause is inferred from names or comment-only equivalence. Full live-provider and broader race qualification, independent original native image/per-case inspection, and latest-stable signed installed fresh-install/upgrade with stored-data preservation remain open. The older v2026.9.8-1 stored-profile fixture and latest portable-profile1/1 are narrower than installed upgrade.
Security Impact
Compatibility and Migration
OPENCLAW_CHAT_RECOVERY_TIMEOUT_MSdefaults12000; no newly required end-user configuration. The cleanup adds none.Review Conversations
🦞 Made with OpenClaw
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.