Repository navigation
Conversation
40623a7 to
79a03cd
Compare
|
Codex review: needs changes before merge. Reviewed May 24, 2026, 3:36 PM ET / 19:36 UTC. Summary PR surface: Source +67, Tests +81. Total +148 across 2 files. Reproducibility: yes. A focused source-level repro would call Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge Security Review findings
Review detailsBest possible solution: Keep the helper mirror for main/custom session keys, but classify routed direct, legacy dm, group, and channel session keys robustly across provider-owned suffixes before merge. Do we have a high-confidence way to reproduce the issue? Yes. A focused source-level repro would call Is this the best way to solve the issue? No, not yet. The mirror approach is narrow and maintainable, but the routed-session suppression needs to cover provider-owned group/channel suffixes before it is the best fix. Full review comments:
Overall correctness: patch is incorrect Codex review notes: model gpt-5.5, reasoning high; reviewed against 43252c809910. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +67, Tests +81. Total +148 across 2 files. View PR surface stats
Acceptance criteria:
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
|
79a03cd to
eed8122
Compare
|
ClawSweeper PR egg 🔥 Warming up: real-behavior proof passed; findings, security review, or rank-up moves are still in progress. Hatch commandComment Hatchability rules:
What is this egg doing here?
|
eed8122 to
375f94f
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
375f94f to
b20428f
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
b20428f to
f0f7de6
Compare
2b8456c to
6d32adc
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
6d32adc to
eade497
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Correction: reopened. The goal is to find a cleaner solution to the repeated |
eade497 to
4102b6c
Compare
4102b6c to
5af6df9
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Closing in favor of #86491. #86491 carries the same cron transcript-mirror fix, folds in the related heartbeat/digest transcript-mirror fix from the live follow-up bug, and keeps |
PER-161 Supersedes openclaw#86140 by covering both cron announce/failure delivery and heartbeat/digest delivery in one proactive transcript mirror fix.
Summary
cron-announce-mirror:v1:*idempotency key so repeated delivery does not duplicate transcript rows.agent:<id>:<channel>:direct:<peer>, legacyagent:<id>:<channel>:dm:<peer>, groups, and channels so cron delivery does not race an active embedded chat session lock.Verification
origin/mainefd88dc00d8da4d5bf8fea1d928fd36169073957; current PR head is5af6df99e9670edc89bee19ce48bac5470e3f37c.git diff --check origin/main...HEADpnpm changed:lanes --json(core,coreTests)pnpm test src/cron/delivery.failure-notify.test.ts(1 file, 7 tests passed)pnpm check:changedpnpm test src/agents/model-catalog-visibility.test.ts(1 file, 3 tests passed)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: Cron announce/failure-alert delivery that resolves to a safe session-bound target now mirrors the delivered assistant text into that session transcript before the next turn can rely on the transcript. Routed peer/channel session keys, including backward-compatible
:dm:direct-message keys, are intentionally not mirrored by this helper to avoid the active-session lock race called out in review.Real environment tested: Local OpenClaw checkout
/Users/dross/openclaw-cron-transcript-mirror, branchcodex/fix-cron-session-transcript-mirror, proof headeade497bb55d728612dcb3b87f8390560edde533, based onorigin/main07f500aa562d4f414a6b85d785b2e6c2d776cb8d, with a temporaryOPENCLAW_STATE_DIR. The current PR head5af6df99e9670edc89bee19ce48bac5470e3f37cpreserves the samesrc/cron/**source/test patch, rebased onto currentmain, with the volatileCHANGELOG.mdedit removed. The proof exercises the real runtime pathsendCronAnnouncePayloadStrict->sendDurableMessageBatch-> channel outbound adapter -> transcript append. It uses a local proof LINE outbound adapter so no private external account, phone number, endpoint, or token is needed.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 local LINE outbound adapter, seeded the session store with a custom session key, a routeddirectpeer-session key, and a legacy routeddmpeer-session key, invokedsendCronAnnouncePayloadStrictfor all three targets, then read the resulting transcript files from the temporary state directory.Evidence after fix:
Observed result after fix: All three cron announce sends reached the outbound adapter. The custom session transcript was created and ended with the mirrored assistant message plus the stable cron mirror idempotency key. The routed
directand legacydmpeer-session sends still delivered, but neither peer-session transcript file was created, confirming the lock-safe mirror gate covers both current and backward-compatible direct-message key shapes.What was not tested: I did not run a real WhatsApp or Telegram network send from this branch. The original WhatsApp incident evidence was captured separately from a redacted live screenshot and logs: a cron announce was visible in WhatsApp at 17:17, the user replied at 17:18, and the live session transcript did not contain the cron announce before that reply. That before-fix evidence is privacy-redacted and not attached as a PR image.