한신대 피드백 개선팩 반영

This commit is contained in:
Yun Chan 2026-07-03 19:53:14 +09:00
parent 5a9c110c11
commit 6b6241f468
25 changed files with 1247 additions and 94 deletions

View file

@ -1503,6 +1503,11 @@ export default function Session() {
if (done.conversation_stopped || done.crisis_resource) {
conversationStopped = true;
}
const qualityRetryable = done.output_error === "client_reply_quality_retryable";
if (qualityRetryable) {
setTurnError("내담자 응답 품질을 확인하지 못했습니다. 발화를 조금 다듬어 다시 시도해 주세요.");
pushSignal("warn", "내담자 응답 재시도 필요");
}
if (clientId != null) {
const id = clientId;
@ -1528,12 +1533,12 @@ export default function Session() {
setUtterances((prev) =>
prev.map((u) => (u.id === learnerId ? { ...u, turnSeq: done.turn_seq } : u)),
);
if (!conversationStopped) {
if (!conversationStopped && !qualityRetryable) {
pushSignal("warn", "내담자 응답 없음");
}
}
setAvatarState("listening");
if (!conversationStopped) {
if (!conversationStopped && !qualityRetryable) {
void requestLiveCoach({
learnerText: text,
clientReply,