Skip to content

fix: keep queued reconnects from reviving disconnected gateways - #2081

Merged
bkudiess merged 4 commits into
openclaw:mainfrom
shanselman:shanselman-reconnect-generation-ownership
Nov 13, 2026
Merged

bkudiess merged 4 commits into
openclaw:mainfrom
shanselman:shanselman-reconnect-generation-ownership

Conversation

@shanselman

@shanselman shanselman commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #2075. Related: #2071.

What Problem This Solves

Fixes: a queued automatic reconnect can revive a Gateway after setup cleanup, rollback, or disconnect has already torn it down.

User Impact

User impact: disconnected Gateways stay disconnected when teardown wins the transition queue; explicit reconnect remains available. Active saved-Gateway removal also records user intent before removing the record. No migration or new setting.

Why This Change Was Made

The reconnect now validates its originating attempt while holding the existing lifecycle lease and reuses the pinned reconnect body without taking the lock twice. Gateway-id, user-intent and cancellation checks remain intact.

Evidence

Four held-semaphore regressions failed on the baseline by creating a second client after disconnect; two current-attempt controls passed. After the fix, all six cases and three existing pinned-repair tests passed. A focused native source-wiring guard also passes. Separate isolated-app native disconnect and explicit reconnect checks passed against a synthetic Gateway. Independent rubber-duck review found no product defect; its removal-wiring coverage suggestion was addressed.

Shared Codex autoreview completed P0-P3 review of the exact committed candidate with full frozen manager, tests and caller context: two passes, zero findings, final scoped-clean status. The earlier dataset-role preparation refusal was resolved through the documented committed-source context route, without copying/renaming files or disabling safety checks.

CI failed, not merge-ready: run 42462800715 tested head a640c35d through merge commit 661f67eb8103a153b596782955b9bc48b63f52e7. Core/tray and all three real WSL E2E jobs passed. The UI job aborted in a known reasoning-flyout crash family; latest-stable compatibility also stopped at an HTTP 504 archive download. No rerun or unrelated repair.

Not verified / blocked: native Gateway package, live AI provider, Release runtime, native active-row deletion and complete UI/compatibility suites remain unverified. Hosted real WSL setup/recovery and safe node invocation results are recorded below; they are not the exact held-queue race proof.

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: active saved-row removal wiring changed. Native Connection disconnect/reconnect was inspected via Computer Use; no complete pool or active-row deletion claim.
  • windows-wsl-gateway-e2e: operator recovery admission changed. Hosted WSL Latest setup/connect, revocation and network recovery jobs passed on the current-head merge; local shared runtimes were not mutated.

Validation

  • .\build.ps1: passed, all five build targets and documentation gate.

  • dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'trx;LogFileName=shared-final.trx': passed 4876, failed 0, skipped 24 ordinary opt-in tests, total 4900.

  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --logger 'trx;LogFileName=tray-final.trx': passed 5295, failed 0, skipped 0.

  • dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore --logger 'trx;LogFileName=connection-final.trx': passed 1752, failed 0, skipped 1 distinct-volume migration test, total 1753.

  • dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore --filter 'FullyQualifiedName~ScheduledOperatorReconnect': baseline 4 failed, 2 passed, 0 skipped (intended second-client failures).

  • dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore --filter 'FullyQualifiedName~ScheduledOperatorReconnect|FullyQualifiedName~ReconnectIfCurrentAsync': passed 9/9, 0 skipped.

  • dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName~ActiveSavedGatewayRemoval': passed 1/1, 0 skipped.

  • git diff --check: passed.

Hosted run 42462800715, attempt 1, is failure. WSL Latest jobs pin Gateway 2026.11.1:

  • Core/CLI and Tray/setup/integration: passed.
  • Setup/connect WSL Latest: TRX 53 passed, 0 failed, 7 NotExecuted (60 total). Includes real operator/node connect, restart recovery, shared-token flow and FullSetup_SafeNodeInvocation_RoutesThroughRealGateway; skipped cases do not prove MXC or AI/provider behavior.
  • Revocation recovery WSL Latest: 1/1 passed, no skips (RealGateway_DeviceRemoval_RecoversThroughSharedTokenReconnect).
  • Network recovery WSL Latest: 2/2 passed, no skips (GatewayStopAndStart_TrayLeavesReadyThenRecovers, RepeatedGatewayRestart_TrayAndNodeRecoverEachTime).
  • UI/functional/accessibility: failed. TrayUI aborted after 186 passes and 2 skips. Blame sequence marks ReasoningPicker_ReflectsInheritedDefaultWithoutOverridingExplicitChoices(current: "", expectedStop: 3, usesDefault: True) incomplete; last marker is chat-proof: body start, no teardown. This standalone ProofProvider/Reactor harness constructs no connection manager and exercises no reconnect/removal. The pre-existing reasoning-picker crash backlog records pristine-head and independent-run crashes in this family. Classified unrelated to this delta; native crash address/root cause remains unknown.
  • Same UI job's latest-stable compatibility step failed before tests: Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $archive returned 504 Gateway Time-out. The workflow/download path is unchanged; this is acquisition infrastructure failure, not a compatibility result. Separate fixture TRX passed 81/81 UI and 38/38 profile-app; FunctionalUI 19/19; accessibility 21 passed/13 NotExecuted.

No blind rerun, baseline weakening or unrelated repair was performed. CI Gate failure aggregates the UI job; it is not a separate product failure.

Real Behavior Proof

  • Environment tested: native Windows x64 Debug Companion, release identity, isolated profile, synthetic read-only Gateway. Node mode, sensitive capabilities and automatic repair disabled by the fixture.
  • PR head or commit tested: a640c35de15432a6f56ec8449fd94b764ba680b5. Checks ran before commit on the identical source delta above baseline e70292487958be9e70170e2f3affe7afc42056e8; production files were unchanged from build through live checks. No post-commit runtime rerun claimed.
  • Exact steps or command run: .\scripts\run-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.WinUI.exe' -ArtifactsDirectory '<session artifacts>\live-debug' -DurationSeconds 600. Discover with current-build winnode.exe --mcp-url http://127.0.0.1:61775/ --list-tools, then invoke --command app.connection.status --params '{}' using the printed isolated profile. Native route: Owner > Connection Status > Open Connection > Disconnect toggle, then saved Gateway Connect.
  • Evidence after fix: native tree showed Not connected / toggle off, then Connected / toggle on for the same saved Gateway. Copied live status after disconnect: {"operator":"Idle","mcpRunning":true,"pendingActions":0}. After explicit reconnect: {"operator":"Connected","protocol":4,"mcpRunning":true}; active Gateway id unchanged.
  • Observed result: native disconnect settled while local MCP remained available; explicit reconnect authenticated against the same synthetic Gateway. The held-semaphore manager regressions, not these ordinary live checks, directly prove the queued-reconnect defect.
  • Screenshot or artifact links verified? (Yes/No/N/A): N/A. Copied UI/MCP diagnostics; no screenshot or public artifact link claimed.
  • Not verified or blocked: native Gateway package, live AI provider, Release runtime, active-row deletion, exact held-queue runtime race and complete UI/compatibility proof. Hosted current-head merge TRX proves real WSL setup/connect, recovery and safe node invocation only for executed cases above. Original preparation refusal was refusing to include unsafe --dataset: src\OpenClaw.Connection\BootstrapTokenLifecycle.cs (sensitive filename); resolved with documented branch --source-context-file for exact frozen tracked source. An initial branch report lacked unchanged manager internals; a complete-context two-pass assessment closed that gap, returned zero P0-P3 findings, and passed final source verification. Separate Copilot rubber-duck model identity was not surfaced. Only task-owned fixture PIDs were stopped; listeners were verified absent.

Security Impact

  • New permissions or capabilities? (Yes/No): No
  • Secrets or tokens handling changed? (Yes/No): No
  • New or changed network calls? (Yes/No): No. Existing reconnect is suppressed for stale attempts.
  • Command or tool execution surface changed? (Yes/No): No
  • Data access scope changed? (Yes/No): No
  • If any answer is Yes, explain the risk and mitigation: N/A

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes
  • Config or environment changes? (Yes/No): No
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps: N/A

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.

Declared runtime proof limits and the failed hosted UI/compatibility job require maintainer judgment; not merge-ready. No merge performed.

Validate scheduled reconnect attempts under the existing transition lease and preserve active gateway removal intent. Add deterministic stale-attempt and valid-reconnect regressions.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR prevents stale queued reconnects from reviving disconnected Gateways and records user-disconnect intent before active saved-Gateway removal.

Example: A reconnect for gw-queued waits behind a disconnect while gw-queued remains the active saved Gateway.

  • Before: The queued reconnect creates a second client and revives the connection.
  • After: The expired attempt is rejected under the lifecycle lease, leaving the operator Idle.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported repair with meaningful regression coverage; the strongest evidence for the changed race remains unit-level.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored PR is outside the ordinary contributor proof gate; copied current-source native UI/MCP diagnostics show ordinary disconnect and explicit reconnect against a synthetic Gateway, while the changed queue race is demonstrated only by reported tests and active-row deletion is explicitly unverified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A Gateway can reconnect after setup cleanup, rollback, or disconnect has already torn down its connection.
Reason: The focused repair restores the existing disconnect and stale-attempt contracts, and collaborator authorship establishes direction without another product approval.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs a verified reconnect race still present on main, preserves existing lifecycle ownership, and introduces no identified correctness defect.

Priority: P2
Reviewed head: a640c35de15432a6f56ec8449fd94b764ba680b5

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied native diagnostics do not exercise a queued reconnect losing to teardown or active saved-row deletion; those changed paths have manager regressions and a source-wiring guard respectively.
Agent review details

How this fits together

GatewayConnectionManager receives explicit connection actions and automatic recovery requests, serializes lifecycle transitions, and creates or disposes Gateway clients using the saved registry and credential owners.

flowchart TD
  A[Connection page] --> B[GatewayConnectionManager]
  C[BootstrapTokenLifecycle] --> B
  B --> D[Transition semaphore and attempt lease]
  D --> E[Pinned reconnect core]
  F[Gateway registry and user intent] --> E
  E --> G[Gateway client lifecycle]
Loading

Technical review

Best possible solution:

Land the atomic attempt validation and intent-aware removal through the existing manager, retaining pinned reconnect behavior and the focused regressions.

Do we have a high-confidence way to reproduce the issue?

The main-source check-before-lock sequence establishes the race, and the supplied baseline results report the intended second-client failure in all four stale-attempt cases.

Is this the best way to solve the issue?

This is the smallest complete repair: validate the originating attempt under the existing lease, share the pinned reconnect body without reacquiring its semaphore, and use the existing user-disconnect operation for removal.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e70292487958.

Provenance checked

  • Pinned, intent-aware reconnect keeps the original intent (bc210e0: Managed-local recovery must reconnect only its intended Gateway while honoring explicit disconnect and cancellation.)
  • Scheduled operator reconnect and attempt leases keeps the original intent (d67ef51: The domain extraction retained manager-owned operator reconnect orchestration and required superseded lifecycle attempts to remain fenced.)
  • Active saved-Gateway removal keeps the original intent (753828f: The supplied provenance records an exception-logging audit; this PR preserves the warning and changes only the disconnect operation to record user intent.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Barbara Kudiess: Raw commit d67ef51 adds src/OpenClaw.Connection/GatewayConnectionManager.cs:3033 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d67ef5140d13; files: src/OpenClaw.Connection/GatewayConnectionManager.cs)
  • Ranjesh Jaganathan: Raw commit 67fde73 adds src/OpenClaw.Tray.WinUI/Services/Connection/GatewayConnectionManager.cs:54 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 67fde7323c52; files: src/OpenClaw.Tray.WinUI/Services/Connection/GatewayConnectionManager.cs)
  • Scott Hanselman: Raw commit b917d7e adds tests/OpenClaw.Connection.Tests/GatewayConnectionManagerTests.cs:5156 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: b917d7e197e5; files: tests/OpenClaw.Connection.Tests/GatewayConnectionManagerTests.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
Production and regression scope Production +40/-36 lines; tests +101 lines; documentation +6 lines. Production growth is limited to sharing the existing reconnect body under two locking entry points; tests cover stale-attempt rejection, valid reconnects, and removal wiring.

Root-cause cluster

Relationship: same_root_cause
Canonical: #2075
Summary: This PR implements the specific reconnect repair tracked by the child issue within the broader lifecycle audit.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P2: A bounded lifecycle race can undo cleanup or rollback, without evidence of an emergency outage or blocked first-use workflow.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A bounded lifecycle race can undo cleanup or rollback, without evidence of an emergency outage or blocked first-use workflow.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed November 8, 2026, 3:37 AM ET / 08:37 UTC.

@shanselman

Copy link
Copy Markdown
Collaborator Author

Hi @karkarl! I'm a Copilot triage bot posting for Scott (I'm not Scott). He asked me to assign this PR to you and see if you'd be up for reviewing it and merging it when you're happy with it.

This is one of five small fixes from the state machine audit in #2071 (Fix dangerous implicit state machines (audit lanes)). This one stops a queued automatic reconnect from bringing a Gateway back to life after setup cleanup, rollback or disconnect has already torn it down.

CI note: the UI test job is red from the known reasoning flyout test crash plus an HTTP 504 while downloading a compatibility archive. The WSL Gateway jobs passed.

No rush at all, and please feel free to ask for changes or push back. Thank you so much!

@roboclaw-bot

Copy link
Copy Markdown
Contributor

PR cleanup review

Reviewed head: a640c35de15432a6f56ec8449fd94b764ba680b5. Main comparison: e59374c064f43d68f5c72d070d4c89ef2d20ec3b.

Source cleanup review at a640c35 against main e59374c: the reconnect lease/epoch fix and DisconnectByUserAsync removal path are not superseded. The local merge preview conflicts only in AppRefactorContractTests.cs. Preserve the new race tests while resolving that conflict, then provide current-head proof for deleting the active gateway with a queued reconnect; ordinary reconnect/disconnect evidence is not the same scenario. Current UI/CI Gate also needs resolution before landing.

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.

@shanselman

Copy link
Copy Markdown
Collaborator Author

Hi @karkarl, I'm a Copilot triage agent (not Scott). I looked at this overnight and I'm leaving it open for a human, with notes so it is quick to pick up. I changed no labels and pushed nothing to the branch.

What I checked

  • Merged current main (22c111d4) into the PR head in a scratch worktree. The only conflict is in AppRefactorContractTests.cs; keeping all three tests resolves it.
  • On that merge result: build.ps1 passed, Connection tests 1752 passed (1 skipped), Shared tests 5761 passed (27 skipped), Tray tests 6291 passed, and the real Companion profile was not touched.
  • Three mutation checks were all caught: (1) a null lease no longer aborting the reconnect failed the four QueuedBehindDisconnect cases, (2) running the public ReconnectIfCurrentAsync under the lease failed the two CurrentAttempt cases, (3) using DisconnectAsync instead of DisconnectByUserAsync in OnSavedRowRemoveAsync failed the source-contract test.

Why I did not merge
Three independent read-only reviewers (SAFE 85%, SAFE 90%, HOLD 93%) all found the same narrow race. For a connection lifecycle change that is below the bar I use, so I stopped here:

  • OnSavedRowRemoveAsync decides gateway A is active, then DisconnectByUserAsync() reads ActiveGatewayId again after it gets the transition semaphore. If a queued switch to B runs first, removing A disconnects B and marks B as user-disconnected, so B's automatic repair stays off until an explicit reconnect. Before this PR the same window existed, but B was not marked. A fix would pass A into a conditional disconnect (a no-op when A is no longer active) and add a test for the queued switch. That needs an IGatewayConnectionManager API choice, so I did not guess.

Smaller notes from the same reviews:

  • If a same-gateway node-only restart wins the queue after an operator recovery was queued, the new lifecycle check drops that recovery (the restart advances the generation without replacing an errored operator).
  • A stale queued request now waits on the semaphore behind a stalled transition. A cheap stale pre-check, plus the check under the lease, would keep the old fast path.
  • Not pinned by tests yet: the stale-lease release path (a missing Release() would hang the next transition but pass today's cases), a gateway switch during a reconnect, and the wasActive branch placement in the source-contract guard.

Still open from roboclaw-bot: current-head proof for deleting the active gateway with a queued reconnect. The Connection tests cover the manager side, and the page side only has a source-contract test. I did not run that scenario in the app. The PR also shows as conflicting with main until the conflict above is resolved.

Happy to help if useful.

@roboclaw-bot

Copy link
Copy Markdown
Contributor

Refreshing this branch with current main (3d5f14270dd6bd8b260a723ff2e73a68ea858ca8) under the requested conflict-resolution pass. I will preserve the queued-reconnect generation guard and main’s transactional saved-Gateway removal/lifecycle ownership, review the lease boundaries, and push only a non-force merge update to the existing branch. Native Windows/active-row proof is not available on this Linux host; any unrun validation will remain explicit. No merge or readiness change.

@roboclaw-bot roboclaw-bot added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 12, 2026
Preserve transactional saved-Gateway removal and pin user-disconnect intent and teardown to the removed owner. Retain the queued reconnect attempt lease and current lifecycle owners.

Co-authored-by: bkudiess <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Contributor

Main refresh pushed to this original branch, without force-pushing or merging the PR.

  • Original head: a640c35de15432a6f56ec8449fd94b764ba680b5.
  • Merged main: 3d5f14270dd6bd8b260a723ff2e73a68ea858ca8.
  • New merge head: 952fea3c42df722062dad27830fffcfa1e988eda (both original head and main are ancestors). GitHub now reports MERGEABLE with main, but checks remain pending and the overall merge state is blocked.

Conflict choices:

  • Kept main's transactional RemoveAndSave, including the failure return that preserves the live connection. Kept both main architecture guards alongside the PR's removal guard.
  • Kept the queued-reconnect attempt lease and non-locking reconnect core, so generation validation happens under the existing transition semaphore without acquiring it twice.
  • Reconciled removal with that transaction by pinning DisconnectByUserAsync(gwId) to the removed Gateway. A queued switch to B cannot disconnect B or mark B user-disconnected. Added four manager regression cases for replacement protection, native removal, native-stop retry and retained-runtime cleanup after identity failure.
  • Independent read-only GPT-6 Astra review identified one retained-native-owner cleanup defect in the first resolution. It was fixed using the existing live/runtime/published owners. Follow-up P0-P3 review of the complete eight-file candidate found no remaining findings. This is narrative source review, not runtime proof.

Validation on this Linux host:

  • python3 .openclaw/tmp/static-checks.py: 9/9 source-integration checks passed; 3/3 source-guard negative controls rejected. These are not .NET behavioral tests.
  • git diff 3d5f14270dd6bd8b260a723ff2e73a68ea858ca8 HEAD --check: passed. The parent-relative imported-main whitespace check flags existing CRLF lines in NodeExecDenialWireTests.cs; that blob is identical to main and was not changed by this resolution.
  • ./build.ps1: blocked (not executable on this host; PowerShell is absent).
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: blocked, dotnet absent, 0 tests executed.
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: blocked, dotnet absent, 0 tests executed.
  • dotnet test ./tests/OpenClaw.Connection.Tests/OpenClaw.Connection.Tests.csproj --filter 'FullyQualifiedName~ScheduledOperatorReconnect|FullyQualifiedName~UserDisconnect_Removed|FullyQualifiedName~ReconnectIfCurrentAsync': blocked, dotnet absent, 0 tests executed. New C# regression cases are unexecuted locally.
  • pwsh -File ./scripts/setup-dev.ps1 -CheckOnly and pwsh -File ./scripts/validate-docs.ps1: blocked, pwsh absent. winapp --version and winapp --cli-schema are also unavailable. No packages installed or shared runtimes changed.

Not verified / blocked: current-head build, Shared/Tray/Connection suites, native active-row deletion with queued reconnect, exact held-queue runtime race, Release/native Gateway and full UI/compatibility proof. Earlier-head evidence in the preserved PR body is not evidence for this merge head. This update does not claim merge readiness.

New head CI is running, not passed: Build and Test 43296810888, CodeQL 43296811237. No blind rerun or re-review request. PR body, attribution and draft state are unchanged; handing back with the active-work label removed.

@roboclaw-bot roboclaw-bot removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 12, 2026
The new timing-pattern guard on main rejects literal 2-6 s hang guards.
Replace the four 5 s waits added by this PR with an
OPENCLAW_TEST_GATEWAY_STEP_TIMEOUT_SECONDS step timeout.

Co-authored-by: Copilot App <[email protected]>
@bkudiess
bkudiess merged commit 439b7cc into openclaw:main Nov 13, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop queued operator reconnects from reviving a disconnected gateway

4 participants