Repository navigation
refactor(cron): consolidate unavailable delivery targets - #157393
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: needs maintainer review before merge. Reviewed September 24, 2026, 12:27 PM ET / 16:27 UTC. ClawSweeper reviewWhat this changesThis PR combines webhook and untargeted disabled-delivery handling in the cron isolated-run resolver and strengthens runner assertions for webhook policy and trace output. Merge readiness✅ Ready for maintainer review Current main and the latest release still contain the duplicate early returns. The proposed consolidation preserves the distinct outcomes, and this review found no actionable patch defect. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s automation runner turns a scheduled job’s delivery settings into a chat-target decision. That decision feeds the agent’s message-tool policy and the delivery trace recorded for the run. flowchart LR
A[Cron job] --> B[Delivery plan]
B --> C{Webhook or untargeted disabled mode?}
C -->|Yes| D[Unavailable chat target]
C -->|No| E[Resolve chat destination]
D --> F[Run policy and delivery trace]
E --> F
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -10, Tests -1. Total -11 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep webhook, disabled-mode, and explicit-target outcomes guarded at the runner boundary while using one owner for unavailable chat-target construction. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR characterizes existing delivery modes rather than reporting a defect. The captured runner-fixture result is a contributor claim, and source comparison supports the intended equivalence. Is this the best way to solve the issue? Yes: the change stays in the existing cron delivery owner and preserves the mode-specific errors, flags, and target-resolution boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5c1abcae5525. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash auto-merge.
|
* commit '9a1a6f7db9783d0b8abaf918bfe12978ea745b57': (26 commits) fix(maintainer): restore cold PR worktree provisioning (#157394) feat(ios): establish native Cloudflare Access sign-in sessions (#146996) fix: restore the Gateway after interrupted Doctor maintenance (#156854) refactor(line): retire the Express webhook adapter (#157369) refactor(cron): consolidate unavailable delivery targets (#157393) ci: apply Go memory defaults to architecture checks fix(cli): preserve the first PowerShell completion test failure (#157267) refactor(agents): consolidate transcript-tail model selection (#157382) fix(release): honor frozen validation contracts (#157034) fix(perf): use settled Kova terminal CPU accounting (#157029) chore(windows): verify packaged repair worker lifecycle (#157047) refactor(logging): share memory pressure threshold selection (#157164) fix(release): verify bundled fs-safe native bindings (#157027) perf(skills): skip warm prompt search when minimum cannot fit (#157343) fix(ui): avoid retaining detached tooltip anchors (#157226) perf(ci): reuse compiler state and shorten guard and UI tests (#157265) perf(ui): preserve model caches on unrelated metadata updates (#157254) chore: remove the tracked PR-body artifact and ignore .artifacts (#157296) refactor: consolidate duplicate MCP lifecycle tests (#157360) test(qa): consolidate CLI runtime fixtures (#118496) ...
What Problem This Solves
Maintainer-requested cleanup of duplicate unavailable-chat-target handling in cron delivery.
User Impact
No user-visible behavior change. Webhook delivery and disabled delivery keep their existing errors and message-tool policy; explicitly targeted delivery keeps its existing route.
Why This Change Was Made
Combine the two early returns while preserving their distinct errors and requested-delivery flags. Normal target resolution is unchanged.
Evidence
--maxWorkers=1, including wrapper overhead. This is not isolated Vitest time, CI timing, or a performance comparison; isolated per-file CI timing was not captured.b442284cc4c799431ae95fa2fd1b2d67c6542cd3.