Skip to content

fix: keep macOS Dashboard usable when downloading attachments - #140272

Closed
aldiz1711 wants to merge 13 commits into
openclaw:mainfrom
aldiz1711:codex/fix-macos-attachment-download
Closed

aldiz1711 wants to merge 13 commits into
openclaw:mainfrom
aldiz1711:codex/fix-macos-attachment-download

Conversation

@aldiz1711

@aldiz1711 aldiz1711 commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Related: #139262

What Problem This Solves

Fixes an issue where users downloading an attachment from the macOS Dashboard would see “Dashboard unavailable” instead of a save destination. HTTP and blob attachments reproduce the failure in the original Dashboard controller.

Why This Change Was Made

The Dashboard now hands attachment downloads to WebKit's native download flow and presents a Save panel. A single owner binds downloads to the live Dashboard document and window, stages files until transfer completion, reuses Gateway TLS handling, and retires pending Save/error sheets when their document is replaced. Cancellation or failure keeps the Dashboard usable; completion reveals the saved file in Finder.

Also fixes the notification-availability check for command-line binaries carrying a bundle identifier, which otherwise call an app-only notification API and abort. There are no new settings, database changes, or dependencies.

User Impact

Operators can save HTTP, blob, and data attachments from the native Dashboard. Closing, reloading, or replacing the Dashboard retires its download UI. The existing lightweight sidebar continues its browser handoff behavior.

Evidence

  • Before patch: real controller HTTP/blob attachment tests reproduce the failure page and missing Save panel.
  • Isolated macOS VM, actual native Save UI: eight HTTP/blob/data/pinned-HTTPS Save/Cancel scenarios pass; saved bytes match the synthetic fixture. Inspectable before/after runtime output is included below.
  • Retained XCTest regression: three methods pass with no failures, covering cancellation, reload/close/replacement, and retirement of failure sheets.
  • Canonical changed checks, Swift formatting/lint, and native i18n verification pass.
  • Independent autoreview through P2: scoped-clean, no findings.
  • Broad Dashboard suite: baseline 112 tests/43 issues; candidate repeat 112/42. All 42 candidate issues match the baseline at the same test/argument/location. This suite remains failing; document-readiness failures are recorded as a separate follow-up. An initial extra cookie timeout passes separately on both binaries and in the candidate repeat.

The initial fixture was synthetic text named .docx, not a valid Office document; the new eight-scenario proof uses .txt. Native pinned HTTPS with a fixture ticket now passes. Reporter-specific reverse proxy, authenticated Gateway login/cookies, real media-ticket signing/validation, lease revocation, destination overwrite races, and retirement during an active transfer remain unverified end-to-end. The fixture ticket is an exact-match server check, and its synthetic Gateway token is not consumed: this is not authenticated remote-Gateway proof. These limits remain visible for review.

Production delta is +267/-1 (net +266); tests add 146 lines and docs add 8. Growth implements the missing native download/file-save lifecycle; no existing owner could absorb that capability.

Inspectable native proof (review follow-up)

Production head remains f93baeabf9f1f9de4bcbd206acfe08a631d39913. The following output comes from an isolated macOS VM using the real DashboardWindowController, WebKit, native NSSavePanel, and Finder. It uses a diagnostic fixture page matching the production attachment anchor (download, target=_blank, rel=noreferrer), not the full chat/Gateway application.

The fixture programmatically activates the anchor; the UI driver physically clicks Save/Cancel and then Check Dashboard. Save verification reads the published file and compares every byte and SHA-256. Cancel verifies the destination stays absent both after dismissal and after the post-cancel click/capture. Every scenario keeps the same Dashboard URL, shows no failure page, and records actual clicks received by the page. httpsTicket uses the existing certificate fixture with its exact SHA-256 pin, required=true, allowTOFU=false, and no browser-session profile. HTTP(S) serves the attachment only for the exact fixture ticket and observes one request.

The eight scenarios run inside one diagnostic Swift Testing test; the retained regression suite separately has three XCTest methods. The diagnostic runner is not added to production or CI. Its binary SHA-256, verified identical in the guest, is 440e36aa54a9980305ba210c9ff4345c16a8f9ffa9d9d13d4b08d718fb73adc9.

Before: original controller with the retained regression test fails (same command-line notification guard)
Test Suite 'Selected tests' started at 2026-09-06 16:18:48.916.
Test Suite 'OpenClawPackageTests.xctest' started at 2026-09-06 16:18:48.922.
Test Suite 'DashboardDownloadTests' started at 2026-09-06 16:18:48.922.
Test Case '-[OpenClawIPCTests.DashboardDownloadTests testCancellingAttachmentsKeepsDashboardUsable]' started.
apps/macos/Tests/OpenClawIPCTests/DashboardDownloadTests.swift:27: error: -[OpenClawIPCTests.DashboardDownloadTests testCancellingAttachmentsKeepsDashboardUsable] : XCTAssertTrue failed
apps/macos/Tests/OpenClawIPCTests/DashboardDownloadTests.swift:28: error: -[OpenClawIPCTests.DashboardDownloadTests testCancellingAttachmentsKeepsDashboardUsable] : XCTUnwrap failed: expected non-nil value of type "NSSavePanel"
Test Case '-[OpenClawIPCTests.DashboardDownloadTests testCancellingAttachmentsKeepsDashboardUsable]' failed (5.201 seconds).
Test Suite 'DashboardDownloadTests' failed at 2026-09-06 16:18:54.124.
	 Executed 1 test, with 2 failures (0 unexpected) in 5.201 (5.202) seconds
Test Suite 'OpenClawPackageTests.xctest' failed at 2026-09-06 16:18:54.124.
	 Executed 1 test, with 2 failures (0 unexpected) in 5.201 (5.202) seconds
Test Suite 'Selected tests' failed at 2026-09-06 16:18:54.124.
	 Executed 1 test, with 2 failures (0 unexpected) in 5.201 (5.208) seconds
After: retained native regression suite, 3 tests / 0 failures
Test Suite 'Selected tests' started at 2026-09-06 15:54:56.114.
Test Suite 'OpenClawPackageTests.xctest' started at 2026-09-06 15:54:56.120.
Test Suite 'DashboardDownloadTests' started at 2026-09-06 15:54:56.120.
Test Case '-[OpenClawIPCTests.DashboardDownloadTests testCancellingAttachmentsKeepsDashboardUsable]' started.
Test Case '-[OpenClawIPCTests.DashboardDownloadTests testCancellingAttachmentsKeepsDashboardUsable]' passed (11.804 seconds).
Test Case '-[OpenClawIPCTests.DashboardDownloadTests testReplacingDashboardDismissesOldDownloadError]' started.
Test Case '-[OpenClawIPCTests.DashboardDownloadTests testReplacingDashboardDismissesOldDownloadError]' passed (1.512 seconds).
Test Case '-[OpenClawIPCTests.DashboardDownloadTests testRetiringDashboardDismissesPendingSavePanel]' started.
Test Case '-[OpenClawIPCTests.DashboardDownloadTests testRetiringDashboardDismissesPendingSavePanel]' passed (4.322 seconds).
Test Suite 'DashboardDownloadTests' passed at 2026-09-06 15:55:13.762.
	 Executed 3 tests, with 0 failures (0 unexpected) in 17.638 (17.642) seconds
Test Suite 'OpenClawPackageTests.xctest' passed at 2026-09-06 15:55:13.762.
	 Executed 3 tests, with 0 failures (0 unexpected) in 17.638 (17.642) seconds
Test Suite 'Selected tests' passed at 2026-09-06 15:55:13.762.
	 Executed 3 tests, with 0 failures (0 unexpected) in 17.638 (17.648) seconds
After: eight native Save/Cancel scenarios, exact saved bytes, and Dashboard click results
◇ Test run started.
↳ Testing Library Version: 1902
↳ Target Platform: arm64e-apple-macos14.0
◇ Suite DashboardDownloadReviewProof started.
◇ Test testNativeDownloadEvidence() started.
PROOF PANEL source=http action=cancel expectedBytes=27 expectedSHA256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469
PROOF CANCELLED source=http destinationExists=false
PROOF CHECK_DASHBOARD source=http action=cancel
PROOF USABLE source=http action=cancel sameDocument=true failurePage=false clickCount=1 ticketRequests=1
PROOF PANEL source=http action=save expectedBytes=27 expectedSHA256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469
PROOF SAVED source=http bytes=27 sha256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469 exactMatch=true
PROOF CHECK_DASHBOARD source=http action=save
PROOF USABLE source=http action=save sameDocument=true failurePage=false clickCount=1 ticketRequests=1
PROOF PANEL source=blob action=cancel expectedBytes=27 expectedSHA256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469
PROOF CANCELLED source=blob destinationExists=false
PROOF CHECK_DASHBOARD source=blob action=cancel
PROOF USABLE source=blob action=cancel sameDocument=true failurePage=false clickCount=1 ticketRequests=0
PROOF PANEL source=blob action=save expectedBytes=27 expectedSHA256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469
PROOF SAVED source=blob bytes=27 sha256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469 exactMatch=true
PROOF CHECK_DASHBOARD source=blob action=save
PROOF USABLE source=blob action=save sameDocument=true failurePage=false clickCount=2 ticketRequests=0
PROOF PANEL source=data action=cancel expectedBytes=27 expectedSHA256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469
PROOF CANCELLED source=data destinationExists=false
PROOF CHECK_DASHBOARD source=data action=cancel
PROOF USABLE source=data action=cancel sameDocument=true failurePage=false clickCount=1 ticketRequests=0
PROOF PANEL source=data action=save expectedBytes=27 expectedSHA256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469
PROOF SAVED source=data bytes=27 sha256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469 exactMatch=true
PROOF CHECK_DASHBOARD source=data action=save
PROOF USABLE source=data action=save sameDocument=true failurePage=false clickCount=1 ticketRequests=0
PROOF PANEL source=httpsTicket action=cancel expectedBytes=27 expectedSHA256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469
PROOF CANCELLED source=httpsTicket destinationExists=false
PROOF CHECK_DASHBOARD source=httpsTicket action=cancel
PROOF USABLE source=httpsTicket action=cancel sameDocument=true failurePage=false clickCount=1 ticketRequests=1
PROOF PANEL source=httpsTicket action=save expectedBytes=27 expectedSHA256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469
PROOF SAVED source=httpsTicket bytes=27 sha256=5cd7bc95e283d9888c8f58d7f94716320f8beaee43430ac4c7d3d27dfa740469 exactMatch=true
PROOF CHECK_DASHBOARD source=httpsTicket action=save
PROOF USABLE source=httpsTicket action=save sameDocument=true failurePage=false clickCount=2 ticketRequests=1
✔ Test testNativeDownloadEvidence() passed after 596.880 seconds.
✔ Suite DashboardDownloadReviewProof passed after 596.881 seconds.
✔ Test run with 1 test in 1 suite passed after 596.893 seconds.

Remaining review scope

The requested runtime output is now directly inspectable above. Native screenshots of the Save panel, saved content, and post-cancel Dashboard were also captured and inspected locally, but GitHub's attachment upload returned HTTP 404 and the prescribed Crabbox uploader is unavailable in this environment; no public screenshot link is claimed. This records the remaining optional Rank-up media item explicitly.

The authenticated remote-Gateway risk remains open: the pinned HTTPS fixture narrows native transport coverage but does not reproduce the reporter's Gateway 2026.9.1 login, real signed media ticket, browser-profile cookies, or reverse proxy. No claim is made that the reporter-specific deployment is verified or that merge readiness is cleared.

@clawsweeper

clawsweeper Bot commented Sep 6, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos size: M labels Sep 6, 2026
@aldiz1711
aldiz1711 marked this pull request as ready for review September 6, 2026 16:30
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 6, 2026
@clawsweeper

clawsweeper Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 23, 2026, 3:14 AM ET / 07:14 UTC (Revision 15).

ClawSweeper review

What this changes

Adds native attachment saving to the macOS Dashboard, download lifecycle cleanup, a command-line notification guard, regression tests, CI isolation, and documentation.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this remains a useful fix absent from current main and the latest release. The previously reported HTTP-response defect remains unresolved; the merged Browser-sidebar work does not supersede this Dashboard path.

Priority: P2
Reviewed head: 90f51547b16020732c80f64c1652509bc2dd15c5

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong native runtime evidence supports a useful repair, but the unresolved HTTP-error handling defect prevents merge readiness.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Real macOS WebKit/NSSavePanel traces exercise DashboardDownloads across eight Save/Cancel scenarios with exact bytes and continued page interaction; the September 8 remote-Gateway comment adds an actual ticketed DOCX download through HTTPS. Runtime proof is sufficient for this flow, while required screenshot delivery remains a separate completion blocker. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): Real macOS WebKit/NSSavePanel traces exercise DashboardDownloads across eight Save/Cancel scenarios with exact bytes and continued page interaction; the September 8 remote-Gateway comment adds an actual ticketed DOCX download through HTTPS. Runtime proof is sufficient for this flow, while required screenshot delivery remains a separate completion blocker. No stored-data contract changes.
Evidence reviewed 11 items Pinned introduction: Reviewed the merge-base-to-head introduction, comprising the native download owner, controller hooks, notification guard, tests, CI invocation changes, and documentation. Base-only drift was not attributed to this PR.
Prior finding remains: The destination callback still discards URLResponse and opens NSSavePanel unconditionally after its lifecycle check. Completion can replace an existing destination. The current head equals the previous completed review’s head; its HTTP-status finding remains applicable.
Existing response-validation precedent: The separate Browser-sidebar download owner rejects HTTP responses outside 200–299 before presenting Save. Its startDownload entry point serves sidebar assets rather than adopting Dashboard attachment navigation.
Findings 1 actionable finding [P2] Reject unsuccessful HTTP responses before presenting Save
Security None None.

How this fits together

The macOS Dashboard embeds the Gateway’s web interface in WebKit. Attachment clicks pass through native navigation handling, which presents a Save dialog and publishes completed downloads to the chosen file.

flowchart TD
  A[Dashboard attachment click] --> B[Check document and session]
  B --> C[WebKit download]
  C --> D[Native Save dialog]
  D --> E[Stage downloaded bytes]
  E --> F[Publish file and reveal in Finder]
  B --> G[Cancel stale downloads]
  G --> H[Keep Dashboard usable]
Loading

Before merge

  • Reject unsuccessful HTTP responses before presenting Save (P2) - The previously reported defect remains: this callback discards the response, so a valid HTTP 403, 404, or 500 attachment response can reach Save and then replace an existing file with its error body. Reject non-2xx HTTPURLResponse values before offering a destination, as DashboardBrowserDownload.swift already does, while preserving blob/data support. The malformed-HTTP fixture exercises transport failure and does not cover this case.
  • Resolve merge risk (P1) - A valid HTTP error response can be published as an attachment and replace an existing destination file.
  • Complete next step (P2) - Attach inspected, sanitized before/after native screenshots in the originating chat and GitHub PR, verify both render, and update the PR body with the remote-Gateway evidence already supplied in discussion.

Findings

  • [P2] Reject unsuccessful HTTP responses before presenting Save — apps/macos/Sources/OpenClaw/DashboardDownloads.swift:82-92
Agent review details

Security

None.

PR surface

Docs +8, Config +3, Other +428. Total +439 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 8 0 +8
Config 1 5 2 +3
Generated 0 0 0 0
Other 4 429 1 +428
Total 6 442 3 +439

Review metrics

Metric Value Why it matters
Production and regression growth Production net +266 lines; tests +160 lines The stated production-growth justification is the missing native transfer, Save-panel, and document-retirement lifecycle.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #139262
Summary: This PR is a candidate for the reported macOS Dashboard attachment failure; Browser-sidebar and iOS attachment work use distinct entry points.

Members:

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

Merge-risk options

Maintainer options:

  1. Reject HTTP errors before Save (recommended)
    Add status validation and native regression coverage proving error responses cannot create or replace destination files.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Reject non-2xx HTTPURLResponse values before presenting NSSavePanel, preserve blob/data downloads, and cover valid HTTP errors with absent and existing destinations in DashboardDownloadTests.

Technical review

Best possible solution:

Keep native saving on the Dashboard’s WebKit session, reject unsuccessful HTTP responses before Save, and publish only successfully downloaded attachment bytes.

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

Yes, source establishes the missing current-main Dashboard download handoff and the branch’s unchecked HTTP-response path. Contributor native traces demonstrate the original failure and successful downloads; this read-only review did not execute macOS tests.

Is this the best way to solve the issue?

Yes, adopting WebKit downloads preserves the Dashboard’s browser session and native lifecycle; the implementation needs the existing sibling’s HTTP-status safeguard before it is safe to merge.

Full review comments:

  • [P2] Reject unsuccessful HTTP responses before presenting Save — apps/macos/Sources/OpenClaw/DashboardDownloads.swift:82-92
    The previously reported defect remains: this callback discards the response, so a valid HTTP 403, 404, or 500 attachment response can reach Save and then replace an existing file with its error body. Reject non-2xx HTTPURLResponse values before offering a destination, as DashboardBrowserDownload.swift already does, while preserving blob/data support. The malformed-HTTP fixture exercises transport failure and does not cover this case.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a bounded macOS attachment workflow with an existing browser workaround.
  • merge-risk: 🚨 other: Unchecked HTTP error bodies can overwrite user-selected attachment files; the owned PR risk taxonomy has no dedicated file-data-loss label.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (logs): Real macOS WebKit/NSSavePanel traces exercise DashboardDownloads across eight Save/Cancel scenarios with exact bytes and continued page interaction; the September 8 remote-Gateway comment adds an actual ticketed DOCX download through HTTPS. Runtime proof is sufficient for this flow, while required screenshot delivery remains a separate completion blocker. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Real macOS WebKit/NSSavePanel traces exercise DashboardDownloads across eight Save/Cancel scenarios with exact bytes and continued page interaction; the September 8 remote-Gateway comment adds an actual ticketed DOCX download through HTTPS. Runtime proof is sufficient for this flow, while required screenshot delivery remains a separate completion blocker. No stored-data contract changes.

Evidence

Acceptance criteria:

  • [P1] swift build --package-path apps/macos --build-system native --build-tests.
  • [P1] node scripts/test-macos-native.mts named --package-path apps/macos --build-system native --skip-build --filter DashboardDownloadTests.
  • [P1] scripts/lint-swift.sh macos.
  • [P1] git diff --check.

What I checked:

  • Pinned introduction: Reviewed the merge-base-to-head introduction, comprising the native download owner, controller hooks, notification guard, tests, CI invocation changes, and documentation. Base-only drift was not attributed to this PR. (apps/macos/Sources/OpenClaw/DashboardDownloads.swift:1, 90f51547b160)
  • Prior finding remains: The destination callback still discards URLResponse and opens NSSavePanel unconditionally after its lifecycle check. Completion can replace an existing destination. The current head equals the previous completed review’s head; its HTTP-status finding remains applicable. (apps/macos/Sources/OpenClaw/DashboardDownloads.swift:84, 90f51547b160)
  • Existing response-validation precedent: The separate Browser-sidebar download owner rejects HTTP responses outside 200–299 before presenting Save. Its startDownload entry point serves sidebar assets rather than adopting Dashboard attachment navigation. (apps/macos/Sources/OpenClaw/DashboardBrowserDownload.swift:88, 90f51547b160)
  • Current main still needs the handoff: Current main handles shouldPerformDownload only within the native Browser-tab branch; Dashboard navigation proceeds to targetless navigation without this PR’s attachment admission and download delegate. (apps/macos/Sources/OpenClaw/DashboardWindowController.swift:1466, 08f5fb80f301)
  • Latest-release check: The supplied latest release, v2026.9.5, likewise has only the Browser-tab shouldPerformDownload branch and no Dashboard didBecome download handoff. Its source was read through GitHub after the local release blob was unavailable. (apps/macos/Sources/OpenClaw/DashboardWindowController.swift:1483, ec9c1a13db89)
  • Native runtime proof and continuity: The captured PR body records eight real WebKit/NSSavePanel HTTP, blob, data, and pinned-HTTPS Save/Cancel scenarios, exact saved bytes, and subsequent Dashboard clicks. The original download-owner blob was inspected: its transfer logic matches the reviewed implementation, with the delegate witness subsequently moved into this file. These observations support the changed native path, not merely startup or unit-test success. (apps/macos/Sources/OpenClaw/DashboardDownloads.swift:17, f93baeabf9f1)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Patrick-Erichsen: 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.

  • Reject non-2xx responses and verify they cannot create files or replace existing destinations.
  • Deliver sanitized before/after screenshots in the originating chat and GitHub PR, verify both render, and refresh the PR body’s evidence.

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 (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-16T10:18:20.395Z sha 3a52771 :: blocked before merge. :: [P2] Reject unsuccessful HTTP responses before presenting Save
  • reviewed 2026-09-16T10:57:30.577Z sha 5d57134 :: blocked before merge. :: [P2] Reject unsuccessful HTTP responses before presenting Save
  • reviewed 2026-09-16T11:26:44.425Z sha 2ac483d :: blocked before merge. :: [P2] Reject unsuccessful HTTP responses before presenting Save
  • reviewed 2026-09-16T11:54:23.334Z sha e64ad09 :: blocked before merge. :: [P2] Reject unsuccessful HTTP responses before presenting Save
  • reviewed 2026-09-16T12:22:40.886Z sha 160035d :: blocked before merge. :: [P2] Reject unsuccessful HTTP responses before presenting Save
  • reviewed 2026-09-16T12:57:16.881Z sha a2cbaff :: blocked before merge. :: [P2] Reject unsuccessful HTTP responses before presenting Save | [P2] Restore execution of the download regression fixtures
  • reviewed 2026-09-16T13:30:25.872Z sha 53a7480 :: blocked before merge. :: [P2] Reject unsuccessful HTTP responses before presenting Save
  • reviewed 2026-09-16T14:37:36.973Z sha 90f5154 :: blocked before merge. :: [P2] Reject unsuccessful HTTP responses before presenting Save

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 6, 2026
@aldiz1711

Copy link
Copy Markdown
Contributor Author

Additional remote-Gateway proof for head f93baea:

A live Codex-backed OpenClaw agent on an isolated stable 2026.9.1 Gateway created and attached a DOCX. Both Safari and the candidate macOS Dashboard downloaded that same attachment through the nginx HTTPS reverse proxy. Native download presented NSSavePanel, saved successfully, and Home navigation remained usable afterward. All three copies are 1625 bytes with SHA-256 0b71755a16abd15f646d69a13e106c414f4e6c826a1729e5c645c5677f240a96.

Proxy evidence records both real media requests to /api/chat/media/outgoing/.../full as status=200 upstream=200 ticket=yes auth=no bytes=1625. The requests occurred at 2026-09-08 04:19:37 UTC (Safari) and 04:29:38 UTC (native). This supplements the existing fixture Save/Cancel evidence with an actual agent-produced attachment, Gateway login/device pairing, server-issued media tickets, and a real TLS reverse proxy.

Limits: no Cloudflare Access or third-party authenticated-cookie deployment was tested. This evidence does not establish full resolution of the wider linked remote-Gateway report. Native startup briefly showed Swift.CancellationError, and a separate saved-Gateway window retained a stale test token after rotation; the primary Dashboard recovered and completed the tested download. These remain separate follow-up observations, not attributed to the PR.

Test setup: the Gateway container needed its pinned official Codex 0.152.1 dependency restored in the disposable container. Temporary provider credentials were removed before client downloads; post-cleanup status showed zero OAuth profiles. No source changes.

@aldiz1711

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 8, 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:

muse added 2 commits September 16, 2026 15:06
Resolve decidePolicy conflict in DashboardWindowController.swift by keeping
both early handoffs: trunk's user-activated app-link delegation first,
then the PR's attachment-download admission. Both stay ahead of the
targetless-navigation handling.
Move the webView(navigationAction:didBecome:) witness out of
DashboardWindowController into an extension in DashboardDownloads.swift.
The trunk merge pushed the controller past SwiftLint's 1500-line warning
threshold (strict in CI); this restores the margin without touching
trunk-owned code or behavior. No functional change.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 16, 2026
muse added 4 commits September 16, 2026 16:04
Clean merge to refresh the base and retrigger CI. No conflicts.
Clean merge to refresh the base and retrigger CI. No conflicts.
Identify which waitUntil times out and snapshot AppKit state around
DashboardDownloadTests. Revert after diagnosis.
Serial suites share one app. A late download callback can activate it
after close, which broke QuickChatPresentationTests' deactivate wait on
this branch (the app stayed active through its whole run). Close
lingering windows at fixture teardown, then deactivate and assert the
app is inactive so any future leak fails here instead of downstream.

Reverts the TEMP-DIAG tracing from the previous commit.
muse and others added 6 commits September 16, 2026 18:19
The quiescence assert passes yet Quick Chat still observes an active app,
so something activates after teardown. Log every didBecomeActive and
didBecomeKey with window identities. Revert after diagnosis.
The spy proved the app activates only at QuickChat's own presentation,
so the still-failing wait needs naming now that fixture quiescence
holds. Revert after diagnosis.
If the runner drops deactivation IPCs, isActive flips back without any
didBecomeActive post. Log the resynced value plus QuickChat's
pre-deactivate state. Revert after diagnosis.
If QuickChat passes with fixtures skipped, fixture execution (load and
activation side effects) is causal and the fix is headless fixtures. If
it still fails, PR product code is causal and gets bisected next.
Revert after diagnosis.
DashboardDownloadTests activates the app via real download fixtures;
QuickChatPresentationTests then observes a still-active app and fails
its deactivate wait. Skip/download amputation proved the fixtures
causal. Run the download suite in the isolated named invocation with
the other order-sensitive suites, and revert all TEMP-DIAG tracing.
Keep the fixture teardown quiescence as a local hygiene signal.

Copy link
Copy Markdown
Contributor Author

Thanks for the review and feedback. I don’t have the capacity to continue working on this PR, so I’m closing it. If someone would like to pick up the work, please feel free to build on it.

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 merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant