Skip to content

fix(apple): Gateway connection stays dead for up to two minutes after a network change - #168024

Merged
steipete merged 1 commit into
mainfrom
feat/apple-gateway-network-path-recovery
Oct 9, 2026
Merged

steipete merged 1 commit into
mainfrom
feat/apple-gateway-network-path-recovery

Conversation

@steipete

@steipete steipete commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

After a network change on iPhone or Mac (Wi-Fi to cellular, a VPN toggle, Wi-Fi dropping and coming back), the app can sit on a dead Gateway connection or keep waiting out its retry delay long after the network is usable again.

User Impact

Gateway connections on iOS and macOS now recover within seconds of a network change instead of up to about two minutes. Background gateways, the focused gateway, and the macOS app all benefit. Healthy connections are left alone, and watchOS behavior is unchanged.

Why This Change Was Made

GatewayChannelActor ignores keepalive ping failures, so a silently dead socket was only noticed by the tick watchdog, which checks every 2× the tick interval (60–120 s with the default 30 s tick). iOS's focused gateway also has a health monitor (about 45–60 s); background fleet gateways and macOS had only the ticks. After an outage, both retry delays (0.5 s doubling to 30 s) kept counting down even once the network returned.

The channel already owns liveness, reconnect, and backoff for every Apple client, so the fix lives there. One process-wide NWPathMonitor (iOS/macOS only) feeds each channel. When the network path changes and stays changed for 1 s:

  • Connected: send one ping with a 5 s deadline. If it fails, retire that socket through the normal disconnect path, which reconnects. If it answers, keep it; healthy sockets are never migrated.
  • Waiting to reconnect: reset both backoffs and wake the pending waits so the next attempt starts now. This keeps the existing single reconnect chain.

The first observed path is only a baseline, so nothing fires at startup. Unsatisfied paths, auth-paused channels, and shut-down channels do nothing. The public GatewayChannelActor initializer is unchanged; it forwards to an internal initializer that carries the path source. watchOS is excluded because Watch Gateway sockets run under TN3135 audio-session networking.

Release note context: iOS and macOS reconnect to the Gateway within seconds after Wi-Fi/cellular/VPN changes.

Evidence

  • 10 new tests (event-driven, injected path source and sleeps; no polling): a missing pong after a settled change retires pending requests and reconnects; a healthy pong keeps the socket; overlapping changes share one probe; an old probe cannot retire a replacement socket; a satisfied path wakes the pending reconnect and resets both backoffs, including a connect attempt sitting in its failure backoff; auth pause is respected; initial, repeated, unsatisfied, and unsettled flip-back paths do nothing; shutdown fences path consumption and an outstanding probe.
  • Real-socket boundary test: a real URLSession socket to the native fixture is stalled (no reads, no pongs, no close), then a path change is injected. The channel reconnects and the fixture receives a fresh Gateway connect frame in 0.6 s.
  • Whole OpenClawKit suite: 2,307 tests passed (40 s). The focused new and existing suites (GatewayNetworkPath*, GatewayNodeSessionTests, GatewayNativeTransportDeviceAuthTests): 109 passed.
  • OpenClawKit compiles for iOS Simulator and watchOS Simulator (headless xcodebuild). SwiftFormat is clean; strict SwiftLint passes with zero violations under both the root and iOS configs. GatewayChannel.swift is at 1,490 counted lines, under the 1,500 file_length limit.
  • Gap: physical Wi-Fi/cellular/VPN transitions were not exercised; path changes were injected at the monitor boundary.

… a network change

Keepalive ping failures are ignored, so after a Wi-Fi/cellular/VPN change
a silently dead Gateway socket was only caught by the tick watchdog
(60-120 s), and both reconnect backoffs kept counting down after the
network returned.

GatewayChannelActor now observes one process-wide NWPathMonitor
(iOS/macOS). A changed path that settles for 1 s triggers one 5 s ping
on a connected socket (retired through the normal disconnect path if it
fails; healthy sockets stay) or, while waiting to reconnect, resets both
backoffs and wakes the owned waits on the existing single reconnect
chain. The first path is a baseline; unsatisfied, auth-paused, and
shut-down channels do nothing. watchOS is unchanged. The public
initializer signature is unchanged.

Proof: 10 new event-driven tests plus a real URLSession socket stalled
on the native fixture that reconnects in 0.6 s after an injected path
change; OpenClawKit suite 2,307 passed; iOS and watchOS Simulator
compiles; SwiftFormat and strict SwiftLint clean.
@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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.

@steipete
steipete marked this pull request as ready for review October 9, 2026 23:35
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. labels Oct 9, 2026
@clawsweeper

clawsweeper Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Apple apps probe Gateway connections after settled network changes and wake pending reconnect delays so disconnected apps recover sooner.

Example: An iPhone switches from Wi-Fi to cellular while its Gateway socket stops responding.

  • Before: Ignored ping failures leave recovery to the tick watchdog, which can take 60–120 seconds.
  • After: After the path settles for 1 second, a ping with a 5-second deadline triggers reconnection if the socket remains unresponsive.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful shared-owner repair with no actionable source finding and sufficient native transport boundary proof, but no full app or physical network-transition run.
Proof confidence 🦐 gold shrimp (3/6) Sufficient (live_output): The author reports after-fix recovery through GatewayChannelActor and a real URLSession WebSocket: after the loopback peer stops reading or returning pongs, an injected path change produces a replacement generation and a fresh decoded Gateway connect frame. The inspected fixture and test exercise that production transport boundary, satisfying the internal reliability proof route; physical network transitions remain outside the demonstrated scope.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: The iPhone or Mac app can remain disconnected from its Gateway long after a changed network becomes usable.
Reason: Automatic recovery is established behavior, and long waits after network changes undermine it. A bounded repair in the shared connection owner benefits Apple clients without adding configuration or a competing retry mechanism.

Merge readiness

✅ Ready for maintainer review

This PR addresses a concrete connection-recovery gap still present on current main. The shared-owner implementation is useful, and source review found no actionable introduced defect.

Priority: P2
Reviewed head: 17f0e053cfce40dd948d824932f2109f05166162

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Physical Wi-Fi/cellular/VPN transitions and a failing-base/passing-head replay were not shown; the supplied proof exercises injected path changes through the real native transport.
Agent review details

How this fits together

The shared Apple Gateway channel carries requests and events between native apps and the OpenClaw Gateway. It owns socket liveness, connection generations, authentication pauses, and automatic reconnect attempts.

flowchart TD
 A[Apple network path updates] --> B[Shared path monitor]
 B --> C[Channel waits for settled change]
 C --> D{Connection state}
 D -->|Connected| E[Probe current socket]
 E -->|Pong| F[Keep healthy connection]
 E -->|Failure| G[Existing disconnect and reconnect owner]
 D -->|Retry pending| G
Loading

Technical review

Best possible solution:

Keep network-triggered recovery in the shared Apple channel while preserving its existing socket-generation and reconnect ownership.

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

Yes: a socket that stops returning pongs remains connected because current main ignores keepalive errors until its tick watchdog fires. The author reports exercising this failure through a real URLSession socket; this review did not execute tests.

Is this the best way to solve the issue?

Yes: path changes feed the existing shared channel, which probes healthy connections and wakes its own retry waits without adding another reconnect owner or changing saved settings.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit de67565 adds apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayConnectFailureBackoff.swift:42 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: de67565cda6b; files: apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayConnectFailureBackoff.swift)

PR surface

Source +244, Tests +509. Total +753 across 8 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 4 257 13 +244
Tests 4 514 5 +509
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 771 18 +753

Review metrics

Metric Value Why it matters
Production versus test growth Production +244 net LOC; tests +509 net LOC Production growth is justified by shared path observation and wakeable owned delays; the larger test growth covers distinct recovery and lifecycle contracts.

Labels

Label changes:

  • add P2: Delayed recovery after network changes disrupts Apple Gateway use temporarily, with existing watchdog recovery limiting the outage.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • 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: Delayed recovery after network changes disrupts Apple Gateway use temporarily, with existing watchdog recovery limiting the outage.
  • 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.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 9, 2026, 7:41 PM ET / 23:41 UTC.

@steipete
steipete enabled auto-merge (squash) October 9, 2026 23:50
@steipete
steipete merged commit 657f09f into main Oct 9, 2026
131 of 133 checks passed
@steipete
steipete deleted the feat/apple-gateway-network-path-recovery branch October 9, 2026 23:51
@steipete

steipete commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
… a network change (openclaw#168024)

Keepalive ping failures are ignored, so after a Wi-Fi/cellular/VPN change
a silently dead Gateway socket was only caught by the tick watchdog
(60-120 s), and both reconnect backoffs kept counting down after the
network returned.

GatewayChannelActor now observes one process-wide NWPathMonitor
(iOS/macOS). A changed path that settles for 1 s triggers one 5 s ping
on a connected socket (retired through the normal disconnect path if it
fails; healthy sockets stay) or, while waiting to reconnect, resets both
backoffs and wakes the owned waits on the existing single reconnect
chain. The first path is a baseline; unsatisfied, auth-paused, and
shut-down channels do nothing. watchOS is unchanged. The public
initializer signature is unchanged.

Proof: 10 new event-driven tests plus a real URLSession socket stalled
on the native fixture that reconnects in 0.6 s after an injected path
change; OpenClawKit suite 2,307 passed; iOS and watchOS Simulator
compiles; SwiftFormat and strict SwiftLint clean.
steipete added a commit that referenced this pull request Oct 10, 2026
#168171)

The reconnect-backoff hooks added in #168024 lived in OpenClawKit
Sources but were called only from OpenClawKitTests. The shared
Periphery workflow scans the iOS and macOS consumer indexes, and
neither builds OpenClawKitTests, so both reported
_test_setReconnectBackoffMs(_:) and _test_reconnectBackoffMs() as
unused and the intersection failed on every PR touching the kit.

Move the setter into the test file's existing @testable fileprivate
GatewayChannelActor extension, beside seedPathRecoveryConnectBackoff,
and read the internal backoffMs directly. The remaining _test_ hooks
stay because the macOS OpenClawIPCTests call them.

Proof: swift test --filter GatewayNetworkPath (10 tests in 2 suites,
including the reset-both-backoffs case) passes; SwiftFormat clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
openclaw#168171)

The reconnect-backoff hooks added in openclaw#168024 lived in OpenClawKit
Sources but were called only from OpenClawKitTests. The shared
Periphery workflow scans the iOS and macOS consumer indexes, and
neither builds OpenClawKitTests, so both reported
_test_setReconnectBackoffMs(_:) and _test_reconnectBackoffMs() as
unused and the intersection failed on every PR touching the kit.

Move the setter into the test file's existing @testable fileprivate
GatewayChannelActor extension, beside seedPathRecoveryConnectBackoff,
and read the internal backoffMs directly. The remaining _test_ hooks
stay because the macOS OpenClawIPCTests call them.

Proof: swift test --filter GatewayNetworkPath (10 tests in 2 suites,
including the reset-both-backoffs case) passes; SwiftFormat clean.
RomneyDa pushed a commit that referenced this pull request Oct 13, 2026
…9403)

Backport of a020759 (#169403) adapted for 2026.10.3.

10.3 lacks the cancellable connect-failure backoff wait from #168024, so the
channel gains the minimal owned wait task (cancelled on clear and shutdown) that
clearConnectFailureBackoff needs; backoffMs becomes internal for that extension.

(cherry picked from commit a020759)
RomneyDa pushed a commit that referenced this pull request Oct 20, 2026
#168171)

The reconnect-backoff hooks added in #168024 lived in OpenClawKit
Sources but were called only from OpenClawKitTests. The shared
Periphery workflow scans the iOS and macOS consumer indexes, and
neither builds OpenClawKitTests, so both reported
_test_setReconnectBackoffMs(_:) and _test_reconnectBackoffMs() as
unused and the intersection failed on every PR touching the kit.

Move the setter into the test file's existing @testable fileprivate
GatewayChannelActor extension, beside seedPathRecoveryConnectBackoff,
and read the internal backoffMs directly. The remaining _test_ hooks
stay because the macOS OpenClawIPCTests call them.

Proof: swift test --filter GatewayNetworkPath (10 tests in 2 suites,
including the reset-both-backoffs case) passes; SwiftFormat clean.

(cherry picked from commit 46d5488)
RomneyDa added a commit that referenced this pull request Oct 20, 2026
* test(discord): classify native registry cases as test support

Keep the backported native routing cases out of production dependency and database-worker inventories while retaining their focused coverage.

Co-authored-by: RomneyDa <[email protected]>

* chore(agents): shrink settings assertion baseline

Co-authored-by: RomneyDa <[email protected]>

* fix(agents): keep the poll vote echo matcher private (#168333)

#167979 moved the matcher's only production caller into suppressPollVoteEcho,
leaving isPollVoteEchoText exported solely for its unit test. The Knip
production unused-export scan rejects that export, so pnpm check:changed fails
on main for local and Testbox runs (GitHub Actions only reports it as advisory).

Make the matcher module-private and drive the unchanged matcher table through
the module's real public pair, recordPollVote -> suppressPollVoteEcho. No
production behavior change.

Co-authored-by: RomneyDa <[email protected]>

* test(cron): await archive RPC after cancellation

The PR-automation archive fixture treated the cron finished event as a
session-patch response receipt. Archiving cancels the occurrence from the
committed cron update while the archive RPC is still finishing, so the
response assertion raced that handler.

Capture and join the actual archive request before inspecting its response.
Hold the real cron update after commit to reproduce this ordering without
timers, while preserving every existing session identity, cancellation,
disabled-job and teardown assertion. Keep worker run rows and launch checks
unchanged.

The forced pre-fix control reproduced the hourly's zero-response failure
(1 failed, 2 passed). The fixed file passed all 3 cases: 100.79s Vitest,
105.94s wrapper with --maxWorkers=1; most elapsed time was compilation/import.
Cron test types, type-aware lint, boundary lint and formatting passed.
P2 autoreview is scoped-clean. Full cron-config proof passed: 1,961 tests
in 251 files, 1090.77s, one worker.

Focused command: pnpm test src/cron/service.pr-automation.test.ts --maxWorkers=1
Full config: node scripts/run-vitest.mjs run --config
test/vitest/vitest.cron.config.ts --maxWorkers=1

Refs: main CI run 38881317413, job 116908788842.
Co-authored-by: RomneyDa <[email protected]>

* fix(update): settle state writers before Doctor schema repair (#177844)

* fix(update): consume SQLite migration source once

* fix(update): retain captured source through Doctor preparation

* fix(update): settle state writers before Doctor schema repair

Drain prior canonical handles before private schema repair so their native-close receipts publish legitimate maintenance writes and release exclusive custody. Keep all migration attribution and strict source checks; remove the source-consumption workaround that lost later Doctor writes.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): close required-backport compatibility gaps

Restore test-only transcript access, classify the extracted update helper as test support, retain the full PR-wrapper runtime closure, align native-bootstrap journal expectations, and point non-isolated fixtures at the extracted state owner.

Co-authored-by: RomneyDa <[email protected]>

* fix(cli): preserve JSON output when gateway commands exit (#176795)

Co-authored-by: RomneyDa <[email protected]>

* test(cli): preserve exit semantics in gateway harness

Construct the mocked runtime exit with the production ExitError so JSON completion remains distinguishable from ordinary command failures.

Co-authored-by: RomneyDa <[email protected]>

* test(agents): distinguish hidden recovery prompts from user turns

prompts as hidden internal_system user rows to preserve model-prefix
bytes. The finalization and cron fallback tests still counted those rows
as new user turns.

Require the expected hidden rows and their provenance, retain the single
visible original turn, and verify finalization does not hide the next real
user message. Keep receipt, attempt-count, provider-request, fallback-notice
and final-answer assertions intact. No production behavior changes.

Proof: both hourly failures reproduced on current main; all eight focused
cases pass with --maxWorkers=1, including runtime retry/cold-reopen coverage.
Agents and cron test typechecks, typed lint, boundary lint, formatting and
P2 autoreview pass.

Co-authored-by: RomneyDa <[email protected]>

* test(memory): join background dreaming cleanup at stop

Align the startup-admission proof with #169945: the gateway hook no longer blocks on historical cleanup, while service stop remains the deterministic settlement boundary.

Co-authored-by: RomneyDa <[email protected]>

* fix(cli): use typed exits for gateway JSON commands

Backport the narrow runtime exit contract required by #176795 without importing the full #168587 refactor, and keep the gateway harness mock non-throwing outside the explicit typed-exit proof.

Co-authored-by: RomneyDa <[email protected]>

* fix(update): restore initialization selector revalidation

Restore the selector fence omitted by the partial #168882 compatibility backport while keeping the core file within the release line count ratchet.

Co-authored-by: RomneyDa <[email protected]>

* test(agents): align recovery prompts with release behavior

Match the current finalization prompt text while retaining the release-line provider fallback contract of one visible cron user turn.

Co-authored-by: RomneyDa <[email protected]>

* fix(update): finalization ignores TMPDIR for disposable copies

Keep update inspection images and source captures on the candidate helper temporary volume without relocating native admissions or recovery backups.

Co-authored-by: RomneyDa <[email protected]>

* fix: native app messages fail after reconnecting

Co-authored-by: RomneyDa <[email protected]>

* test: prove native reconnect dispatch and stale-session policy

Co-authored-by: RomneyDa <[email protected]>

* fix(codex): previews block replies after context refresh

Co-authored-by: RomneyDa <[email protected]>

* fix(codex): preserve persistent policy checks during context refresh

Co-authored-by: RomneyDa <[email protected]>

* test(codex): narrow active binding before checking successor

Co-authored-by: RomneyDa <[email protected]>

* fix(ui): offer desktop setup instead of Retry when Host Desktop is off

- The chat Desktop panel asks environments.list for desktopSetup only when
  its unresolved automatic target is the Gateway host.
- The panel says desktop access is not enabled on the Gateway host and that
  it shares the Gateway host's screen, shows setup steps worded for the
  Gateway host plus account and network notes, and offers Enable desktop
  access when the connection can patch config (else the administrator
  hint) or Check again, then re-reads inventory and connects the Gateway
  desktop.
- Systems and the panel share the setup state selection and the
  desktop.host.enabled patch helper; other targets, document mode and a
  failed setup check keep desktop.sourceUnavailable.
- The setup helper declares its own runtime-config shape and imports
  nothing from desktop-panel-inputs.ts, so the type import runs one way.
- Docs mention the chat panel path.

Co-authored-by: RomneyDa <[email protected]>

* test(ui): adapt Host Desktop setup proof to Lit

Use the release-line i18n registry, shadow-root assertions, and Lit settlement instead of the upstream Solid-only test helpers.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): repair merged validation fixtures

Co-authored-by: RomneyDa <[email protected]>

* refactor(release): close candidate source ratchets

Co-authored-by: RomneyDa <[email protected]>

* test(update): restore safe managed handoff fixtures

Complete the #168722 fixture integration omitted by the release backport.

Co-authored-by: RomneyDa <[email protected]>

* test(release): drop incompatible question cleanup

The release snapshot does not retain the mainline sharing-read owner introduced after this branch point.

Co-authored-by: RomneyDa <[email protected]>

* test(codex): adapt recovery fixture to release helper

Co-authored-by: RomneyDa <[email protected]>

* refactor(cli): simplify update and offline repair bookkeeping

Use the rehearsed configuration during update activation instead of looping
through candidate checks after late config edits. Rely on the sequential node
auto-update caller and Doctor's exclusive maintenance ownership for internal
pause and title bookkeeping. Preserve validation, schema, authorization,
service-publication, privacy and work-settlement boundaries.

Best-effort tradeoffs accepted:
- Late root/include edits no longer restart rehearsal (b36eb3e's injected
  save cases); incompatible edits can require correction or Doctor/restart.
- Unsupported overlapping pause/resume calls do not retain distinct tokens
  (#149517); the production auto-update loop awaits each pause before resume.
- Concurrent foreground title changes during offline Doctor are unsupported
  (#151211); existing names/incognito sessions and live commit authority stay.

Remove 76 net production lines and 292 test lines. Focused proof covers 177
supported node/update/Doctor cases; core types, both zero-cycle checks, typed
lint, formatting and independent P2 review pass. The lint-suppression test has
an inherited allowlist mismatch already fixed on main in dab6a8d. Full
changed-check and release-matrix proof are not claimed for this branch-only
below-500 simplification.

Co-authored-by: RomneyDa <[email protected]>

* refactor(cli): simplify update and worker lifecycle guards

Carry admitted snapshots through updates and retain live authority at effects. Remove speculative observation, generation, and bookkeeping machinery while preserving rollback, native settlement, bounded resources, and public interfaces.

Co-authored-by: RomneyDa <[email protected]>

* test(cli): align Windows probes with single service inspection

Co-authored-by: RomneyDa <[email protected]>

* test(cli): retire remaining synthetic completion checks

Co-authored-by: RomneyDa <[email protected]>

* fix(cli): preserve shutdown and update fixture contracts

Co-authored-by: RomneyDa <[email protected]>

* fix(cli): preserve full config read failures

Co-authored-by: RomneyDa <[email protected]>

* test: retire obsolete command revalidation scenarios

Co-authored-by: RomneyDa <[email protected]>

* test: revoke publication authority after confirmed service stop

Co-authored-by: RomneyDa <[email protected]>

* test(cli): align progress fixtures with simplified ownership

Co-authored-by: RomneyDa <[email protected]>

* fix(plugins): retain Windows dependency links across Doctor phases

Co-authored-by: RomneyDa <[email protected]>

* fix(update): guide Windows task disable permission failures

Refs #170956 (finding 3). Preserve the autostart disable guard while reporting definite access denials with elevation and manual-update guidance, without attempting an unnecessary enable.

Co-authored-by: RomneyDa <[email protected]>

* fix(doctor): suggest retry after snapshot contention

Co-authored-by: RomneyDa <[email protected]>

* fix: Windows backup scratch cleanup fails with EPERM

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: RomneyDa <[email protected]>

* fix(update): recognize Dutch Scheduled Task access denial

Co-authored-by: RomneyDa <[email protected]>

* fix(release): retain native lifecycle dependencies

Adapt required PR #168882 to the 2026.10.6 architecture without importing unrelated mainline dependency trees.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): preserve initialization revalidation

Retain the later release-specific selector fence while adapting required PR #168882.

Co-authored-by: RomneyDa <[email protected]>

* test(release): adapt Doctor contention fixture

Exercise the required #176779 guidance through the 2026.10.6 database admission interface.

Co-authored-by: RomneyDa <[email protected]>

* test(release): shrink mock export baseline

Remove the obsolete plugin lifecycle config mock exception eliminated by required PR #168882.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): adapt lifecycle refactor interfaces

Preserve required PR #168882 while retaining the 2026.10.6 progress, child-binding, and Doctor convergence contracts.

Co-authored-by: RomneyDa <[email protected]>

* test(release): adapt simplified update lifecycle

Keep the required #168882 validation coverage while retaining the 2026.10.6 sidecar catalog and update-run fixture contracts.

Co-authored-by: RomneyDa <[email protected]>

* test(release): drop unsupported settle-window fixture

Remove the #178170 test-only import that depends on #172069 settlement timing, which is not part of the 2026.10.6 release architecture.

Co-authored-by: RomneyDa <[email protected]>

* fix(release): close expanded candidate lint

Remove stale and redundant constructs while restoring the two pre-existing max-lines suppressions accidentally dropped by the earlier repair commit.

Co-authored-by: RomneyDa <[email protected]>

* refactor(release): split oversized candidate files

Split the BTW runtime helpers and Doctor memory-auth scenarios so the required backports satisfy the source-size ratchet without adding suppressions. Consolidate the duplicated Docker activation marker spelling to close inherited environment-inventory drift.

Co-authored-by: RomneyDa <[email protected]>

* test(release): document split isolation boundaries

Document the intentionally closed Doctor mocks and runtime transcript assertions introduced by the validation-safe file split, and prune the repaired assertion baseline entry.

Co-authored-by: RomneyDa <[email protected]>

* style(release): format validation runner changes

Apply the repository formatter to the backported test runner and workflow guard updates.

Co-authored-by: RomneyDa <[email protected]>

* fix(cli): preserve typed exits after output drain

Catch the default runtime's typed ExitError inside the legacy output-drain callback and retain its process status. This keeps the V8-safe typed exit contract while preventing successful help renders from surfacing as uncaught failures.

Co-authored-by: RomneyDa <[email protected]>

* perf(ui): defer page-only English copy from startup

Adapt upstream PR #178054 to the release branch after the TypeScript page migration.

Co-authored-by: RomneyDa <[email protected]>

* chore(ui): refresh Host Desktop locales

Adapt upstream locale refresh PR #178236 to the 20-locale release catalog.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

Co-authored-by: RomneyDa <[email protected]>

* fix(ui): register lazy secret copy at view boundary

Keep direct page rendering self-contained and retain the current plugin catalog anchor type.

Co-authored-by: RomneyDa <[email protected]>

* docs(changelog): refresh 2026.10.6 contribution record

Co-authored-by: RomneyDa <[email protected]>

* fix(windows): recognize task permission denials in every locale (#178624)

(cherry picked from commit 00cb4b3)

Co-authored-by: RomneyDa <[email protected]>

* docs(changelog): record Windows locale recovery backport

Co-authored-by: RomneyDa <[email protected]>

* fix(apple): Shared OpenClawKit Periphery fails on every OpenClawKit PR (#168171)

The reconnect-backoff hooks added in #168024 lived in OpenClawKit
Sources but were called only from OpenClawKitTests. The shared
Periphery workflow scans the iOS and macOS consumer indexes, and
neither builds OpenClawKitTests, so both reported
_test_setReconnectBackoffMs(_:) and _test_reconnectBackoffMs() as
unused and the intersection failed on every PR touching the kit.

Move the setter into the test file's existing @testable fileprivate
GatewayChannelActor extension, beside seedPathRecoveryConnectBackoff,
and read the internal backoffMs directly. The remaining _test_ hooks
stay because the macOS OpenClawIPCTests call them.

Proof: swift test --filter GatewayNetworkPath (10 tests in 2 suites,
including the reset-both-backoffs case) passes; SwiftFormat clean.

(cherry picked from commit 46d5488)

* chore(ui): move Host Desktop locale refresh out of source PR

This reverts commit f777409.
CI preflight requires generated Control UI locale artifacts to land
isolated from source changes; the refresh lands on the release branch
as its own generated-only commit after this PR merges.

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Jacqueline Henriksen <[email protected]>
Co-authored-by: Mitchell Etzel <[email protected]>
Co-authored-by: n572770 <[email protected]>
Co-authored-by: xuzhijun <[email protected]>
Co-authored-by: openclaw-mantis[bot] <281431406+openclaw-mantis[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L 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.

1 participant