Repository navigation
fix(outbound): recognize current-source message-tool sends - #116560
fuller-stack-dev merged 4 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 6:07 PM ET / 22:07 UTC. ClawSweeper reviewWhat this changesThis PR records confirmed message-tool delivery to the active source conversation in automatic reply mode, including Discord adopted threads, so OpenClaw does not append a false no-visible-reply fallback. Merge readinessKeep this PR open for explicit maintainer review. It is authored by a repository member and carries the protected Priority: P1 Review scores
Verification
How this fits togetherOutbound message actions return delivery receipts after a channel transport accepts a send. Auto-reply finalization and Control UI projection consume those receipts to decide whether a source conversation already received a visible response or still needs fallback handling. flowchart LR
A[Inbound source conversation] --> B[Agent message tool]
B --> C[Outbound channel send]
C --> D[Authorized delivery receipt]
D --> E[Source-reply classification]
E --> F[Fallback decision]
E --> G[Control UI transcript]
F --> H[Visible channel outcome]
Decision needed
Why: This is a deliberate cross-channel delivery semantic change with a protected maintainer label; source tests support the implementation, but final acceptance determines the durable delivery and projection contract. Before merge
Agent review detailsSecurityNone. PR surfaceSource +28, Tests +246. Total +274 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Rebase onto current Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: an automatic-mode message-tool send with a successful authorized current-source receipt reaches the changed classifier, while failed, unrelated, and newly entered-thread receipts must remain ineligible. The PR also supplies focused red-to-green Testbox evidence, though this review did not independently execute it. Is this the best way to solve the issue? Yes, conditionally: recording the fact at the outbound delivery boundary is safer than inferring it later from model output or target/text aggregates. The retained matcher should remain explicitly limited to legacy results, as the updated call-site comment states. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4c331166c40c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Thanks for this — the shape looks right: the outbound runner is where the delivery receipt exists, so classifying the route there beats inferring it downstream. Two things I would like resolved before merge, both about the widened marker rather than the Discord adapter: 1. Second consumer of The other consumer looks unaffected, for what it is worth: 2. Two answers to one question. Nothing else blocking from me. The negative controls you added (failed send, other account, other thread, unrelated target) are the right ones to have. |
|
Addressed in
Focused Testbox proof is 54/54 green across the projection, shared outbound runner, and source-reply classifier: https://github.com/openclaw/openclaw/actions/runs/30585410621. Fresh autoreview is clean. |
|
Pre-land note on the latest ClawSweeper rank-up move: I am not rewriting the shared contributor branch solely because |
|
Merged via squash.
|
…-supported-paths * origin/main: (168 commits) fix(plugins): keep registry sqlite root consistent (#116427) fix(cli): keep Gateway auth failures parseable in JSON (#116597) fix(trajectory): preserve prompts in oversized events (#116220) test(buzz): add live QA Lab channel lane (#116298) chore(i18n): refresh native locales (#116567) feat: add OpenClaw TUI prototype skill (#116583) fix(update): accept concrete versions selected by ranges (#116585) fix(agents): preserve locked session model routes test(qa-lab): preserve Matrix fault proxy identity fix(ci): extend OpenAI live profile setup budget (#116580) fix: prevent configured models from stalling startup (#116553) fix(cli): close MCP listener after one-shot commands fix(auto-reply): keep explicit NO_REPLY silent (#116548) test(discord): cover deferred backpressure terminals fix(discord): cancel backpressured realtime playback test(discord): cover realtime output backpressure fix(codex): add remote WebSocket heartbeat and reconnect (#116135) fix(macos): wait for the current reconnect snapshot (#116550) fix(outbound): recognize current-source message-tool sends (#116560) fix(voice-call): type cancelled consult outcomes ... # Conflicts: # extensions/google/setup-api.test.ts # ui/src/e2e/model-setup.e2e.test.ts
…116560) * fix(discord): recognize adopted thread sends * fix(discord): require successful adopted thread delivery * fix(outbound): mark automatic current-source sends * test(gateway): cover automatic source projection
…-supported-paths * origin/main: (168 commits) fix(plugins): keep registry sqlite root consistent (openclaw#116427) fix(cli): keep Gateway auth failures parseable in JSON (openclaw#116597) fix(trajectory): preserve prompts in oversized events (openclaw#116220) test(buzz): add live QA Lab channel lane (openclaw#116298) chore(i18n): refresh native locales (openclaw#116567) feat: add OpenClaw TUI prototype skill (openclaw#116583) fix(update): accept concrete versions selected by ranges (openclaw#116585) fix(agents): preserve locked session model routes test(qa-lab): preserve Matrix fault proxy identity fix(ci): extend OpenAI live profile setup budget (openclaw#116580) fix: prevent configured models from stalling startup (openclaw#116553) fix(cli): close MCP listener after one-shot commands fix(auto-reply): keep explicit NO_REPLY silent (openclaw#116548) test(discord): cover deferred backpressure terminals fix(discord): cancel backpressured realtime playback test(discord): cover realtime output backpressure fix(codex): add remote WebSocket heartbeat and reconnect (openclaw#116135) fix(macos): wait for the current reconnect snapshot (openclaw#116550) fix(outbound): recognize current-source message-tool sends (openclaw#116560) fix(voice-call): type cancelled consult outcomes ... # Conflicts: # extensions/google/setup-api.test.ts # ui/src/e2e/model-setup.e2e.test.ts
What Problem This Solves
Fixes false no-visible-reply fallbacks after the message tool already delivered the response to the exact source conversation. The missing delivery classification affected shared automatic-mode sends, including reported Slack cases, as well as Discord threads created and adopted during the active turn.
Why This Change Was Made
The shared outbound runner now records successful, authorized sends to the exact current source in every reply mode. This is channel-agnostic: core and plugin-backed
message.sendtransports use the same route and receipt classifier, while unrelated channels, accounts, and threads remain unrelated.Discord keeps a narrow adapter for its unique mid-turn adopted-thread transition because that newly created route does not exist in the original turn context. Generic Discord send, upload, and thread-reply actions reuse that active route only after a positive runtime delivery receipt.
This is intentionally delivery-based rather than relying on a final
NO_REPLYtoken. A failed or unrelated send must leave the source fallback eligible.User Impact
Slack and other channels no longer append a misleading no-reply failure after a successful message-tool response to the current conversation. Discord adopted-thread workflows receive the same behavior. Failed sends and sends elsewhere still retain the fallback.
A confirmed automatic-mode current-source send is intentionally mirrored into Control UI chat history. The structured route receipt is authoritative for current runtimes; the target/text/media matcher remains only as a legacy-evidence fallback.
Evidence
5fa72a7ef2cdfb8801b5f075cc501fae8096a85b.message.sendto the trusted current conversation was red before the shared change (1 failed, 26 passed) and green after it (27/27).ok: false, and suppressed/unconfirmed projection routes.tbx_01kytghtyt26tyxn08y3g8yq01; https://github.com/openclaw/openclaw/actions/runs/30585410621.git diff --checkpassed.Related PR Comparison
#116548 addresses the separate semantic question of preserving explicit
NO_REPLYsilence. It is not a substitute for this delivery-accounting repair: delivery evidence is required so failed or unrelated sends cannot suppress the fallback.