Repository navigation
feat(call): 로그인한 팬의 지난 통화를 연습생이 기억하기 - #41
Lee-Soyeon wants to merge 1 commit into
Conversation
Adds a call_memories table, an add and forget route under /live-rooms/memory, and memoryKey on dispatch: when the fan is signed in and the host passes no memory, the stored lines of earlier calls with that trainee are loaded. Lines are scoped by the signed-in user id, capped at 200 per trainee, and the fan can forget them. The host app must run the new migration. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz
📦 fancall 개발은 buppy 모노레포로 옮겼습니다fancall은 이제 algorima/buppy 안의 모듈(
이 PR#37 위에 쌓여 있습니다. 경로 대응
옮기는 방법algorima/buppy#1499와 같은 경로 매핑으로 이 PR의 커밋을 다시 쓴 뒤 buppy에 cherry-pick합니다. 작성자와 커밋 메시지가 그대로 남고, 메시지의 git clone https://github.com/algorima/fancall.git fancall-buppy && cd fancall-buppy
BASE=feat/pass-naturalness; PR_BRANCH=feat/call-memory
for b in "$BASE" "$PR_BRANCH"; do git show-ref -q --verify "refs/heads/$b" || git branch "$b" "origin/$b"; done
git filter-repo --force --refs "$BASE" "$PR_BRANCH" \
--path backend/fancall/ --path backend/tests/unit/ \
--path frontend/src/client.ts --path frontend/src/index.ts --path frontend/src/schemas.ts \
--path frontend/src/components/ --path frontend/src/i18n/translations.ts \
--path frontend/src/i18n/locales/ --path frontend/src/repositories/ \
--path-rename backend/tests/unit/:backend/tests/unit/test_fancall/ \
--path-rename frontend/src/:frontend/src/fancall/ \
--message-callback 'import re
return re.sub(rb"\(#(\d+)\)", rb"(aioiahq/fancall#\1)", message)'cd ../buppy && git fetch origin main && git switch -c <새 브랜치> origin/main
git fetch ../fancall-buppy "$BASE:fancall/$BASE" "$PR_BRANCH:fancall/$PR_BRANCH"
git cherry-pick "fancall/$BASE..fancall/$PR_BRANCH"buppy에서 달라진 점
옮긴 뒤에는 이 PR에 buppy PR 링크를 남기고 닫아 주세요. Generated by Claude Code · session session_01T5SeyErbjJvce4P8rjmZzs Generated by Claude Code |
|
buppy 이식 순서 (기록용) buppy의 fancall 스택은 #1508 → #1503(#15·#18) → #1504(#26·#32·#27) → #1505(#31·#33) → #1506(#19·#20)입니다. 모두 fancall에서 이미 머지된 PR만 옮겼고, 지금 열린 PR과 겹치는 커밋은 없습니다.
#17 의존 문제 #34~#43은 모두 #17 브랜치( 이 PR은 5번 단계이고 #37 위에 있습니다. Generated by Claude Code · session session_01T5SeyErbjJvce4P8rjmZzs Generated by Claude Code |
로그인한 팬이 걸었던 연습생과 다시 통화하면 연습생이 지난 통화를 기억하고 먼저 꺼냅니다.
목적
지금은 통화가 끝나면 대화가 사라져서 팬이 다시 걸어도 연습생이 처음 보는 사람처럼 대합니다. 경쟁 앱 리뷰에서 "한 번 대화하고 나면 다시 모르는 사람이 된다"가 반복해서 나온 불만이라(판정표 §1.1 기억 항목), 팬이 쌓은 관계가 이어지게 만듭니다. 이 PR은 앞서 만든
memory(통화에 지난 대화를 넣는 입구)에 저장하는 쪽을 채웁니다.주요 변경 사항
통화 중 대화를 앱으로 내보내기 (
feat/pass-naturalness에서 이미 푸시됨)fancall.transcript로 전달저장과 불러오기 (이 PR)
call_memories: 로그인한 사용자 id × 연습생 key별로 줄 저장, 최근 200줄만 유지dispatch)에memoryKey를 보내면 로그인한 팬의 저장된 줄을 자동으로memory에 넣음. 앱이memory를 직접 보내면 그쪽을 우선POST /live-rooms/memory로 줄 추가(한 번에 50줄까지),DELETE /live-rooms/memory/{memoryKey}로 그 연습생과의 기억 삭제LiveRoomRepository.appendMemory,forgetMemory,AgentDispatchRequest.memoryKey호스트 앱이 해야 할 일
a7c3d2e91f40_call_memories_table) 실행memoryKey(연습생 id) 전달AgentCall의onTranscriptLine에서 줄을 모아appendMemory호출(통화 끝나기 전·끝날 때)forgetMemory호출개인정보 관련 결정이 필요한 것
테스트 체크리스트
자동 시험: 단위 테스트 130개(저장소 7 · 라우트 9 추가), pylint 10/10, mypy·pyright 0, 프론트 type-check·jest 통과. Postgres 마이그레이션 실행은 아직 해 보지 못했습니다(테스트는 SQLite).
🤖 Generated with Claude Code
https://claude.ai/code/session_01AtsuqBSuAK5BAFAqzBocNz