Skip to content

fix: keep loaded conversations visible while disconnected - #2037

Draft
roboclaw-bot wants to merge 17 commits into
mainfrom
openclaw/fresh-retention1950-mainbase-20261106
Draft

roboclaw-bot wants to merge 17 commits into
mainfrom
openclaw/fresh-retention1950-mainbase-20261106

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Current source: public head 386c99dd370c2cf9891aafa30707a9f0553cf277, tree 0ba04afab83046836e30edde814523e583865d7c. Its sole parent is packet base 235e916b3af1140b7745d05965563bd081512668. The exact corrected LOCAL named NoComments patch was applied once:21 paths,+4/-116 lines, with mixed-code lines preserved. Patch SHA-256:591c2e29121cf83252314281b8f623272e2c16fc1e561a951d3cb36fa2c3e80c.
  • **Fresh authoring qualification:**20 C# files passed executable-token and preprocessor-directive comparison under4 symbol configurations (80 comparisons); the PowerShell file differs only by one standalone comment. Required module headers/API docs and WaitForQueuedActionAsync remain. 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 model openai/gpt-6.1-sol). TestAudit completed. These are not full/native execution.
  • Current CI is failed:run43183776478 attempt1. Core/CLI, Tray/setup/integration, native UI/accessibility, all three WSL lanes and packaging passed. The mock-Gateway job failed specifically at 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.
  • **Failure attribution remains open:**the unchanged screenshot publisher only previews failed fixture runs. Its artifact metadata identifies UsageHero_RealShellCapturesCardAndRangeInLightAndDark (run 248bb3d582674c539a15019bd9060ff9) and UsagePinned_ToggleOwnsHitPointAndTabOrderWithVisibleOperationFeedback (runs 87e6e4fb96024588a55b85fec48933de and 94d3d0b3a6a24d71a485f82d93daea05). 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.
  • Developer-provided predecessor proof is qualified below, with exact old head/run/binary provenance. It is not represented as new386 execution. The last hosted ClawSweeper review reviewed235e:Findings None, readiness1/6, four before-merge proof/security/compatibility items. It is not a review of386. No fresh rating request was posted against known red CI.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required 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

  • Current public source exactly matches local reviewed/tested tree 0ba04afab83046836e30edde814523e583865d7c; local commit 57070f1a827ad7984229324e67f2da5c5c0e8f6c. Comparison main 2a23706991584d5bcb813f40deda4cd2883667bc. Observed current CI merge ref 9fccfcb6b149dba5a28774ab38547ed5975b1898; 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.Config and dotnet 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.
  • Required exact local ./build.ps1, full dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore and full dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore were 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 --check passed. 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.
  • Historical run43118807517 succeeded for235e. That success does not erase the failed386 run.

Real Behavior Proof

Developer-provided CI extracts, with explicit provenance

Vitor supplied LOCAL inspection/extraction manifests from head235e916b, run43118807517, tested merge ff7e0f45a76434a7d70de2adc987f7746ae773e9, tree 5aab353f6375a5cd34469fd832a5a006161dae88. 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; assembly 8f3881e01aacfd1b1c0cb34c1be72962daf009f12cc196dc1dbf07f47f011b2f. 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.
  • LOCAL inspected before/offline/recovered captures:loaded transcript and draft retained, Send disabled offline and restored after verification. Reader TopOffset 390→390 (0px drift); fresh history replies 1→2, rendered revisions 1→2. The test retains selected-session and mounted-input identity assertions and the original4px bound.
  • Completed ordinary chat.send is 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; offline f499e0c3dde874c6b87bb23b45f51c31a3af0d022d3b5e1e8f14c691010b2769; sent da5433a33ac1ac993b3b8adf37f1ef548b8fdf92e51ea6ec429d1de09b73fdf7. 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. Both RetiredProfileCannotWriteQueuedChatToTheSurvivingSocket rows passed:revoked:false548.9562ms; revoked:true576.7930ms. Their recorded ordering is:

  1. Old send queued while the actual production send lock is held; socket connected, handshake1, binding active, received chat sends0.
  2. Wire-profile identity change or typed manager-auth observation retires the provider/binding before releasing that lock.
  3. Old send task settles as TaskCanceledException before lock release.
  4. Release the serialized send lock, then acknowledge a health response on the same socket:received stale chat sends remain0.
  5. Fresh profile/roster verification admits current authority. The receiver records exactly one current chat.send with Outcome:ok at request ordinal23, then the final health barrier at ordinal24. Handshake remains1.

Copied summary fields from the developer-provided CI extract:

final-effect invalidation=wire-profile-identity; stale-chat-writes=0; current-chat-writes=1; unchanged-socket-handshake=1
final-effect invalidation=manager-auth-observation; stale-chat-writes=0; current-chat-writes=1; unchanged-socket-handshake=1

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

  • New permissions/capabilities? No.
  • Secrets/token format or storage? No new format/storage; the original retention work changes authorization lifetime and cancellation handling. The latest continuation is comments only.
  • New/changed network calls? **Yes in the original repair:**correlated profile/session reads and retired-response/cancellation fences on the existing authenticated client; no new calls in this continuation.
  • New command/tool surface? No.
  • Data lifetime? Already-loaded data remains readable offline; cross-identity reuse and offline writes remain prohibited.
  • The two controlled final-effect cases above qualify their specific synthetic production-client boundaries. Full live-provider/manager revocation and comprehensive race acceptance remain open; no broad security clearance is claimed.

Compatibility and Migration

  • Backward compatible? Intended for supported wire/storage formats; latest-stable installed-upgrade acceptance is unverified. Legacy arrays/maps are retained without fabricating immutable session IDs.
  • Config/environment? Optional OPENCLAW_CHAT_RECOVERY_TIMEOUT_MS defaults12000; no newly required end-user configuration. The cleanup adds none.
  • Migration? None implemented. Format/source analysis is not upgrade proof.
  • Required remaining qualification:official signed fresh install and installed upgrade from latest stable, preserving settings/registry/signing identity and stored conversation access. Old v2026.9.8-1 fixture and released-portable profile tests do not waive it.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

🦞 Made with OpenClaw

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 3 commits November 6, 2026 07:10
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
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

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
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

This 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.

  • Before: The provider is disposed and the loaded conversation disappears.
  • After: The conversation and draft remain mounted with sending disabled until verification succeeds.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful source repair with green current-head CI and no definite introduced bug; behavior and upgrade qualification remain incomplete.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Disconnecting removes an already-loaded native conversation and unsent draft.
Reason: The maintainer-authored direction preserves useful reader state while keeping offline mutations blocked; the optional OPENCLAW_CHAT_RECOVERY_TIMEOUT_MS variable makes requiresNewConfigOption true.

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
Reviewed head: 235e916b3af1140b7745d05965563bd081512668

Before merge

  • Add real behavior proof - Authority-chain proof required: qualify an authorized send and zero stale queued sends after profile reassignment and manager-auth revocation through this head's production WebSocket client. The source contains targeted real-socket cases, and current-head CI is green, but redirected logs/artifacts are blocked here; that access failure is not a contributor defect or a request to rerun CI. The inspected screenshots do not establish current offline retention, draft/reader continuity, fresh-history consumption or retry recovery. The body independently leaves these gates open; make existing receipts inspectable, with credentials and non-public endpoints redacted. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - Source inspection found no concrete bypass, but the retained-authority boundary still needs final-effect qualification.
  • Resolve merge risk - Before merge, the PR owner must establish that retained authority cannot admit queued chat writes after profile reassignment or manager-auth revocation at the final socket boundary.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Inspectable current-head authority traces, native disconnect/reload/retry captures and latest-stable upgrade receipts remain unqualified; green CI metadata alone does not show those results or a base-fail/head-pass comparison.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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 options

Maintainer options:

  1. Qualify the retained-authority boundary (recommended)
    The PR owner should make current-head allowed-send and revoked/reassigned-authority request traces inspectable, starting with receipts from the completed CI run.

Provenance checked

  • Provider recreation on operator-client replacement changes intended behavior with a stated reason (08cab69: The original native chat implementation bound its provider to the current Gateway client; its PR describes live history/event integration without an offline-retention contract.)
  • Conversation-state ownership keeps the original intent (f8a8825: The runtime-state refactor placed atomic timeline and queue state in ChatConversationState; this patch adds retention checks there and introduces no parallel transcript cache.)
  • Native anchoring and queued navigation changes intended behavior with a stated reason (ca8fb4a: Stable native anchoring and generation-validated discrete navigation prevented stale tail requests; the patch explains mode-dependent anchoring to preserve readers during disconnect layout changes.)
  • Serialized transport generation checks keeps the original intent (a51029e: The transport checked captured socket ownership immediately before credential-bearing writes; caller cancellation now joins that existing admission boundary.)
  • Legacy roster parsing and selection continuity keeps the original intent (ffc54d6: Selection continuity preserved supported legacy collections and distinguished transient cache loss from authoritative removal; the new shared filter retains those forms while validating detached verification replies.)
  • Setup-bound warning and recovery admission keeps the original intent (4895ed5: Setup recovery preserves draft and host state only after receipt authority checks; the patch retains those checks and adds exact-client binding confirmation.)

Testing

Proof path: in-process harness.

Security

Needs attention: Source inspection found no concrete bypass, but the retained-authority boundary still needs final-effect qualification.

Evidence

What I checked:

  • Central defect remains on main: SetOperatorClient clears and disposes the existing provider before returning for a null client; retirement therefore still destroys loaded chat presentation. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatCoordinator.cs:156, 2a2370699158)
  • Retention and verification owner: The new lifetime owner suspends the existing bridge, verifies users.self and a correlated sessions.list response, and rejects reuse across changed registry, signing-device, profile or immutable session identity. (src/OpenClaw.Tray.WinUI/Chat/ChatProviderConnection.cs:218, 235e916b3af1)
  • Final transport boundary: Binding cancellation flows through the real client into serialized WebSocket writes; the added cancellation check runs after acquiring the send lock. (src/OpenClaw.Shared/WebSocketClientBase.cs:903, 235e916b3af1)
  • Current-head CI is green: Run 43118807517 completed successfully for the reviewed head, including Core, Tray, native UI, mock-Gateway compatibility and CI Gate; the PR body's pending-CI statement is outdated. (235e916b3af1)
  • Proof inspected and access limitation: All four prepared screenshots were inspected: they show setup warnings, a connected transcript with a draft, and historical Settings. Current CI logs and artifact downloads redirect to productionresultssa1.blob.core.windows.net, which this environment blocks; their runtime receipts could not be inspected. (235e916b3af1)
  • Upgrade evidence has a narrower boundary: The stored-profile fixture comes from v2026.9.8-1 and checks signing identity, token precedence and unchanged stored bytes; its documentation explicitly excludes installed-upgrade proof, and the supplied latest release is v2026.11.1. (tests/OpenClaw.Tray.Tests/Fixtures/Stable2026_9_8_1/README.md:5, 235e916b3af1)

Likely related people:

  • Barbara Kudiess: Raw commit f8a8825 adds src/OpenClaw.Tray.WinUI/Chat/ChatConversationState.cs:87 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f8a8825ccbb4; files: src/OpenClaw.Tray.WinUI/Chat/ChatConversationState.cs)
  • Régis Brid: Raw commit 08cab69 adds src/OpenClaw.Tray.WinUI/Chat/OpenClawChatCoordinator.cs:84 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 08cab69a038c; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatCoordinator.cs)

Preflight source

Source 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

Metric Value Why it matters
Introduced source and validation growth src +1253/-144; tests +2444/-22; scripts +40/-0 Most growth supports distinct lifetime, transport, authority, native positioning and compatibility boundaries; the retained bridge replaces per-client provider recreation without adding a transcript store.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs conversation and draft continuity during disconnects with a limited chat-surface blast radius.
  • merge-risk: 🚨 compatibility: Fresh chat readiness now depends on profile and roster verification, including explicit older-Gateway fallback behavior.
  • merge-risk: 🚨 security-boundary: Conversation state survives transport retirement, making identity changes and cancellation before queued network effects security-relevant.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Expose current-head allowed-send and revoked/reassigned-authority final-effect traces from the production transport.
  • Expose native disconnect, reload and retry captures showing retained draft, selected conversation, fresh history and reader offset within four pixels.
  • Qualify fresh installation and upgrade from v2026.11.1 with settings, registry records and signing identities preserved.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (4 earlier review cycles)
  • reviewed 2026-11-06T07:18:56.620Z sha 898c227 :: needs real behavior proof before merge. :: [P1] Preserve supported legacy session maps in the verification path
  • reviewed 2026-11-06T07:58:37.871Z sha d990a20 :: needs real behavior proof before merge. :: [P2] Exercise a supported reconnect boundary instead of the missing method | [P2] Use the predicate overload of Assert.Single
  • reviewed 2026-11-06T08:13:52.258Z sha 05bf700 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-06T08:27:46.348Z sha a962cbc :: needs real behavior proof before merge. :: none

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
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
Worked on by:
- @vyctorbrzezowski
- @TheAngryPit

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: TheAngryPit <[email protected]>
OpenClaw-Publication: 77cb6921-d175-4e39-9ad1-56a32b9084cb
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
Worked on by:
- @vyctorbrzezowski
- @TheAngryPit

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: TheAngryPit <[email protected]>
OpenClaw-Publication: f2ab220a-a26e-4d0f-91d1-ec2babb8367e
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 6, 2026
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

PR cleanup review

Reviewed head: a962cbcb334cd1dbef132857c9a017ccfd4e1ac0. Main comparison: e59374c064f43d68f5c72d070d4c89ef2d20ec3b.

Thanks for preserving the detailed proof gaps. I checked head a962cbcb334cd1dbef132857c9a017ccfd4e1ac0 against main e59374c064f43d68f5c72d070d4c89ef2d20ec3b. This is not superseded: main still disposes the chat provider when the operator client is retired.

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.

roboclaw-bot and others added 9 commits November 10, 2026 20:14
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
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

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
@TheAngryPit

TheAngryPit commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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 386c99dd370c2cf9891aafa30707a9f0553cf277 was tested as merge 9fccfcb6b149dba5a28774ab38547ed5975b1898. GitHub confirms both have tree 0ba04afab83046836e30edde814523e583865d7c. The native fixture identifies that merge in its app version. Executable SHA-256: 139B9C233BCF2AEB2372FFDCC39C81A711F74AF3A6F1C70CB8F6D2214F4B81A9; assembly SHA-256: 840E02B8B29B62555D3EFD447C2DC23218AB213281D3577B3286EE584E5068CF.

Actual executed case Result Observed boundary
RetiredProfileCannotWriteQueuedChatToTheSurvivingSocket(revoked: False) Passed, 0.530s Wire profile invalidation: 0 stale chat writes, 1 current authorized write, same socket handshake
Same case, revoked: True Passed, 0.569s Manager-auth observation invalidation: 0 stale chat writes, 1 current authorized write, same socket handshake
ExplicitDisconnectRetainsLoadedTranscriptDraftAndScrollAcrossRecovery Passed, 11.194s Actual native app retains transcript/draft while disconnected; Send disabled offline and enabled after recovery; reader anchor 440px → 440px, history replies 1 → 2
ConnectedVerificationTimeoutHasExplicitRetryWithoutDiscardingTheLoadedDraft Passed, 30.442s Explicit verification retry retains the loaded draft

The final-socket receipts, verbatim:

final-effect invalidation=wire-profile-identity; stale-chat-writes=0; current-chat-writes=1; unchanged-socket-handshake=1
final-effect invalidation=manager-auth-observation; stale-chat-writes=0; current-chat-writes=1; unchanged-socket-handshake=1

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: GatewayFixtureUpgradeTests.ReleasedProfile_PreservesGatewayRecordsIdentitiesAndSettings, 1 passed, 0 skipped, approximately 44 seconds. The actual released portable app 2026.11.1+04f413d26531d3ea19cb108291334bb3cc5fd6e6 wrote an isolated synthetic profile; the actual current PR portable app 2026.11.3-PullRequest2037.64+9fccfcb6b149dba5a28774ab38547ed5975b1898 reopened that same profile. All three Gateway records, active selection, identity-file hashes and preferences were preserved. Stable executable SHA-256: C8F4A14857177683D74C1E176D7C83E3584B658976F070D941E1CD0F99E14446; current portable executable SHA-256: 816B824C02AAF19B0A2034F3CFDC2E61E456E9166F7981C63B7204F8F5F62B1C, from the official portable artifact. The current portable binary and the earlier native fixture binary are separate builds of the same tested merge. Owned test processes exited and the synthetic profile was removed afterwards.

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.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to inactivity.
Please update it or it will be closed.

@github-actions github-actions Bot added the stale label Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. stale status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants