Skip to content

feat: reset the user away timer on DTMF input - #7395

Merged
chenghao-mou merged 5 commits into
mainfrom
chenghao/feat/AGT-3556-reset-away-timer
Sep 23, 2026
Merged

chenghao-mou merged 5 commits into
mainfrom
chenghao/feat/AGT-3556-reset-away-timer

Conversation

@chenghao-mou

@chenghao-mou chenghao-mou commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Incoming DTMF from the session's linked participant now resets user_away_timeout automatically. An away user returns to listening. Events from other participants or without a sender are ignored. Existing speech and tool guards still apply.

Away detection pauses without a linked participant and restarts on linking, per @davidzhao's review.

Other input handlers can refresh the same timer:

session.reset_away_timer()

Addresses AGT-3556. Source report.

Initial prompt and agent context

Model: GPT-6

Is there a supported public API we can call whenever a DTMF digit is received to signal user activity and postpone/restart the current away timeout?
Ideally we would like to keep using LiveKit's existing away handling rather than introduce a separate inactivity timer just for DTMF. (edited)

should it just be session.reset_idle_timer?

sorry, away timer

yeah, let's create a draft PR for this

should we just have a hook for @room.on("sip_dtmf_received")?

sg, go ahead

@chenghao-mou
chenghao-mou marked this pull request as ready for review September 22, 2026 12:07
@chenghao-mou
chenghao-mou requested a review from a team as a code owner September 22, 2026 12:07

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@chenghao-mou chenghao-mou changed the title feat: add a public session away timer reset feat: reset the user away timer on DTMF input Sep 22, 2026
Comment thread livekit-agents/livekit/agents/voice/room_io/room_io.py
devin-ai-integration[bot]

This comment was marked as resolved.

@chenghao-mou
chenghao-mou merged commit e084dc2 into main Sep 23, 2026
25 checks passed
@chenghao-mou
chenghao-mou deleted the chenghao/feat/AGT-3556-reset-away-timer branch September 23, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants