Skip to content

[codex] fix chat reminder cron delivery - #58893

Closed
jnuyao wants to merge 1 commit into
openclaw:mainfrom
jnuyao:codex/fix-chat-reminder-delivery
Closed

jnuyao wants to merge 1 commit into
openclaw:mainfrom
jnuyao:codex/fix-chat-reminder-delivery

Conversation

@jnuyao

@jnuyao jnuyao commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • promote reminder-like chat cron jobs without explicit sessionTarget or delivery into isolated agentTurn jobs with inferred announce delivery
  • keep explicit sessionTarget: "main" reminders internal-only so existing cron semantics stay intact
  • add tests covering promotion, explicit main reminders, and promoted reminders with context history

Root Cause

Cron jobs created as sessionTarget: "main" plus payload.kind: "systemEvent" only enqueue an internal system event. They do not request outbound delivery, so runs can finish with deliveryStatus = "not-requested" even though the reminder never reaches the user.

Impact

Chat-created reminders now default to a deliverable execution path that sends the reminder back to the originating conversation instead of silently remaining an internal scheduler event.

Validation

  • pnpm exec vitest run --config vitest.config.ts src/agents/tools/cron-tool.test.ts src/agents/tools/cron-tool.flat-params.test.ts

@clawsweeper

clawsweeper Bot commented May 1, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Keep this PR open for maintainer review, but it is not merge-ready: the branch is draft/dirty, lacks real behavior proof, and the patch changes a compatibility-sensitive cron delivery default in a way that can make internal systemEvent text user-visible.

Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

So I’m closing this here because the remaining work is already tracked in the canonical issue.

Review details

Best possible solution:

Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

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

Yes, source inspection gives a high-confidence behavior path: current main defaults omitted-target systemEvent cron jobs to main/internal delivery, while the PR converts reminder-looking ones into isolated announce jobs. I did not run tests because this was a read-only review.

Is this the best way to solve the issue?

No. The current PR is a plausible mitigation, but not the best fix because it relies on text heuristics to override a documented internal default; the safer fix needs explicit chat-visible reminder intent and current delivery-context helpers.

Security review:

Security review needs attention: No dependency or supply-chain changes were found, but the delivery change can expose internal systemEvent content to chats.

  • [medium] Internal system events can become user-visible — src/agents/tools/cron-tool.ts:482
    The promotion path turns reminder-looking internal systemEvent text into an announced agentTurn without an explicit delivery opt-in, which can leak operational or private reminder content to the originating chat.
    Confidence: 0.74

AGENTS.md: found and applied where relevant.

What I checked:

  • stale F-rated PR: PR was opened 2026-04-01T09:07:01Z, is older than 30 days, and the latest review rated it F.
  • proof blocker: real behavior proof is missing and proof tier is F, so this branch is not merge-ready without contributor follow-up.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • Agustin Rivera: Current-main blame owns the cron tool default text, cron normalization defaulting, and current sessionKey stamping logic relevant to this PR's delivery behavior. (role: recent area contributor; confidence: medium; commits: a4e02cd1dd48; files: src/agents/tools/cron-tool.ts, src/cron/normalize.ts)

Codex review notes: model gpt-5.5, reasoning high; reviewed against 52bc2a12bc8c.

@clawsweeper clawsweeper Bot added the mantis: telegram-visible-proof Mantis should capture Telegram visible proof. label May 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 11, 2026
@clawsweeper clawsweeper Bot added mantis: telegram-visible-proof Mantis should capture Telegram visible proof. and removed mantis: telegram-visible-proof Mantis should capture Telegram visible proof. labels May 11, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels May 19, 2026
@clawsweeper

clawsweeper Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat.

Where did the egg go?
  • The egg game starts only after the PR passes the real-behavior proof check.
  • Before that, no creature or rarity is rolled. The treat waits for real proof.
  • This is still just collectible flavor: proof affects review readiness, not creature quality.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jun 10, 2026
@clawsweeper clawsweeper Bot added rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. mantis: telegram-visible-proof Mantis should capture Telegram visible proof. labels Jun 10, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jun 10, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels Jun 10, 2026
@clawsweeper

clawsweeper Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant