GPTLiveModel: interrupting a turn while a tool is running leaves the call unanswered and the session stops replying
メンテナーはふだん 1 日以内に返信
@Li-john1021 がすでに取り組んでいます。
2026年10月9日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- ai, audio-video-rtc
調査の方向性
Start in the realtime generation task in livekit-agents/livekit/agents/voice/agent_activity.py (around lines 4608-4640), where interrupted turns commit only finished tool results, and trace how _backend_open_calls is populated and cleared. Follow the existing _interrupted_tool_output handoff path to see how an error output is produced. Done means an interrupted, still-running call receives exactly one output, function_tools_executed fires, and the session replies to the next question. Reproduce it with a delayed tool and session.interrupt(force=True) first.
索引モデルが issue の本文から書いたものです。
説明
Bug Description
With GPTLiveModel, if session.interrupt() is called while the voice model is still speaking its filler and a delegated tool call is running, that call never gets an output. On an interrupted turn, the realtime generation task only commits results of tools that already finished (code). For the tool that is still running, no FunctionCallOutput is produced, function_tools_executed is not emitted, and no response.item.create is sent. The call stays in _backend_open_calls, and from then on the session does not reply to the user at all.
#6785 made every call get exactly one output, but this case (a tool still running when the turn is interrupted) is still left without one.
Expected Behavior
The call is answered when the interrupted turn drops it (for example with an error output, as _interrupted_tool_output does for a handoff), so the conversation can continue.
Reproduction Steps
async def lookup_fee(product: str) -> str:
await asyncio.sleep(8)
return "The renewal fee is 1,480 yen."
model = openai.realtime.GPTLiveModel(responses_options={"model": "gpt-6-luna"})
session = AgentSession(llm=model)
await session.start(agent=Agent(instructions="Always call lookup_fee for prices.",
tools=[function_tool(lookup_fee)]))
# ask a price question; 0.5 s after the tool starts, while the filler is still playing:
session.interrupt(force=True)
# ~20 s later, ask another question
In voice tests:
- interrupt during the filler while the tool runs: 4/4 runs never sent the tool output, and the second question got no reply (it was transcribed, but no server events came for ~35 s until close)
- interrupt after the filler (agent
thinking): 3/3 normal - interrupt a reply that has no tool call: 3/3 normal
- same as the first case, then send a
FunctionCallOutputfor the open call 3 s later: 3/3 recovered and the second question was answered
Operating System
Windows 11
Models Used
GPT-Live (gpt-live-1) with a Responses backend (gpt-6-luna)
Package Versions
livekit==1.1.18
livekit-agents==1.8.3
livekit-plugins-openai==1.8.3
python==3.13
The code path above is unchanged in 1.8.5.
Additional Context
Our app calls session.interrupt(force=True) from error recovery and before a SIP transfer, so this can leave a phone call silent. Sending an output for the open call ourselves after the interrupt works around it.
- 主要言語
- Python
- スター
- 14.6k
- フォーク
- 3.9k
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 153
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
livekit/agents のほかの issue
-
BM25SearchStrategy (the default) never matches underscore-joined terms in tool descriptions or param descriptions対応中かも @BlueX888 が 1 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
livekit/agents#7727 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Assistant markup is stripped from chat history when expressive mode is off対応中かも @ShivamSharma43 が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
docs: openai.LLM vs openai.responses.LLM for HTTP OpenAI-compat hosts再び着手できるかも @AbarnaaSree が 44 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
livekit/agents#7022 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Plugin] livekit-plugins-sherpa: local TTS on sherpa-onnx (Kokoro, Kitten, Piper)対応中かも @mahimairaja が 1 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
spec-kitty/spec-kitty#6112 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: OpenRouter streaming chunks report the requested router name instead of the model OpenRouter served対応中かも @Mrun25 が今日担当しました。 オープンbug llm translation
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
BerriAI/litellm#46095 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
uberdeveloper/fastbt#29 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
andrew-blake/melcloudhome#368 ·
メンテナーはふだん 1 日以内に返信
-
lane:discover
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SPARDiffData/differential-data-collection#33 ·
メンテナーはふだん 1 日以内に返信