Skip to content

skill: call.ended fires on cancel; filter by callId#4

Merged
ofekby merged 1 commit into
mainfrom
skill/call-ended-cancel
Jun 1, 2026
Merged

skill: call.ended fires on cancel; filter by callId#4
ofekby merged 1 commit into
mainfrom
skill/call-ended-cancel

Conversation

@ofekby
Copy link
Copy Markdown
Member

@ofekby ofekby commented Jun 1, 2026

What

The call.ended event is moving to being driven by the call's terminal status (server-side change), so it now fires on any termination — completed, failed, or cancelled — and carries the terminal status plus a canceled flag.

This updates the agent-facing skill's "react to a call ending" signpost to say so, and fixes a latent bug in the example:

  • dial wait-for call.ended -f call_id=<id>-f callId=<id>. The event field is camelCase callId (what dial call itself prints and what the listen log carries); the old call_id filter would never match.

Spec-first ordering

Contract lands first in GENWAY-AI/dial-docs#15. The monorepo PR (server + sdk-node) bumps this cli submodule pointer once this merges.

🤖 Generated with Claude Code

The call.ended event is now driven by the call's terminal status, so it fires
on any termination (completed / failed / cancelled) and carries the terminal
`status` plus a `canceled` flag.

Also fixes the wait-for example filter: the event field is camelCase `callId`
(what `dial call` prints and the listen log carries), not `call_id` — the old
snake_case filter would never have matched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ofekby ofekby merged commit 831e5e0 into main Jun 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant