Repository navigation
fix(voice-call): reject unsupported pre-connect DTMF - #155491
mfurkanakinci wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThe voice-call plugin rejects unsupported pre-connect keypad digits before saving or dialing a call, adds regression coverage, and documents the Twilio conversation-mode restriction. Review scores
Merge readiness⛔ Blocked before merge - 4 items remain This remains a useful repair for a source-confirmed defect on current main. No blocking code bug was found, but after-fix real behavior proof and the compatibility choice remain unresolved. Priority: P2 Decision needed
Before merge
FindingsNone. Agent review detailsHow this fits togetherThe voice-call plugin accepts call requests from agent tools and Gateway methods. Its call manager validates requests, saves call records, and dispatches calls to the configured telephony provider. flowchart TD
A[Agent tool or Gateway request] --> B[Call manager validation]
B --> C{Pre-connect digits supported?}
C -->|No| D[Return error before dialing]
C -->|Yes or no digits| E[Save call record]
E --> F[Telephony provider]
F --> G[Call initiation result]
Technical reviewBest possible solution: Make ignored digits visible while preserving ordinary calls; prefer an explicit strict-rejection mode unless the voice-call owner accepts unconditional rejection. Do we have a high-confidence way to reproduce the issue? Yes, source provides a high-confidence path: initiate a Plivo or Telnyx conversation call with dtmfSequence and observe that current main forwards instructions those providers never consume. This review did not execute that path. Is this the best way to solve the issue? The manager guard is a narrow repair for misleading success, but unconditional refusal needs a compatibility decision; visible warnings with opt-in strict rejection preserve existing dialing more safely. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3c904ae54750. Merge-risk optionsMaintainer options:
SecurityNone. EvidenceWhat I checked:
PR surfaceSource +11, Tests +53, Docs 0. Total +64 across 5 files. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 7, 2026, 12:51 AM ET / 04:51 UTC (Revision 5). |
Closes #152577
What Problem This Solves
Plivo and Telnyx calls accept
dtmfSequenceand report success even though the requested extension or IVR digits are never sent.User Impact
Unsupported pre-connect digits now return a clear error before creating or dialing a call. Twilio conversation calls retain pre-connect DTMF support, and ordinary calls remain available.
Why This Change Was Made
Validate the provider in the existing call manager before admission or persistence. Only Twilio consumes the generated pre-connect instructions; mid-call DTMF support is a separate capability. Tool descriptions and interface documentation now state the carrier and mode restriction.
Evidence
CallManager/SQLite regression returnedsuccess: truefor both unsupported providers; the Twilio control passed.git diff --check, and independent P2 review passed.Carrier operations were simulated through the existing provider fixture; no live calls were placed. Full build and broad typechecking were not run.