Repository navigation
fix(macos): cron editor drops advanced delivery routes - #118047
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 12:37 PM ET / 16:37 UTC. ClawSweeper reviewWhat this changesThe PR adds macOS model and save-payload preservation for cron thread IDs plus completion and failure delivery destinations, and displays those routes in the cron summary. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 7 items remain The full protocol and current macOS editor path show one remaining delivery regression: saving an existing webhook-mode cron job converts it to no delivery. The PR also still lacks inspectable after-fix native-app evidence for the edit/save path, so it should remain open for a focused correction and redacted real-behavior proof. Priority: P1 Review scores
Verification
How this fits togetherThe macOS app reads cron jobs from the Gateway, hydrates them into the native editor, then submits a delivery patch back to the Gateway when the user saves. The Gateway merges omitted delivery fields into the stored cron job and dispatches scheduled output according to the resulting mode and destination. flowchart LR
A[Gateway cron job] --> B[macOS cron model]
B --> C[Native editor]
C --> D[Save delivery patch]
D --> E[Gateway patch merge]
E --> F[Stored cron routing]
F --> G[Completion or failure delivery]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceOther +76. Total +76 across 6 files. View PR surface stats
Review metricsNone. 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:
Technical reviewBest possible solution: Represent unsupported webhook delivery as read-only or preserve its raw mode and target through the macOS editor, add a webhook edit/save regression test, and attach redacted native-app proof that saving an advanced-routing job retains its Gateway routing. Do we have a high-confidence way to reproduce the issue? Yes, by source: load a cron job whose delivery mode is Is this the best way to solve the issue? No. The patch preserves several announce-related fields, but it does not preserve the complete supported delivery union; handling webhook jobs as Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b84e14f22255. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
91a3729 to
819f855
Compare
|
Merged via squash.
|
* fix(macos): preserve advanced cron delivery routing * fix(macos): mark cron routing labels verbatim * fix(macos): keep cron routing inventory stable
Related: #117909
What Problem This Solves
Fixes an issue where users editing an existing cron job in the macOS app would lose its thread, completion, or failure delivery routing when saving because the native client did not mirror those gateway fields.
Why This Change Was Made
The macOS delivery mirror now preserves
threadId,completionDestination, andfailureDestinationusing their exact heterogeneous JSON representation, matching the gateway protocol without native defaults. The existing delivery summary shows the exact protocol field names and configured values as verbatim operator data, and editor saves retain them while keepingcompletionDestinationscoped to announce delivery.User Impact
Cron jobs edited in the native macOS client retain their advanced delivery routing instead of silently dropping it. Existing delivery details also expose the configured thread and completion/failure destinations.
Evidence
macos-swiftpassed on head819f8559b111c6532cbd9b57291c5516c764731d, including strict lint, release build, OpenClawKit tests, and full Swift tests.DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer swift test --package-path apps/macos --filter 'CronModelsTests|CronJobEditorSmokeTests'— passed 21 tests in 2 suites on the final source.DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer swift build --package-path apps/macos --product OpenClaw --configuration release— passed locally; hosted CI repeated the release build on the final source.node --import tsx scripts/native-app-i18n.ts verify— passed withchanged=falseand all native source guards green.git diff --check origin/main...HEAD— passed.node scripts/check-changed.mjscould not acquire a ready hosted Crabbox provider from this worktree; the PR's hosted macOS, i18n, Periphery, and repository checks supplied the heavy proof and finished green.AI-assisted: yes. I reviewed the complete change and understand the protocol-preservation behavior.