Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check could not safely complete for this revision. ClawSweeper will not retry this unchanged revision. Next step: No contributor action is requested. Maintainers should inspect the linked workflow run. |
|
Codex review: needs real behavior proof before merge. Reviewed September 14, 2026, 7:00 AM ET / 11:00 UTC. ClawSweeper reviewWhat this changesThe PR checks the owning Gateway’s active native approval handlers before suppressing forwarded approval prompts, with regression tests for Telegram and Discord. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 4 items remain This PR addresses a defect still present on current main and v2026.9.4. The approach is useful, but the new account lookup can restore duplicate prompts for cross-channel forwarding, and the supplied validation does not establish real delivery. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway forwards pending command and plugin approvals to configured chat destinations. Channel-native handlers can replace those forwarded prompts; the route coordinator records which handlers are running. flowchart TD
A[Pending approval] --> B[Resolve forwarding destinations]
B --> C[Check destination native handler]
D[Gateway route coordinator] --> C
C --> E[Channel suppression policy]
E --> F[Native approval prompt]
C --> G[Forwarded approval prompt]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +31, Tests +77. Total +108 across 4 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the existing destination-account resolution contract for runtime coverage, preserving fallback for inactive handlers and suppression for the actual active destination. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main suppresses configured native destinations even without a running handler. The introduced duplicate-delivery case follows from a named source account and an explicit Discord target without accountId; neither scenario was executed in this read-only review. Is this the best way to solve the issue? The runtime-aware approach is appropriate, but account selection must follow the destination's existing routing contract rather than unconditionally inheriting the source account. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against df663a946582. LabelsLabel changes:
Label 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
|
Forwarding used to drop the chat prompt whenever native delivery was configured for that target, even if the handler was deferred, disabled, or not yet started. Gate fallback suppression on a live native route runtime, matching the local prompt path, and wire the owning Gateway coordinator into the forwarder. Fixes openclaw#148031 Signed-off-by: GokayAI <[email protected]>
dc0a9e4 to
90ff199
Compare
|
Superseded by merged #148228. |
Fixes #148031
What Problem This Solves
Fixes: an approval raised from a chat that native delivery is configured for gets neither a native prompt nor the forwarded text prompt when that channel's native approval handler is not running.
User Impact
User impact: while a native approval handler is still starting, disabled, or otherwise not running, that chat still receives the forwarded text prompt so the request can be decided before it expires. When the native handler is running, forwarding stays suppressed as before.
Why This Change Was Made
The local prompt path already keeps the prompt unless a native route runtime is actually active. Forwarding now uses the same live-runtime check. The forwarder is not a channel-account task, so it reads the owning Gateway coordinator instead of configuration/route match alone.
Evidence
Focused Vitest on the real forwarder, same Telegram exec-approval config as the issue probe:
node scripts/run-vitest.mjs src/infra/exec-approval-forwarder.test.ts— 29 passed.pnpm build && pnpm check && pnpm testare in progress against this head and will be recorded here.