fix(cron): route failure alerts to thread ids#90887
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 30, 2026, 1:11 PM ET / 17:11 UTC. Summary PR surface: Source +242, Tests +502, Docs +2, Generated +2. Total +748 across 29 files. Reproducibility: yes. source-level: current main and v2026.6.11 expose Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Resolve conflicts, keep the additive schema/storage/gateway path, document the full inheritance rule including account id, and add redacted live Telegram topic-routing proof before maintainer compatibility approval. Do we have a high-confidence way to reproduce the issue? Yes, source-level: current main and v2026.6.11 expose Is this the best way to solve the issue? Yes for the primary direction: mirroring the existing delivery thread contract onto failure alerts is the narrow maintainable fix shape. The PR is not merge-ready until conflicts, live Telegram proof, docs, and compatibility review are handled. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f284ce3b4df7. Label changesLabel justifications:
Evidence reviewedPR surface: Source +242, Tests +502, Docs +2, Generated +2. Total +748 across 29 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (1 earlier review cycle)
|
8730c04 to
f1cbb6a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
utk2103
left a comment
There was a problem hiding this comment.
changes are mentioned with description
f1cbb6a to
8a29d43
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
Summary
failureAlert.threadIdthrough cron schemas, CLI edit, storage, gateway send plumbing, and agent tool exposure.Real behavior proof
--thread-id 79; edited it with--failure-alert --failure-alert-after 1 --failure-alert-thread-id 79; rancron getfor the job.pnpm openclaw cron getshowed:delivery.threadIdandfailureAlert.threadIdas79.Tests
node scripts/generate-kysely-types.mjspnpm docs:listnode scripts/run-vitest.mjs src/cron/service.failure-alert.test.ts src/cron/delivery.failure-notify.test.ts src/gateway/server-cron-notifications.test.ts src/gateway/server.cron.test.ts src/agents/tools/cron-tool.schema.test.ts src/agents/tools/cron-tool.test.ts src/cli/cron-cli.test.ts src/cron/store.test.ts src/state/openclaw-state-db.test.ts packages/gateway-protocol/src/cron-validators.test.ts src/cron/normalize.test.tspnpm exec oxfmt --check --threads=1 $(git diff --name-only origin/main)git diff --checkcodex review --base origin/main(addressed findings from completed runs; final rerun hit my local usage limit)AI-assisted: yes.