Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 29, 2026, 9:34 AM ET / 13:34 UTC. Summary PR surface: Source +164, Tests +291. Total +455 across 4 files. Reproducibility: yes. Source inspection shows the PR writes openclaw/delivery-mirror rows while current replay filtering removes those rows before provider prompt submission, so transcript-append proof does not reproduce the claimed next-turn context fix. 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: Route proactive delivery context through a replay-safe mechanism such as system events or pending-question context, and keep transcript mirrors as bookkeeping unless maintainers explicitly narrow the scope. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows the PR writes openclaw/delivery-mirror rows while current replay filtering removes those rows before provider prompt submission, so transcript-append proof does not reproduce the claimed next-turn context fix. Is this the best way to solve the issue? No. Transcript mirroring is plausible history bookkeeping, but the best fix for the reported conversation-context bug needs a maintainer-approved replay-safe mechanism such as system-event or pending-question context. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against be94853de0d0. Label changesLabel justifications:
Evidence reviewedPR surface: Source +164, Tests +291. Total +455 across 4 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
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
PER-161 Supersedes openclaw#86140 by covering both cron announce/failure delivery and heartbeat/digest delivery in one proactive transcript mirror fix.
25ce2a2 to
b154199
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: [codex] mirror proactive deliveries into session transcripts This is item 1/1 in the current shard. Shard 18/31. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Closing due to inactivity. |
Summary
cron-announce-mirror:v1:*idempotency key.:topic:and Slack thread suffixes.heartbeat-delivery-mirror:v1:*idempotency key so follow-up replies can see the proactive message that was actually sent.Supersedes #86140 with the same bug class handled in one PR.
Verification
origin/main5f934830d38272dbe5ed12b453430599378dd936; PR head is0a806a46410479c718e79884c8cb9148c84645b9.node scripts/run-vitest.mjs src/cron/delivery.failure-notify.test.ts(1 file, 13 tests passed)node scripts/run-vitest.mjs src/infra/heartbeat-runner.respects-ackmaxchars-heartbeat-acks.test.ts(1 file, 14 tests passed)pnpm exec oxfmt --check --threads=1 src/cron/delivery.ts src/cron/delivery.failure-notify.test.ts src/infra/heartbeat-runner.ts src/infra/heartbeat-runner.respects-ackmaxchars-heartbeat-acks.test.tsgit diff --check origin/main...HEADpnpm changed:lanes --json(core,coreTests)pnpm check:changednode --import tsx --input-type=module -temp-state cron alias proof (target_session_key=main,canonical_session_key=agent:ops:work,alias_mirror_ok=true)Changelog candidate
Note: the changelog line is intentionally kept out of this PR diff to avoid repeated
CHANGELOG.mdconflicts whilemainis moving quickly. It can be added at landing.Real behavior proof
Behavior addressed: Proactive outbound deliveries that are visible to a user now append the delivered assistant text to the transcript that the next turn will read. Cron announce/failure delivery mirrors only into custom/main session keys and skips routed direct/dm/group/channel chat transcripts, including provider-owned suffixes such as Telegram topics. Heartbeat/digest delivery mirrors into the active/base chat session key, so a reply after a WhatsApp-style proactive digest has the sent digest in context.
Real environment tested: Local OpenClaw checkout
/Users/dross/openclaw-cron-transcript-mirror, branchcodex/proactive-delivery-transcript-mirrors, head0a806a46410479c718e79884c8cb9148c84645b9, based onorigin/main5f934830d38272dbe5ed12b453430599378dd936, with a temporaryOPENCLAW_STATE_DIR. The proof uses a local in-process outbound plugin namedproofline, so no private external account, phone number, endpoint, or token is needed. It exercisessendCronAnnouncePayloadStrictandrunHeartbeatOncethroughsendDurableMessageBatch, outbound delivery, and transcript append.Exact steps or command run after this patch: Ran
node --import tsx --input-type=module -from the repo root with an inline harness that registered a localprooflineoutbound adapter, seeded the default session store with a custom cron session key, a Telegram topic-suffixed group session key, and a direct heartbeat session key, delivered cron and heartbeat messages, then read the resulting transcript files from the temporary state directory.Evidence after fix:
Observed result after fix: All three sends reached the local outbound adapter. The custom cron session transcript was created and ended with the mirrored assistant message. The Telegram topic-suffixed group session still delivered but did not create a transcript mirror. The direct heartbeat session transcript was created and ended with the mirrored heartbeat/digest assistant message.
What was not tested: I did not run a real WhatsApp, Telegram, or Slack network send from this branch. The motivating live WhatsApp evidence was captured separately on a private Dross setup: a heartbeat/digest message was visible in WhatsApp, the user replied immediately after it, and the active session transcript did not contain the digest before this patch. That before-fix evidence is privacy-redacted and not attached as a PR image.