Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
github-actions
Bot
requested review from
jjunh33,
leegain1,
sangrae2325,
tnals0924 and
xeoxxn
November 17, 2026 16:13
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.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
챗봇 답변이 흘러가듯 나오지 않고 몇 줄씩 뚝뚝 끊겨서 나온다.
❓ 왜 해결해야 하나요?
AI 서버를 로컬에서 재 보니 학교 AI 게이트웨이(gpt-oss-120b)가 답변을 14~63자씩 0.2초마다 몰아서 보낸다(첫 조각까지 2.5초, 7조각이 0.8초 안에 도착). 우리 서버와 프론트는 받은 대로 바로 붙이므로 화면에서는 문장이 덩어리째 튀어나온다. 발표 시연에서 가장 먼저 눈에 띄는 부분이다.
⭐ 어떻게 해결했나요?
features/chat/utils/typingQueue.ts: 받은 조각을 대기열에 쌓고 30ms마다 몇 글자씩 꺼내 준다(기본 초당 약 66자).**…**)와 링크([제목](/notices/1))는 닫는 표시가 올 때까지 기다렸다가 한 번에 꺼낸다. 한 글자씩 꺼내면**·[가 잠깐 글자 그대로 보였다가 바뀌며 번쩍인다.[취소]처럼 링크가 아닌 대괄호는 그냥 글자로 흐른다.useChatStream:onDelta가 말풍선에 바로 붙이던 코드를 대기열의 콜백으로 옮겼다. 말풍선을 붙이는 로직 자체는 그대로다.isAnswering을 내려 입력창을 연다.🧩 이 PR의 한계 & 트레이드오프
**가 있으면 스트림이 끝날 때까지 그 뒤 글자가 멈춰 있다가 한 번에 나온다. 모델이 굵게를 열고 안 닫는 경우는 아직 못 봤다.⛓️ 기존 기능에 미치는 영향
useChatStream)만 바뀐다. 말풍선 나누기·실패 시 질문 되살리기·화면 떠날 때 끊기는 그대로다.useChatStream.ts)을 고치지만 겹치는 줄이 다르다. 먼저 머지되는 쪽에 맞춰 나머지를 맞춘다.🔀 Edge Case & 실패 시나리오
event: error·끊김·40초 무응답): 대기열을 비우고 멈춘 뒤 기존처럼 말풍선을 걷고 질문을 입력창에 되살린다.bubble): 앞 말풍선 글자를 다 꺼낸 뒤에 새 말풍선을 연다.📋 검토한 대안과 선택 이유
💬 리뷰 포인트
[c]속도 상수(TICK_MS·MIN_CHARS_PER_TICK·CATCH_UP_TICKS) 체감이 괜찮은지pnpm check(기존main.tsx경고 1건 외 통과),tsc -b통과.