Skip to content

fix(desktop): retain stream close diagnostics - #137787

Merged
steipete merged 4 commits into
mainfrom
codex/node-stream-close-diagnostics
Sep 4, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/node-stream-close-diagnostics

Conversation

@steipete

@steipete steipete commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to merged #136297 and #137724.

Additional instructions

MUST: Keep Allow edits from maintainers enabled.

Scope and current status

Current head: 44b5327584e87e430e66962cacbb0c2f4dba5b49; the preceding runtime candidate 6668d8a2 was refreshed over main 94268df40516d5e83bd52a0131e6f74d59ab519f. Repairs cover stream diagnostics, Mac snapshot mounting, and a newer-main test-only reconnect race. The original intermittent Mac stream loss and earlier wrong-marker response remain unexplained.

Current-head CI passed on 44b53275. The 111 successful first-attempt jobs and 14 skips were preserved; only two unassigned, zero-step Swift jobs and their dependent rollup were canceled. Failed-only attempt 2 passed both native jobs on hosted macOS 26, including the full app test step. The required openclaw/ci-gate check completed successfully at 08:19:02 UTC. Two separate optional shared-kit Periphery scans remain queued; they are not represented as completed proof.

CI attempt 3 on 6668d8a2 failed at SettingsWindowLayoutTests.swift:68: the pre-tab NSScrollView was nil after resize. The Swift Testing portion passed 2,082 tests in 218 suites, including SkillsOwnership and all three Cron cases. The release build and OpenClawKit passed earlier. Attempt 2's initial 2-second Cron readiness failure occurred before its cancellation branch; Cron passed unchanged on attempt 3, with no Cron fix.

The three-line, test-only follow-up uses the existing waitForLayout predicate for detail-view presence after setContentSize, before sampling the previous view identity. It changes no production code, assertion, or timeout. The local changed gate, SwiftFormat, and strict SwiftLint passed; independent P0–P2 review found no actionable findings (confidence 0.96). Native CI on 44b53275 passed. The original ordered settings pair passed (3.042 seconds and 5.903 seconds), with all four app XCTest cases green. The app Swift Testing run passed 2,082 tests in 218 suites, followed by both isolated AppState cases; Skills ownership and all three Cron replacement-refresh cases passed. OpenClawKit passed 1,627 Swift Testing cases in 124 suites. CI tested merge 61f021b80cf49c366ab812485d493ee24e9140e9, combining this head with main 0d2169fdabc48931e666ab227daca779fa9cba65. The live proof below belongs to its explicitly named runtime candidate; the only change since that proof is this test synchronization.

Repairs and ownership

Teardown lost the observed WebSocket close code and preceding cleanup decision. The node transport now retains its first cleanup trigger; the broker records known attach rejection/socket error; the observer replaces its closed boolean with its first trigger and requested cleanup code. Each owning socket logs its actual close code once, separately from requested cleanup.

Forwarding, authentication, keepalive, backpressure, outcomes, and cleanup order are unchanged. No transport retries, timeouts, configuration, protocol fields, persistence, or alternative paths were added. Logs omit peer prose, credentials, tickets, tokens, and desktop payloads.

Installed ws 8.21.3 was inspected and its stream wrapper matched byte-for-byte to immutable upstream source: WebSocket close produces Duplex EOF, while consumer destruction can terminate the socket. Code 1006 alone therefore does not establish failure or proxy fault; the docs explain this.

On external APFS, hdiutil attach rejected a checkout-local authenticated snapshot mount; the same image mounted read-only in Darwin temporary storage. The Swift controller now owns one private root from getconf DARWIN_USER_TEMP_DIR, passing identical architecture paths to build/cleanup. Images, outputs, and atomic staging stay on the checkout volume. Authentication, read-only mounting, process cleanup, and signing remain mandatory; uncertain cleanup retains paths and locks.

The newer-main Swift test requested a lease after reconnect started but before disconnect cleanup finished. A shared fixture wait now observes an admitted replacement across sibling paths, preserving the 2-second bound, 5 ms cadence, route identity, and install assertions. Production safety is unchanged. The failed merge-tree CI run is retained; its test arrived through #137502 and was absent from bare 618bce0a.

At 44b53275, the 13-file delta is production +121/-29 (net +92), tests +301/-38 (net +263), docs +12/-3 (net +9). The layout repair adds three test lines over 6668d8a2; all production and documentation bytes are unchanged. Growth supplies three-owner diagnostics (+84) and mount ownership (+8). The Swift fixture adds 15 net test lines, no production lines; the original 11 files are byte-identical to 618bce0a.

Validation and review

Both TLS/proxy close regressions failed before repair; the initial zero-case filter is excluded. 84 real-socket cases passed on unchanged 6668d8a2: desktop/portal, TLS/proxy, explicit/abrupt close, abort, backpressured EOF, view-only filtering, cancellation, and concurrent observers. The pre-fix mount regression failed; 85 packaging tests passed, including cancellation, wrong-source, and cleanup failure. The real snapshot helper verified authenticated synthetic source, read-only mount, and cleanup.

At 6668d8a2, the local changed gate passed 1,090 tests/20 files, types, lint, and guards; independent P0–P2 review found no actionable findings. After an installed Bash 5.3.15 heredoc_write stall matching the upstream Darwin report, validation used a task-local build with its supported 512-byte cap; 24 byte-exact shell checks passed. Installed shell, assertions, and deadlines stayed unchanged; failures remain recorded.

The latest ClawSweeper review found no introduced defect at 6668d8a2; its missing ws inspection is supplied above. Its serialized-state flag concerns temporary storage: peekaboo-commit/cleanup-complete bytes and consumer are unchanged. scripts/build-mac-swift.mts removes verified mounts, retaining uncertain cleanup. No runtime store/schema/format/upgrade contract changes; no migration is needed. The dependency inspection above and successful required exact-head CI satisfy the Rank-up requests. Independent reviews found no actionable P0–P2 defects; the earlier bot confidence label is not claimed to have changed.

Fresh integration: 6668d8a2 Gateway / 618bce0a native app

The full canonical Gateway build/install was accepted at 6668d8a2, with retained 618bce0a native app. Two real turns each made one screenshot call and returned the correct requested witness. Both actual 1024×768 tool images were visually checked. Placement and reported worker-bundle identity stayed unchanged; sampled authority state was empty between turns and before/after normal reclamation.

The UI showed the second turn as active, then completed with “Done in 25 seconds.” Normal WebVNC Back navigation, manual ScreenSharing reauthentication, and a new viewer returned a fresh locked desktop at 07:07 UTC, after normal idle lock. This smoke is screenshot-only. Two initial optional physical probes failed. A corrected read-only probe subsequently matched the installed native app markers and public device identity, and both exact native launch/turn journals were completed. The expected worker cache path was absent after reclamation; the cause is unobserved. A later exact-PID observation found both recorded turn workers absent and their original supervisor still present with a matching start time. Independent worker-bundle hashing, descendant-process cleanup, and temporary-state absence remain unverified. No native VNC client was used.

A later long-lived viewer check found a real disconnect. A bounded read of the actual installed 618bce0a native log, with log/app/node identities checked before and after, found websocket-close/1006 at 07:33:19.001 UTC. The Gateway broker recorded websocket-close/1006 at 07:33:19.176, then the observer recorded stream-close/1000 at 07:33:19.177. No owner-abort, target-close, or error trigger was recorded. Neither the native nor Gateway socket's close initiator is established by these records or their timestamp order.

Source inspection confirmed that the explicit zero invoke timeout disables expiry on this stream path and that the RFB timeout covers only its handshake. No speculative timer or transport fix was made. Normal Reconnect restored a fresh locked desktop in the same viewer at 07:58, without password re-entry or native supervisor restart. This demonstrates recovery after an observed interruption, not uninterrupted long-lived viewer reliability.

Earlier complete OS proof: 618bce0a

The clean 618bce0a Intel build passed snapshot mounting, worker readiness, and strict deep signing verification. Archive hash/content/mode/link checks verified transfer and installed identities; Accessibility and Screen Recording grants survived.

Normal WebVNC Back navigation at 2026-09-04 04:17:34 UTC produced one record at each owner:

Owner First trigger Observed close Requested cleanup
Desktop observer browser-close 1001 1000
Node-stream broker websocket-close 1006 —
Native node stream websocket-close 1006 —

Fresh log identities/offsets bound these records. Without a common stream ID, this is correlation for one controlled observer and verified processes/builds. Reattachment produced a fresh frame; the original intermittent close initiator remains unknown.

Mac: two turns completed 14 computer actions. Both fresh prompts reached outbound input; all 16 responses, including arguments/text/deltas, matched normalized output. Passive WebVNC and stable readback showed both markers once and preserved the 229-byte prefix. Final file: 265 bytes, SHA-256 e8dbe4f0065d0b7a8c5508ab8f269174a3e1bdd604d78a9d0223a419de73ea1d.

Mac projections capped at 512 items; fresh prompts were captured separately, but 24 older-context items lack projections despite complete-send hashes. Full requests do not prove incremental continuation or complete historical-context fidelity. An earlier eight-call turn chose and reported a historical marker: that proof remains failed and unexplained; the successful pair does not establish its cause.

Before the Gateway refresh, WebVNC canvas input unlocked the idle Mac and a view-only frame preserved the document/markers. The first textarea attempt had no visible success; its cause remains unknown.

Windows: the same logical session/history continued after Mac reclamation: 2 native exec + 13 computer calls, 15 successful tool calls, two final replies across two turns. All 410 history messages were covered; 17 raw responses matched normalized output with zero gaps/mismatches. Full initial histories do not prove incremental continuation. Passive WebVNC confirmed markers and counter 1→2. Fixture process/journal stayed intact: no reset, correction, replay, or device/placement change.

Both Windows files were 322 bytes; their recorded SHA-256 digests matched byte-for-byte after normal reclamation into the canonical workspace, with no pending authorities/claims. Captures were removed; all 17 Windows responses preceded the original 15-minute cutoff. Reclaim exited/joined successfully; Crabbox reports released/cleanup complete, without independent AWS inventory proof. The Mac and dedicated host remain retained.

Historical failures and follow-ups

The separate 618b hosted run passed both Swift jobs. Its UI shard passed on retry; four failures remained in attempt 2:

  • Advisory request timeout: incomplete audit, not a vulnerability finding or clean audit. Current main refresh includes canonical retry/backoff #137825.
  • Chrome MCP timeout: package download completed but npm audit settlement remained pending; inspected npm code awaits acquisition before launch. Acquisition is implicated, not proved the sole blocker. Current refresh includes CI prewarm #137711; the cold run does not represent that environment.
  • Android unexpected request: the unchanged 30-test class passed locally on Mac, but whether Linux saw delayed construction traffic or forbidden new admission remains unproven. The proposed assertion repair remains unapplied.
  • Gateway rollback timeout: the original 214-file/two-configuration shard passed on Mac (2,963 tests) with original cap/order/assertions/deadlines and stage-only diagnostics. Neither Linux timeout nor its pending await was reproduced; no repair is proved.

Follow-ups: Cron initial readiness (passed unchanged on attempt 3; cause unproven), Gateway timeout, Android admission, runtime cold starts, malformed successful npm advisory responses (distinct from timeout), and UI animation synchronization. Optional tool-argument padding optimization remains deferred: the actual auth/route binding was not established, so no schema or auth changes were made. Historical failures remain recorded.

Record the first local cleanup trigger separately from the observed WebSocket close code across observer, broker, and node transport owners. Preserve existing teardown and omit peer reason text, tickets, credentials, and frame payloads.
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: M maintainer Maintainer-authored PR labels Sep 4, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 2:47 AM ET / 06:47 UTC.

ClawSweeper review

What this changes

The PR records bounded close diagnostics at desktop stream owners, moves macOS read-only snapshot mounts to private temporary storage, and removes a reconnect race from a macOS test fixture.

Merge readiness

⛔ Blocked before merge - 4 items remain

No introduced correctness or security defect was found. This maintainer-authored PR remains on the normal merge path because exact-head CI is incomplete and the ws close-code contract could not be independently checked in the partial checkout.

Priority: P3
Reviewed head: 6668d8a26a206540906ac957a290cdc26a0693a8

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The owner-local implementation and boundary coverage are coherent, with dependency-contract verification and complete exact-head CI still outstanding.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the contributor proof gate; the supplied earlier byte-identical diagnostic head also documents a real WebVNC close trace.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the contributor proof gate; the supplied earlier byte-identical diagnostic head also documents a real WebVNC close trace.
Evidence reviewed 6 items Observer owner boundary: The observer records its first local cleanup trigger and requested code before teardown, then logs the observed WebSocket close code after close; the registry still validates source epoch before an observer is attached.
Node transport and broker coverage: The node transport preserves the first terminal trigger across abort, target, WebSocket, and splice paths; the broker logs only stream kind, node/connection identity, trigger, and close code after upgrade.
Boundary-level regression coverage: Changed tests use local WebSocket/TCP peers for normal, abrupt, and owner-driven closure and assert that close reasons, tickets, URLs, payloads, and fixture credentials are absent from diagnostic records.
Findings None None.
Security None None.

How this fits together

Desktop observers, paired nodes, and the Gateway broker jointly relay desktop streams; this change makes their terminal cleanup observable without logging sensitive transport data. Separately, the macOS packaging controller creates authenticated source snapshots and now mounts them outside the checkout before cleaning them up.

flowchart LR
  Browser[Desktop browser panel] --> Observer[Gateway observer]
  Node[Paired node] --> Transport[Node stream transport]
  Transport --> Broker[Gateway stream broker]
  Observer --> Diagnostics[Bounded close diagnostics]
  Broker --> Diagnostics
  Transport --> Diagnostics
  MacBuild[macOS build controller] --> TempMount[Private snapshot mount]
Loading

Before merge

  • Resolve merge risk (P1) - The PR relies on ws 8.21.3 close semantics for its 1006 troubleshooting interpretation, but the dependency source could not be independently retrieved from this partial checkout.
  • Resolve merge risk (P1) - Production code grows by net 92 lines; source review supports the three owner-local diagnostics and mount-lifetime boundary, but exact-head CI should confirm the combined change.
  • Complete next step (P2) - Independently confirm the pinned ws close-code contract and wait for the exact-head CI rollup to complete successfully before merge.
  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
Agent review details

Security

None.

PR surface

Source +84, Tests +245, Docs +9, Other +23. Total +361 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 3 107 23 +84
Tests 4 275 30 +245
Docs 2 12 3 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 3 37 14 +23
Total 12 431 70 +361

Review metrics

Metric Value Why it matters
Production versus test delta production +121/-29 (net +92); tests +298/-38 (net +260); docs +12/-3 The added production lines are confined to existing close and packaging owners, with substantially larger boundary and lifecycle coverage.

Stored data model

Persistent data-model change detected: serialized state: scripts/build-mac-swift.mts, unknown-data-model-change: scripts/build-mac-swift.mts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the owner-local diagnostics and temporary mount lifecycle, after independently confirming the pinned WebSocket contract and obtaining a complete green exact-head CI rollup.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the owner-local diagnostics and temporary mount lifecycle, after independently confirming the pinned WebSocket contract and obtaining a complete green exact-head CI rollup.

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

Yes, at source level: the changed test suites exercise local WebSocket/TCP closure and packaging cleanup paths, though this read-only review did not execute them.

Is this the best way to solve the issue?

Yes, with one evidence gap: recording each terminal fact at the existing transport owner avoids downstream inference, while the WebSocket close-code interpretation still needs direct dependency confirmation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fd9adb5af2c2.

Labels

Label justifications:

  • P3: This improves diagnostics and macOS packaging resilience without evidence of an active user-facing outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the contributor proof gate; the supplied earlier byte-identical diagnostic head also documents a real WebVNC close trace.

Evidence

What I checked:

  • Observer owner boundary: The observer records its first local cleanup trigger and requested code before teardown, then logs the observed WebSocket close code after close; the registry still validates source epoch before an observer is attached. (src/gateway/desktop/observe-bridge.ts:233, 6668d8a26a20)
  • Node transport and broker coverage: The node transport preserves the first terminal trigger across abort, target, WebSocket, and splice paths; the broker logs only stream kind, node/connection identity, trigger, and close code after upgrade. (src/node-host/node-stream-transport.ts:100, 6668d8a26a20)
  • Boundary-level regression coverage: Changed tests use local WebSocket/TCP peers for normal, abrupt, and owner-driven closure and assert that close reasons, tickets, URLs, payloads, and fixture credentials are absent from diagnostic records. (src/node-host/node-stream-transport.test.ts:41, 6668d8a26a20)
  • macOS mount lifecycle: The build controller creates a per-user temporary mount root, passes one path per architecture to build and cleanup, and removes the root only after all owned worker cleanup is safe; the worker detaches before removal. (scripts/build-mac-swift.mts:40, 6668d8a26a20)
  • Current-main comparison and history: Fetched main still has the pre-diagnostic observer close call, while the diagnostic files are byte-identical between the original diagnostic commit and this head; history shows the same area was previously developed by Peter Steinberger. (src/gateway/desktop/observe-bridge.ts:304, fd9adb5af2c2)
  • Dependency signal and review limitation: The changed owners directly import ws, and the repository pins version 8.21.3. The installed package source was absent and GitHub DNS was unavailable, so the linked upstream close-code interpretation was not independently verified here. (package.json:2136, 6668d8a26a20)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Independently confirm the pinned ws 8.21.3 close-code behavior.
  • Wait for the exact-head CI rollup to complete successfully before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-04T02:05:12.544Z sha b3fd438 :: blocked before merge. :: none
  • reviewed 2026-09-04T02:56:04.658Z sha 618bce0 :: blocked before merge. :: none
  • reviewed 2026-09-04T03:14:54.738Z sha 618bce0 :: blocked before merge. :: none
  • reviewed 2026-09-04T04:45:51.215Z sha 618bce0 :: blocked before merge. :: none

Keep snapshot images and build output on the checkout volume, while the
Swift controller owns the OS-provided private mount directory and passes
its exact architecture path to both build and cleanup. Preserve read-only
source authentication, process-tree ownership, uncertain-cleanup locks,
and atomic signed app publication.

An external APFS checkout reproduced hdiutil Permission denied for the
checkout-local mount. The same image mounted read-only in Darwin user temp;
the repaired canonical helper authenticated a synthetic Git checkout and
cleaned both locations. Extend existing lifecycle and snapshot coverage.
@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos scripts Repository scripts labels Sep 4, 2026
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The new head adds a separately reviewed Mac snapshot mount prerequisite needed for live native validation. The PR body preserves the diagnostic proof and the distinct mount red/green evidence, and now pins the byte-verified ws 8.21.3 dependency contract. Full current-head CI and the live three-owner WebVNC close trace remain pending; no claim that the earlier spontaneous close is fixed.

@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 4, 2026
Refresh the cloud desktop diagnostics branch over current main, including
its canonical CI package-prewarm and advisory-retry repairs.

Observe an admitted replacement lease instead of issuing a health request
while a failed reconnect still owns disconnect cleanup. Share that fixture
boundary across same-route recovery cases while preserving the original
assertions, deadlines, and explicit first connection to a replacement
Gateway. Production connection and retry behavior remain unchanged.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 4, 2026
@steipete
steipete merged commit 64da06a into main Sep 4, 2026
317 of 322 checks passed
@steipete
steipete deleted the codex/node-stream-close-diagnostics branch September 4, 2026 08:27
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 5, 2026
Desktop stream teardown discarded the observed WebSocket close code and the preceding owner cleanup trigger, leaving normal observer disposal indistinguishable from an unexpected transport close. Record bounded diagnostics once at the observer, broker, and node transport owners without changing forwarding or teardown behavior or logging peer payloads and credentials.

Move authenticated macOS snapshot mounts to controller-owned private Darwin temporary storage so external-volume builds use the same verified mount paths for build and cleanup. Preserve read-only source, signing, and cleanup ownership. Repair two native test synchronization boundaries: wait for an admitted reconnect before requesting its lease, and flush post-resize settings layout before sampling the prior pane.

Regression and sibling proof covers real socket closes, cancellation/backpressure, snapshot mount cleanup, signed Intel native installation, and real Linux, Windows, and macOS CUA/WebVNC flows. Successful runs do not explain the previously observed intermittent Mac close or historical-marker response; those remain named follow-ups with improved diagnostics.

Follow-up to openclaw#136297 and openclaw#137724.

Required exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/33849738091 . Native proof includes the original ordered SettingsWindowLayoutTests pair, all 2,082 app Swift Testing cases, isolated AppState cases, and 1,627 OpenClawKit cases. Both native build/test jobs passed. Separate optional shared-kit scans were still queued at landing preparation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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