Repository navigation
fix(agent): 팬이 먼저 끊으면 통화 타이머를 바로 멈춤 - #28
Merged
Merged
Conversation
팬이 통화 중에 나가면 세션은 닫히지만 3분 타이머가 남아, 작업이 끝나지 않다가 livekit이 entrypoint를 강제 취소했다. 세션 close 이벤트에서 타이머를 취소해 바로 끝나게 한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ywkim
approved these changes
Oct 19, 2026
ywkim
left a comment
Contributor
There was a problem hiding this comment.
@Lee-Soyeon 소연님, 감사합니다! 🙌
실제 전화 테스트 로그에서 원인을 짚어 주시고, close 이벤트로 타이머 task를 취소하는 최소한의 변경으로 깔끔하게 해결해 주셨습니다. 3분을 채우는 기존 종료 흐름도 그대로 유지돼서 안심하고 승인합니다.
Generated by Claude Code
Lee-Soyeon
pushed a commit
that referenced
this pull request
Oct 21, 2026
Hedra 아바타 삭제는 별도 PR로 분리한다. main(#21, #28)을 병합하고 Fish Audio -> ElevenLabs TTS 교체만 남긴다 (hedra extra와 코드 유지). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HtQpw2nbQZLwzSJGbw5E3C
2 of 4 tasks
Lee-Soyeon
added a commit
that referenced
this pull request
Oct 21, 2026
## 요약 AI 아이돌 통화의 음성을 Fish Audio에서 **ElevenLabs TTS**로 바꿉니다. Hedra 아바타 삭제와 LiveKit Agents 1.8 업그레이드는 리뷰 요청에 따라 이 PR에서 **뺐습니다** (각각 별도 PR). `livekit-agents`는 1.2.18 그대로입니다. ## 변경 사항 ### 음성 (TTS) - Fish Audio → **ElevenLabs** (`eleven_flash_v2_5`). `FANCALL_ELEVENLABS_MODEL`로 모델 변경 가능. - API 키는 `ELEVEN_API_KEY` (`ElevenLabsSettings` 추가). - extra를 `fishaudio` → `elevenlabs`로 교체 (`hedra` extra는 유지). `poetry.lock`은 main 대비 fish 플러그인 의존성 제거와 `livekit-plugins-elevenlabs` 추가만 바뀝니다. - 기본 페르소나(은우)의 Fish voice ID 제거. voice ID가 없으면 ElevenLabs 기본 목소리 사용. ### 호출하는 쪽에 영향 - `create_worker_options()`: `fish_settings` → `elevenlabs_settings`. 호스트 앱이 직접 호출하면 함께 수정 필요. `hedra_settings`는 그대로입니다. - `voice_id`는 ElevenLabs voice ID여야 함 (README, `schemas.ts` 주석에 안내). ### 이 PR에 없는 것 - Hedra 삭제: 별도 PR - LiveKit Agents 1.8 업그레이드: 별도 PR (`feat/livekit-agents-1.8`) main(#21, #28)을 병합해 충돌을 풀었습니다. ## 테스트 - [x] `make -C backend lint` 10/10, `type-check` 오류 0, `unit-test` 23/23 통과 - [x] (이전 커밋 기준) 로컬 LiveKit dev 서버에서 ElevenLabs 음성으로 응답 확인 - [ ] 브라우저 실제 통화 화면 확인 - [ ] 은우용 ElevenLabs voice ID 지정 확인 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01HtQpw2nbQZLwzSJGbw5E3C --------- Co-authored-by: Claude <noreply@anthropic.com>
Lee-Soyeon
added a commit
that referenced
this pull request
Oct 23, 2026
This was referenced Oct 23, 2026
Contributor
|
@Lee-Soyeon 소연님, 팬이 먼저 끊어도 통화 타이머가 3분까지 남아 있던 문제를 고쳐 주셔서 감사합니다 🙏 실제 전화 테스트 로그로 원인을 짚어 두셔서, 무엇이 왜 바뀌는지 바로 따라갈 수 있었습니다. 이 변경은 buppy 모노레포로 옮겨 algorima/buppy#1502 에 들어갔습니다. 소연님 커밋을 경로만 바꿔 cherry-pick해서 작성자와 커밋 메시지가 그대로 남아 있습니다. 그 PR에 리뷰도 요청드렸으니 시간 되실 때 봐 주세요. Generated by Claude Code · session session_01T5SeyErbjJvce4P8rjmZzs Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
팬이 통화 도중에 먼저 끊으면 에이전트 작업이 바로 끝나도록 고칩니다. 지금은 끊은 뒤에도 3분 타이머가 남아 있다가 강제 종료됩니다.
목적
휴대폰 전화 테스트(#26·#27)에서 9초 만에 끊었는데, 로그는 이렇게 이어졌습니다.
세션은 닫혔는데
run_call_timer가 계속 sleep 중이라 entrypoint가 반환되지 않았고, livekit이 약 37초 뒤 강제로 취소했습니다. 영상통화에서도 똑같이 일어납니다. 그동안 프로세스 하나를 쓸데없이 붙잡고, 로그에 "did not exit in time" 경고가 남습니다.변경 사항
AgentSession의close이벤트에서 그 task를 취소합니다.테스트
make unit-test통과, mypy·pyright 오류 0, pylint 10.00🤖 Generated with Claude Code