Repository navigation
refactor: deslop old Apple shared/macOS and Control UI code - #170823
Merged
Merged
Conversation
Replace redundant generations with existing cancellation or actual owner identity, consolidate parallel fallback/policy paths, and remove test-only forwarding layers. Preserve authority, FIFO, durable state, resource bounds, public protocol/config shapes, signing, permissions, and visible rendering. Reuse canonical session-key normalization for Voice Wake delivery selection: opaque Signal group IDs remain case-sensitive and main aliases are not added. Use canonical IP-literal policy for discovery labels and remote CLI validation. Best-effort tradeoffs accepted - Palette generation (#159350): synthetic direct completions bypassed the sole cancellation-owning caller; unsupported future callers can show stale results until the next search. Current cancellation/request/agent checks remain. - Link preview generation (#160710): synthetic URL replacement without caller cancellation is outside the SwiftUI task lifecycle; a late cosmetic result can remain until the next refresh. Network/SSRF checks and bounded caches remain. - Sidebar preview generation (#147197): same-request overlapping cache reads can finish out of order; no linked human failure report, and a later refresh replaces the cosmetic projection. Owner/request checks remain. - Source-preview producer revision (#148906): duplicate of exact task cancellation, with no human failure report. Consumer revision and authenticated resource authority remain. - Mermaid generations (#135470/#135746): feature stress fixtures, no linked human race report. Exact subscriber cancellation and job/WebView identity retain the same admission; no extra failure accepted. - Camera JPEG UUID (#107879): duplicates exact task cancellation; #107804 was a human feature request, not a generation-specific incident. Captured session/agent/route and attachment admission remain. - Discovery generation (#145435): speculative queued callbacks, no linked human incident. A stopped browser may publish one late discovery projection; next discovery/refresh repairs it. Connection authority remains separate. - FSEvents generation (#145453): synthetic stop/restart fixtures, no linked human incident. An old callback after restart may cause one extra refresh; serial lifecycle ownership and pending-work cancellation remain. - Menu generations (#139688): feature-local late-result fixtures, no linked human incident. Exact task cancellation replaces duplicate tokens; drain-before-disconnect and real consumer/window authority remain. - Cron generation (#131466/#137502): #138209 cut every load over to one cancel-and-drain chain. No direct concurrent load caller remains; cancellation and physical source leases stay checked after awaits. - WebChat visibility acknowledgement/retry (#113634/#137089): synthetic timeout/reconnect interleavings, no linked human incident. A timed-out visibility update is best effort until the next transition/reconnect; FIFO and live socket leases remain. - WebChat cleanup UUID (#113634/#137089): retain one bounded completed Task handle per live connection instead of matching cleanup tokens. Completion releases captures; replacement/retirement removes the handle. - Child-exit polling (#145437): synthetic missed-notification coverage, no linked human report. A lost OS exit notification may wait for the existing deadline; final non-reaping liveness/status checks and cleanup remain. - Realtime iterator borrowing trap (#156772): every real consumer awaits its own iterator sequentially. Unsupported concurrent next calls no longer get a custom custody protocol; bounded stream/cancellation/socket checks remain. - Receipt projection admission (#161745): both real callers already match receipt and row identity immediately before synchronous projection. Those effect checks remain; no unsupported internal caller is defended twice. - Recap attribution heuristics (#112188/#113084): synthetic guard matrix, no linked human race report. Missing initial rows or very late unrelated completion may supply a cosmetic footer; per-session freshness, failed-turn handling and settled results remain. - PortGuardian per-write schema scans (#110527): synthetic live-handle version advance, no linked human incident. Concurrent external schema upgrades are best effort until reopen; initial admission, migration locks, receipts, transactions and durability remain. - Unread queue counter (#110019): actual Task equality replaces the duplicate integer token. Exact-tail reclamation, bounded bookkeeping, FIFO and route authority remain unchanged. Review dispositions: the claimed Task compilation failure is disproved by the selected SDK's Equatable conformance and native builds. Repeated receipt identity admission is unnecessary at its internal projector because both real callers retain it immediately before projection. Per-write schema revalidation was declined under the explicit best-effort policy above. Proof and scope Net production reduction: 369 lines (148 added, 517 deleted), excluding tests. Fresh seven-day census permits all substantive production edits; the only recent caller change is the unavoidable one-line fallback-to-parse rename. Shared Swift build passed. Final focused shared tests passed 396 cases in six suites (6.683s execution), Watch decoder tests passed five cases (0.003s), and isolated whole-owner native tests passed 16 cases. macOS SwiftPM compiled all products and the test bundle. Final macOS and iOS/Watch xcodebuild builds passed (89.60s and 120.87s wall), without signing changes or app launches. Canonical Apple lint/format checks passed; the initial iOS format failure in WatchCommands was ours and corrected, with no gate weakened. Lint-suppression tests passed 3/3 (14.09s wall). Earlier runtime cycles and Madge each reported 0; the TypeScript graph is unchanged. Native localization stayed at 4476 entries. The 45 original packaging/elevation timeout cases passed one focused retry (94.79s wall), with no assertion/budget change and no claim of a diagnosed fix. Known gaps: seven issues remained in the earlier ChatStreamReplayTests narration=false package cases; causality/current-main attribution is unproven. App-hosted macOS tests were not executed on the operator desktop. No hosted CI or PR was started: the explicit BELOW-500 rule requires a branch-only handoff.
Share route decoding, attachment retention, gallery preparation, transient identity encoding, override copying, and extension classification. Remove duplicate admission/schema mirrors and obsolete supported-browser fallbacks. Both Lit and Solid paths remain; no rendering change is intended. No config, protocol, persisted shape, dependency, or public SDK change. Best-effort tradeoffs accepted - Malformed internal native requests (#140988): all callers are typed and native hosts validate at the effect; their error replaces the renderer mirror. - Worker replacement during an identity query (#140484): added for synthetic autoreview interleavings, not a human incident. Return false; normal worker announcements and foreground recovery observe the next active worker. - Native readiness changing between synchronous checks (#140484/#109719): rely on queued events. A broken native event can require another worker event or reload; camera readiness retains its existing five-second error deadline. - Overlapping application-root health reporters (#152638): startup mounts one root. Unsupported overlapping roots are last-publication-wins; the actual reported health/status feature and native trusted-document checks remain. - Polling after stop (#139704): its sole owner retires eligibility first. Scheduling now uses that owner admission, not a separate read-only generation. - Resetting an observer without retiring its connection (#116887): no production caller does this. Canonical connection epochs remain the sole retirement owner; unsupported direct live-scope reset no longer fences an old response separately. - Upload policy changing during local reads (#158567): decoded/hash work can finish. Draft publication and every upload request retain live policy checks. - Missing supported browser primitives (#105240/#151388/#100024/#102745): unsupported runtimes error instead of code-point initials, skipped input yield, wall-clock timing, or approximate microtask paint. The human progress-card fix in #151386 keeps its browser yield and durable FIFO handoff unchanged. - URL APIs disappearing after URL creation (#100024/#149330): supported browsers keep paired APIs. An unsupported replaced global can throw during cleanup; undefined URLs, creation fallback, cancellation and release ordering remain. - Malformed internal MCP calls bypassing AppBridge (#161747): may throw. The SDK still rejects malformed wire blocks before dispatch, proved over real in-memory App/AppBridge transport. UI content, authority, confirmation and custody policy remain. The introducing PR cites no human incident for the second mirror. Production: +176/-394, net -218 lines across 21 eligible old files. Tests: +30. Focused owner/sibling tests, targeted types/lint/format, lint-suppression and independent P0-P2 review pass. Import edges are unchanged; runtime/Madge cycle proof remains zero. Whole-tree Knip timed out at existing limits; heavy gallery renderer runs did not reach assertions, while its owning controller suite passed.
The supported Control UI browser floor includes Fetch. Start attachment metadata reads directly rather than leaving an unsupported runtime in a permanent checking state. Best-effort tradeoffs accepted - Missing global Fetch: the guard originated in #64104, whose feature report cites no human missing-Fetch incident. An unsupported runtime that replaces Fetch now reaches the existing rejected-request/unavailable path. Metadata validation, auth/tickets, allow POST, cancellation, resource admission, expiry and bounded retry remain unchanged. No intended rendering change. Unchanged lifecycle baseline: 21/21, 25.09 s. Final lifecycle and attachment siblings: 50/50, 14.77 s. UI types, typed lint, formatting and lint-suppression checks pass. This cut removes five production lines including formatter reflow, bringing the lane to 223 net production lines removed. Fresh independent P0-P2 review is scoped-clean with no actionable findings.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
October 13, 2026 08:24
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Preserve double-frame paint timing and cancellation without requiring a Window object in renderer-free hosts that supply the standard global APIs. The existing access suite reproduces seven unhandled errors before this fix and passes on main; all 130 affected cases plus 262 timing/state/send sibling cases now pass without test changes.
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Oct 13, 2026
* commit '7ae69497bec4d9c37f170f046a3cbbf954ff19a7': (6238 commits) refactor(ui): replace Systems filters with native menu (#170786) fix(browser): browser open honors timeoutMs for its opening navigation (#170053) refactor: deslop old Apple shared/macOS and Control UI code (#170823) perf(memory): reuse pooled origin readers (#170795) fix(crabbox): preserve project snapshots across runtime updates (#170780) fix: prevent chat image loading from shifting messages (#170819) refactor(ui): use native menus for Secret Store actions (#170663) fix(gateway): keep chat metadata available during model reloads (#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (#170807) fix(ci): use smaller runners for selected Gateway client tests (#170821) fix: use same-commit plugins in development macOS builds (#170776) perf(github): share cached reads across sessions and searches (#170825) fix(projects): keep listings stable during unrelated session changes (#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (#170190) perf(sessions): reduce read transaction overhead (#170745) refactor: simplify older plugin and package lifecycles (#170800) ...
steipete
added a commit
that referenced
this pull request
Oct 13, 2026
## What Problem This Solves Scheduled main run [38378024699](https://github.com/openclaw/openclaw/actions/runs/38378024699), macos-swift tests job [115231436768](https://github.com/openclaw/openclaw/actions/runs/38378024699/job/115231436768), reports five issues in three test functions after #170823 (`1e9431b71fea74688132412f995f32cf88ba863e`). The direct-URL test gained IPv4 and IPv4-mapped IPv6 loopback cases, but its persisted-config assertion still expected the first host literal. Match that expectation to each input, preserving the existing command-output, authentication, local-port and SSH-cleanup assertions. The presence tests began passing an optional delivery-state initializer directly through Swift Testing's captured function expression when their forwarding wrapper was removed. The three negative expectations fail with a `()` outer diagnostic and an unevaluated inner call, although the unchanged production predicate returns false for each supplied input. Evaluate the predicate before `#expect`; retain the original throttle, refresh, saturation and keepalive inputs and all five assertions. The exact native replay now passes all original inputs and assertions. Macro/call capture remains the suspected mechanism; this patch does not claim a proven compiler defect. ## Evidence - Two test-only commits, one per root: 2 files, +16/-11 (net +5); no production, security, configuration, timing or timeout changes. - Culprit attribution: #170823 parameterized the URL input without updating the persisted expectation and removed the presence forwarding wrapper without changing the production throttle predicate. - One Codex review per focused commit through P2, within the two-round cap. Both reviews are scoped-clean with no actionable findings. - `git diff --check` passes; normal commit hooks pass. Local tests/builds were not run under compute conservation. Swift format/lint and runtime proof are delegated to CI. - No SQL, request-count or T1 change is claimed; no SQL harness was run. No checks or security boundaries were removed. Update/migration compatibility proof is not applicable. ## Validation Ordinary PR CI passed but omitted Swift. A focused [native replay](https://github.com/openclaw/openclaw/actions/runs/38382317749/job/115245520688) passed on exact candidate `a27178926a65099dd748643746d2964cf7786052`: continuous activity 0.018 seconds, idle keepalive 0.016 seconds, and direct private URL with all three host arguments 0.027 seconds; three tests/two suites passed in 0.029 seconds, launcher exit 0. Source and test blobs were recorded before execution. The proof used the canonical disposable `xcode-27` macOS runner, `scripts/lib/swift-toolchain.sh` to select `/Applications/Xcode.app`, and the locked native asset preparation from CI. Required toolchain is Swift 6.3+ / Xcode 26.4+. ```bash swift build --package-path apps/macos --build-system native \ --enable-code-coverage --disable-index-store -Xswiftc -gline-tables-only --build-tests node scripts/test-macos-native.mts default \ --package-path apps/macos --build-system native \ --enable-code-coverage --disable-index-store -Xswiftc -gline-tables-only --skip-build \ --filter 'MacNodePresenceReporterTests/`(continuous activity is throttled and then refreshed|idle presence gets a sparse keepalive)`|ConfigureRemoteCommandTests/`configure remote can write direct private url`' ``` The filter selects only the three failing functions, including all three direct-host arguments. The native launcher owns the isolated home, profile, state and keychain; it must run on disposable macOS CI, never on an operator desktop. No local native build or test ran. The temporary proof workflow is not part of this PR.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
…#170823) * refactor(apple): simplify old shared and macOS bookkeeping Replace redundant generations with existing cancellation or actual owner identity, consolidate parallel fallback/policy paths, and remove test-only forwarding layers. Preserve authority, FIFO, durable state, resource bounds, public protocol/config shapes, signing, permissions, and visible rendering. Reuse canonical session-key normalization for Voice Wake delivery selection: opaque Signal group IDs remain case-sensitive and main aliases are not added. Use canonical IP-literal policy for discovery labels and remote CLI validation. Best-effort tradeoffs accepted - Palette generation (openclaw#159350): synthetic direct completions bypassed the sole cancellation-owning caller; unsupported future callers can show stale results until the next search. Current cancellation/request/agent checks remain. - Link preview generation (openclaw#160710): synthetic URL replacement without caller cancellation is outside the SwiftUI task lifecycle; a late cosmetic result can remain until the next refresh. Network/SSRF checks and bounded caches remain. - Sidebar preview generation (openclaw#147197): same-request overlapping cache reads can finish out of order; no linked human failure report, and a later refresh replaces the cosmetic projection. Owner/request checks remain. - Source-preview producer revision (openclaw#148906): duplicate of exact task cancellation, with no human failure report. Consumer revision and authenticated resource authority remain. - Mermaid generations (openclaw#135470/openclaw#135746): feature stress fixtures, no linked human race report. Exact subscriber cancellation and job/WebView identity retain the same admission; no extra failure accepted. - Camera JPEG UUID (openclaw#107879): duplicates exact task cancellation; openclaw#107804 was a human feature request, not a generation-specific incident. Captured session/agent/route and attachment admission remain. - Discovery generation (openclaw#145435): speculative queued callbacks, no linked human incident. A stopped browser may publish one late discovery projection; next discovery/refresh repairs it. Connection authority remains separate. - FSEvents generation (openclaw#145453): synthetic stop/restart fixtures, no linked human incident. An old callback after restart may cause one extra refresh; serial lifecycle ownership and pending-work cancellation remain. - Menu generations (openclaw#139688): feature-local late-result fixtures, no linked human incident. Exact task cancellation replaces duplicate tokens; drain-before-disconnect and real consumer/window authority remain. - Cron generation (openclaw#131466/openclaw#137502): openclaw#138209 cut every load over to one cancel-and-drain chain. No direct concurrent load caller remains; cancellation and physical source leases stay checked after awaits. - WebChat visibility acknowledgement/retry (openclaw#113634/openclaw#137089): synthetic timeout/reconnect interleavings, no linked human incident. A timed-out visibility update is best effort until the next transition/reconnect; FIFO and live socket leases remain. - WebChat cleanup UUID (openclaw#113634/openclaw#137089): retain one bounded completed Task handle per live connection instead of matching cleanup tokens. Completion releases captures; replacement/retirement removes the handle. - Child-exit polling (openclaw#145437): synthetic missed-notification coverage, no linked human report. A lost OS exit notification may wait for the existing deadline; final non-reaping liveness/status checks and cleanup remain. - Realtime iterator borrowing trap (openclaw#156772): every real consumer awaits its own iterator sequentially. Unsupported concurrent next calls no longer get a custom custody protocol; bounded stream/cancellation/socket checks remain. - Receipt projection admission (openclaw#161745): both real callers already match receipt and row identity immediately before synchronous projection. Those effect checks remain; no unsupported internal caller is defended twice. - Recap attribution heuristics (openclaw#112188/openclaw#113084): synthetic guard matrix, no linked human race report. Missing initial rows or very late unrelated completion may supply a cosmetic footer; per-session freshness, failed-turn handling and settled results remain. - PortGuardian per-write schema scans (openclaw#110527): synthetic live-handle version advance, no linked human incident. Concurrent external schema upgrades are best effort until reopen; initial admission, migration locks, receipts, transactions and durability remain. - Unread queue counter (openclaw#110019): actual Task equality replaces the duplicate integer token. Exact-tail reclamation, bounded bookkeeping, FIFO and route authority remain unchanged. Review dispositions: the claimed Task compilation failure is disproved by the selected SDK's Equatable conformance and native builds. Repeated receipt identity admission is unnecessary at its internal projector because both real callers retain it immediately before projection. Per-write schema revalidation was declined under the explicit best-effort policy above. Proof and scope Net production reduction: 369 lines (148 added, 517 deleted), excluding tests. Fresh seven-day census permits all substantive production edits; the only recent caller change is the unavoidable one-line fallback-to-parse rename. Shared Swift build passed. Final focused shared tests passed 396 cases in six suites (6.683s execution), Watch decoder tests passed five cases (0.003s), and isolated whole-owner native tests passed 16 cases. macOS SwiftPM compiled all products and the test bundle. Final macOS and iOS/Watch xcodebuild builds passed (89.60s and 120.87s wall), without signing changes or app launches. Canonical Apple lint/format checks passed; the initial iOS format failure in WatchCommands was ours and corrected, with no gate weakened. Lint-suppression tests passed 3/3 (14.09s wall). Earlier runtime cycles and Madge each reported 0; the TypeScript graph is unchanged. Native localization stayed at 4476 entries. The 45 original packaging/elevation timeout cases passed one focused retry (94.79s wall), with no assertion/budget change and no claim of a diagnosed fix. Known gaps: seven issues remained in the earlier ChatStreamReplayTests narration=false package cases; causality/current-main attribution is unproven. App-hosted macOS tests were not executed on the operator desktop. No hosted CI or PR was started: the explicit BELOW-500 rule requires a branch-only handoff. * refactor(ui): consolidate old UI owners and validation Share route decoding, attachment retention, gallery preparation, transient identity encoding, override copying, and extension classification. Remove duplicate admission/schema mirrors and obsolete supported-browser fallbacks. Both Lit and Solid paths remain; no rendering change is intended. No config, protocol, persisted shape, dependency, or public SDK change. Best-effort tradeoffs accepted - Malformed internal native requests (openclaw#140988): all callers are typed and native hosts validate at the effect; their error replaces the renderer mirror. - Worker replacement during an identity query (openclaw#140484): added for synthetic autoreview interleavings, not a human incident. Return false; normal worker announcements and foreground recovery observe the next active worker. - Native readiness changing between synchronous checks (openclaw#140484/openclaw#109719): rely on queued events. A broken native event can require another worker event or reload; camera readiness retains its existing five-second error deadline. - Overlapping application-root health reporters (openclaw#152638): startup mounts one root. Unsupported overlapping roots are last-publication-wins; the actual reported health/status feature and native trusted-document checks remain. - Polling after stop (openclaw#139704): its sole owner retires eligibility first. Scheduling now uses that owner admission, not a separate read-only generation. - Resetting an observer without retiring its connection (openclaw#116887): no production caller does this. Canonical connection epochs remain the sole retirement owner; unsupported direct live-scope reset no longer fences an old response separately. - Upload policy changing during local reads (openclaw#158567): decoded/hash work can finish. Draft publication and every upload request retain live policy checks. - Missing supported browser primitives (openclaw#105240/openclaw#151388/openclaw#100024/openclaw#102745): unsupported runtimes error instead of code-point initials, skipped input yield, wall-clock timing, or approximate microtask paint. The human progress-card fix in openclaw#151386 keeps its browser yield and durable FIFO handoff unchanged. - URL APIs disappearing after URL creation (openclaw#100024/openclaw#149330): supported browsers keep paired APIs. An unsupported replaced global can throw during cleanup; undefined URLs, creation fallback, cancellation and release ordering remain. - Malformed internal MCP calls bypassing AppBridge (openclaw#161747): may throw. The SDK still rejects malformed wire blocks before dispatch, proved over real in-memory App/AppBridge transport. UI content, authority, confirmation and custody policy remain. The introducing PR cites no human incident for the second mirror. Production: +176/-394, net -218 lines across 21 eligible old files. Tests: +30. Focused owner/sibling tests, targeted types/lint/format, lint-suppression and independent P0-P2 review pass. Import edges are unchanged; runtime/Madge cycle proof remains zero. Whole-tree Knip timed out at existing limits; heavy gallery renderer runs did not reach assertions, while its owning controller suite passed. * refactor(ui): remove obsolete Fetch capability branch The supported Control UI browser floor includes Fetch. Start attachment metadata reads directly rather than leaving an unsupported runtime in a permanent checking state. Best-effort tradeoffs accepted - Missing global Fetch: the guard originated in openclaw#64104, whose feature report cites no human missing-Fetch incident. An unsupported runtime that replaces Fetch now reaches the existing rejected-request/unavailable path. Metadata validation, auth/tickets, allow POST, cancellation, resource admission, expiry and bounded retry remain unchanged. No intended rendering change. Unchanged lifecycle baseline: 21/21, 25.09 s. Final lifecycle and attachment siblings: 50/50, 14.77 s. UI types, typed lint, formatting and lint-suppression checks pass. This cut removes five production lines including formatter reflow, bringing the lane to 223 net production lines removed. Fresh independent P0-P2 review is scoped-clean with no actionable findings. * fix(ui): use global frame scheduling APIs Preserve double-frame paint timing and cancellation without requiring a Window object in renderer-free hosts that supply the standard global APIs. The existing access suite reproduces seven unhandled errors before this fix and passes on main; all 130 affected cases plus 262 timing/state/send sibling cases now pass without test changes.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 14, 2026
## What Problem This Solves Scheduled main run [38378024699](https://github.com/openclaw/openclaw/actions/runs/38378024699), macos-swift tests job [115231436768](https://github.com/openclaw/openclaw/actions/runs/38378024699/job/115231436768), reports five issues in three test functions after openclaw#170823 (`ff203514f5a27662658d66ed6c815d978137d7c2`). The direct-URL test gained IPv4 and IPv4-mapped IPv6 loopback cases, but its persisted-config assertion still expected the first host literal. Match that expectation to each input, preserving the existing command-output, authentication, local-port and SSH-cleanup assertions. The presence tests began passing an optional delivery-state initializer directly through Swift Testing's captured function expression when their forwarding wrapper was removed. The three negative expectations fail with a `()` outer diagnostic and an unevaluated inner call, although the unchanged production predicate returns false for each supplied input. Evaluate the predicate before `#expect`; retain the original throttle, refresh, saturation and keepalive inputs and all five assertions. The exact native replay now passes all original inputs and assertions. Macro/call capture remains the suspected mechanism; this patch does not claim a proven compiler defect. ## Evidence - Two test-only commits, one per root: 2 files, +16/-11 (net +5); no production, security, configuration, timing or timeout changes. - Culprit attribution: openclaw#170823 parameterized the URL input without updating the persisted expectation and removed the presence forwarding wrapper without changing the production throttle predicate. - One Codex review per focused commit through P2, within the two-round cap. Both reviews are scoped-clean with no actionable findings. - `git diff --check` passes; normal commit hooks pass. Local tests/builds were not run under compute conservation. Swift format/lint and runtime proof are delegated to CI. - No SQL, request-count or T1 change is claimed; no SQL harness was run. No checks or security boundaries were removed. Update/migration compatibility proof is not applicable. ## Validation Ordinary PR CI passed but omitted Swift. A focused [native replay](https://github.com/openclaw/openclaw/actions/runs/38382317749/job/115245520688) passed on exact candidate `a27178926a65099dd748643746d2964cf7786052`: continuous activity 0.018 seconds, idle keepalive 0.016 seconds, and direct private URL with all three host arguments 0.027 seconds; three tests/two suites passed in 0.029 seconds, launcher exit 0. Source and test blobs were recorded before execution. The proof used the canonical disposable `xcode-27` macOS runner, `scripts/lib/swift-toolchain.sh` to select `/Applications/Xcode.app`, and the locked native asset preparation from CI. Required toolchain is Swift 6.3+ / Xcode 26.4+. ```bash swift build --package-path apps/macos --build-system native \ --enable-code-coverage --disable-index-store -Xswiftc -gline-tables-only --build-tests node scripts/test-macos-native.mts default \ --package-path apps/macos --build-system native \ --enable-code-coverage --disable-index-store -Xswiftc -gline-tables-only --skip-build \ --filter 'MacNodePresenceReporterTests/`(continuous activity is throttled and then refreshed|idle presence gets a sparse keepalive)`|ConfigureRemoteCommandTests/`configure remote can write direct private url`' ``` The filter selects only the three failing functions, including all three direct-host arguments. The native launcher owns the isolated home, profile, state and keychain; it must run on disposable macOS CI, never on an operator desktop. No local native build or test ran. The temporary proof workflow is not part of this PR.
vincentkoc
added a commit
that referenced
this pull request
Oct 18, 2026
* feat(qa): report scorecard evidence gaps Distinguish catalog coverage, recorded attempts, and qualified evidence without changing scores or release gates. Include the canonical compatibility migration-status correction from ec1fb60. Co-authored-by: Patrick Erichsen <[email protected]> * chore(qa): drop compatibility backport already on main Keep the QA evidence-gap change scoped to its 13 paths. The canonical compatibility correction ec1fb60 and later refinements are already on main; restore the six branch preimages so the merge consumes that upstream owner state. * chore(qa): integrate canonical worker settlement fixes * commit '7ae69497bec4d9c37f170f046a3cbbf954ff19a7': (6238 commits) refactor(ui): replace Systems filters with native menu (#170786) fix(browser): browser open honors timeoutMs for its opening navigation (#170053) refactor: deslop old Apple shared/macOS and Control UI code (#170823) perf(memory): reuse pooled origin readers (#170795) fix(crabbox): preserve project snapshots across runtime updates (#170780) fix: prevent chat image loading from shifting messages (#170819) refactor(ui): use native menus for Secret Store actions (#170663) fix(gateway): keep chat metadata available during model reloads (#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (#170807) fix(ci): use smaller runners for selected Gateway client tests (#170821) fix: use same-commit plugins in development macOS builds (#170776) perf(github): share cached reads across sessions and searches (#170825) fix(projects): keep listings stable during unrelated session changes (#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (#170190) perf(sessions): reduce read transaction overhead (#170745) refactor: simplify older plugin and package lifecycles (#170800) ... * fix(gateway): preserve safe previews and no-op bindings Clear only the matching pending binding operation after an authoritative unchanged settlement, preserving committed and unknown invalidation fences. Include the canonical managed-media preview correction from 47ba0ae. Co-authored-by: Peter Steinberger <[email protected]> * merge(main): reconcile QA reporting with frozen main * test(gateway): verify retained route authority after binding settlement Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 18, 2026
* feat(qa): report scorecard evidence gaps Distinguish catalog coverage, recorded attempts, and qualified evidence without changing scores or release gates. Include the canonical compatibility migration-status correction from 3f6d26f. Co-authored-by: Patrick Erichsen <[email protected]> * chore(qa): drop compatibility backport already on main Keep the QA evidence-gap change scoped to its 13 paths. The canonical compatibility correction 3f6d26f and later refinements are already on main; restore the six branch preimages so the merge consumes that upstream owner state. * chore(qa): integrate canonical worker settlement fixes * commit '4ae87487b6eca95ac58a2f18de0e742b240772eb': (6238 commits) refactor(ui): replace Systems filters with native menu (openclaw#170786) fix(browser): browser open honors timeoutMs for its opening navigation (openclaw#170053) refactor: deslop old Apple shared/macOS and Control UI code (openclaw#170823) perf(memory): reuse pooled origin readers (openclaw#170795) fix(crabbox): preserve project snapshots across runtime updates (openclaw#170780) fix: prevent chat image loading from shifting messages (openclaw#170819) refactor(ui): use native menus for Secret Store actions (openclaw#170663) fix(gateway): keep chat metadata available during model reloads (openclaw#170805) fix: preserve diagnostics for unresponsive state lease heartbeats (openclaw#170835) fix(test): prepare runtime config for corpus revision proof test: give credential fixtures database ownership perf(auth): unblock session writes during health preparation (openclaw#170807) fix(ci): use smaller runners for selected Gateway client tests (openclaw#170821) fix: use same-commit plugins in development macOS builds (openclaw#170776) perf(github): share cached reads across sessions and searches (openclaw#170825) fix(projects): keep listings stable during unrelated session changes (openclaw#170824) fix(update): update repair fails after Doctor completes on busy macOS hosts (openclaw#170779) fix(heartbeat): suppress truncated NO_REPLY finals such as NO_R (openclaw#170190) perf(sessions): reduce read transaction overhead (openclaw#170745) refactor: simplify older plugin and package lifecycles (openclaw#170800) ... * fix(gateway): preserve safe previews and no-op bindings Clear only the matching pending binding operation after an authoritative unchanged settlement, preserving committed and unknown invalidation fences. Include the canonical managed-media preview correction from f3260b9. Co-authored-by: Peter Steinberger <[email protected]> * merge(main): reconcile QA reporting with frozen main * test(gateway): verify retained route authority after binding settlement Co-authored-by: Patrick Erichsen <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Simplifies older Apple and Control UI code by removing redundant bookkeeping and consolidating parallel implementations, under the old-code cleanup campaign.
User Impact
No visual change is intended. Existing features, Gateway/config/persisted shapes, security boundaries, FIFO ordering, durable writes, signing and permissions remain intact. Voice Wake now respects opaque Signal group-ID case, without introducing main-session aliases; discovery and remote configuration reuse canonical loopback policy.
Why This Change Was Made
The Apple portion replaces duplicate generations with existing cancellation or actual owner identity, consolidates process-exit/fallback/encoding paths, removes internal validation repeated at already-admitted callers, and deletes test-only forwarding layers. The Control UI portion shares route decoding, attachment preparation, participant identity and copy-on-write override paths; it removes duplicate native/SDK validation and obsolete browser fallbacks.
Combined production delta: 427 added / 1,019 deleted = 592 net lines removed, excluding tests, fixtures, test support and generated files. This combines lane o02's 369-line Apple cut with lane o01's 223-line Control UI cut, plus the zero-net three-line CI repair below. Credit to lane o01: its two signed commits were cherry-picked intact in substance from
deslop/o01-ui-20261013(8082c0789f2,cdc7b4edf81), preserving Peter Steinberger's authorship. Both lanes completed the required three-hour implementation/audit period; the coordinator explicitly authorized this combined sub-1,000-line PR.Fresh origin/main seven-day census admits all substantive production edits. The only recent production caller is the unavoidable one-line
fallback→parserename inTalkModeRuntime+Realtime.swift; recently changed tests are exempt. No CHANGELOG, audit, PR-tooling, dependency, schema/durability/retention/permission or protocol changes.Best-effort tradeoffs accepted
Provenance below names the introducing/retaining PRs. Synthetic repros, agent review and hypothetical races are not represented as human production incidents.
nextcalls lose the custom custody trap. Bounded stream/cancellation/socket checks remain.Evidence
Proof
All local runtime/build proof uses task-owned HOME, OpenClaw state/config and XDG directories; no operator Gateway/state, native app launch, VM or remote runner was used. Native builds ran sequentially, without signing overrides.
Earlier local failures remain visible, not called repaired because a replay passes: 45 Apple packaging/elevation timeout cases passed one focused retry (94.79s wall); o01's whole-tree Knip scans reached their unchanged 600-second deadline, and two heavy gallery renderer runs reached the unchanged no-output watchdog. The gallery pure-owner 9/9 proof passed. These are recorded load/tooling gaps, not unproved main-red claims. Ordinary hosted CI on the exact head remains the broad gate; no reruns for green.
Replay attribution: at combined head
bc4d62cd1875c42579a19819285bf16ced46129e, all four cases of the previously failing hosted same-text test pass (0.838s execution, 12.58s wall), and the complete ChatStreamReplayTests suite passes 19 tests (3.448s execution, 8.78s wall). Pinned maine400b3a727calso passes the complete identical suite, including all four formerly failing parameter cases (3.372s execution, 373.72s cold build-inclusive wall). Both runs use SwiftPM--no-parallel, the supported native equivalent of a single-worker test invocation, with the same isolated environment and unchanged assertions. The earlier seven assertion issues are therefore unreproduced on both revisions, not a claimed fix or an established main-red failure. Main's initial missing-generator/relocated-cache setup errors occurred before tests; the fresh-scratch run passed.Fresh combined independent P0–P2 review completed with one P2 finding, declined after source verification: it alleged already-ready camera previews would wait for loadeddata, but the public capture function already checks readyState and calls the private wait helper only when data is not ready (video.ts:18–19), with synchronous listener registration. Already-ready previews bypass the helper. No additional JS-yield race is introduced; the exotic native missed-event case is explicitly accepted above. No rerun sought a cleaner verdict. Earlier Apple review dispositions (Task Equatable compiler evidence, duplicate receipt admission, and per-write schema checks) remain recorded in the Apple commit.
Coordinator ruling: the local macOS, iOS and embedded Watch builds, 396 shared tests, 5 Watch tests and 16 pure-owner tests above are the Apple proof. They cover this exact head's Swift files, unchanged since those runs. Hosted Apple build jobs are not part of ordinary PR CI: its manifest intentionally defers macOS Swift and iOS build/simulator jobs (documented in
docs/ci/scope-and-routing/selection.md). No hosted Apple pass is claimed. Norelease_gatedispatch is authorized or needed. After repairing the three PR-caused unit-shard failures below, landing waits for ordinary PR CI on replacement exact head9d12ee84b8747c2febae7789e8285a22afc1439c, with each failing job attributed individually and inherited-only reds handled through the native admin exception and an evidence comment.CI repair and attribution
Original-head CI run 38369067804 exposed a PR-caused platform-owner assumption in the paint helper. All three UI unit shards completed their test assertions but failed on unhandled
window is not definederrors: job 115201808099 (checks-ui (1/3)) had 7, job 115201808183 (checks-ui (2/3)) had 74, and job 115201808065 (checks-ui (3/3)) had 7. Every exception reaches changedperformance.ts:34through the renderer-free host's afterCommit effect. Existing Node send fixtures intentionally provide global frame APIs without Window; requiringwindow.requestAnimationFramewas ours, not an inherited CI failure.Focused reproduction at the original head: access suite 17 assertions passed plus 7 unhandled errors, exit 1, 76.17s Vitest. Pinned main
e400b3a727c: same suite 17/17 passed, 20.64s. Three-line source repair9d12ee84b87uses standard globalrequestAnimationFrame/cancelAnimationFramedirectly, retaining double-frame timing and cancellation without restoring a missing-browser fallback. No test changed. All nine affected suites pass 130/130 (25.56s); chat timing/state/send siblings pass 262/262 (37.05s); UI typecheck, type-aware lint, formatting and suppressions 3/3 (31.98s wrapper wall) pass. Independent P0–P2 review of this exact local delta completed scoped-clean; no later source edit. Import edges and all Swift files remain unchanged, so cycle and accepted Apple proof remain valid. Replacement-head CI is required because this is a real source fix, not a green-chasing re-push.PR-context run 38369733797 failed because our body temporarily renamed the required Evidence heading to Proof. Corrected to Evidence > Proof; automatic subsequent run 38369906156 passed without a rerun or push. Historical cancelled PR context, ClawSweeper dispatch and auto-response jobs were superseded PR-target automation, not cancelled test suites.