Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 23, 2026, 3:14 AM ET / 07:14 UTC (Revision 15). ClawSweeper reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceDocs +8, Config +3, Other +428. Total +439 across 6 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 08f5fb80f301. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
|
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 Proxy evidence records both real media requests to 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. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
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.
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.
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.
|
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. |
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
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 realDashboardWindowController, WebKit, nativeNSSavePanel, 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.
httpsTicketuses 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)
After: retained native regression suite, 3 tests / 0 failures
After: eight native Save/Cancel scenarios, exact saved bytes, and Dashboard click results
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.