fix(message): show dry-run output for send/poll#80604
Conversation
|
Thanks for the context here. I did a careful shell check against current Close: current main already contains the same Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the merged Do we have a high-confidence way to reproduce the issue? Yes for the original bug: the linked report and Is this the best way to solve the issue? Yes. Checking Security review: Security review cleared: The diff is limited to CLI formatting and focused tests, with no dependency, workflow, secret, permission, package, or code-execution surface change. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 9594300f8c92; fix evidence: commit 508e3bf41353, main fix timestamp 2026-06-19T03:51:50Z. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
ClawSweeper applied the proposed close for this PR.
|
Summary
result.dryRuninstead ofhandledBy === "dry-run"message send --dry-runandmessage poll --dry-runrender[dry-run]text instead of success checkmarkWhy
send/pollresults returnhandledBy: "core" | "plugin"with a separatedryRunflag, so the old dry-run branch was unreachable.Fixes #80507
Validation
CI=true pnpm vitest run src/commands/message-format.test.tsReal behavior proof
message send --dry-run/message poll --dry-runcould print success-style output instead of dry-run output.CI=true pnpm tsx -e "import { formatMessageCliText } from './src/commands/message-format.ts'; const send={kind:'send',action:'send',channel:'slack',to:'channel:C123',handledBy:'core',payload:{messageId:'unknown'},dryRun:true}; const poll={kind:'poll',action:'poll',channel:'slack',to:'channel:C123',handledBy:'core',payload:{messageId:'unknown'},dryRun:true}; console.log('SEND:', formatMessageCliText(send as any).join('\\n')); console.log('POLL:', formatMessageCliText(poll as any).join('\\n'));"[dry-run]output and no longer appear as successful real sends.