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 16, 2026 10:28
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.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
챗봇이 공지·행사를 근거로 답하면, 마지막 줄에
출처: [사물함 추가 신청 안내](/notices/11) (2026-11-14)처럼 마크다운 링크를 보내요(billilge/stream-ai#82). 지금 말풍선은**굵게**만 처리해서 이 링크가[...](/notices/11)글자 그대로 보여요.❓ 왜 해결해야 하나요?
학생이 답을 보고 원문 공지를 바로 확인할 수 있어야 해요. 특히 학사·신청 기간처럼 틀리면 피해가 큰 정보는 챗봇이 "원문을 확인해 주세요"로 안내하는데, 그 원문으로 가는 길이 없었어요.
⭐ 어떻게 해결했나요?
1. 링크 렌더링 (
ChatBotMessageBubble.tsx)[글자](/경로)를 react-router<Link viewTransition>으로 그려요. 공지 목록에서 상세로 갈 때와 같은 앱 안 이동이에요.handleShouldStartLoad)에 걸리지 않고, 안드로이드 뒤로 버튼으로 돌아올 수 있어요.**굵게**를 그대로 처리해요.2. 돌아오면 대화 복원 (
utils/chatSnapshot.ts,useChatStream.ts,ChatEntryScreen.tsx)location.key를 붙였어요.conversationId도 같이 되살려요. 돌아와서 이어 묻는 질문도 서버가 앞 대화 이력을 붙여요.useState초기값 함수를 두 번 불러서, 읽으면서 지우면 두 번째 호출이 빈 값을 받기 때문이에요. 지우기는useEffect에서 해요.🧩 이 PR의 한계 & 트레이드오프
)가 아직 안 온 링크는 잠깐[제목](/noti처럼 글자로 보였다가, 닫히는 조각이 오면 링크로 바뀌어요.⛓️ 기존 기능에 미치는 영향
useChatStream에restored옵션(선택)이 생겼고, 반환 값에conversationId가 추가됐어요.🔀 Edge Case & 실패 시나리오
/로 시작하는 앱 안 경로만 링크로 만들어요.https://...,//다른사이트,javascript:는 글자 그대로 보여요. 답변은 모델이 쓴 글이라 눌리는 외부 링크가 섞이면 안 돼요.📋 검토한 대안과 선택 이유
event: source로 출처를 따로 보내는 방식: 카드로 예쁘게 그릴 수 있어요. 대신 백엔드 중계(StreamAiChatClient)가 모르는 이벤트를 버리고 있어서 세 저장소를 다 고쳐야 해요. 슬랑제(11/21) 전이라 마크다운 링크를 골랐어요.💬 리뷰 포인트
location.key로 새 대화와 돌아온 대화를 가르는 방식이 다른 화면 흐름과 어긋나지 않는지 봐 주세요.확인한 것
pnpm check: 통과(경고 1건은 기존src/main.tsx),pnpm build: 통과.https://·//주소는 글자 그대로였어요./notices/11로 이동하고, 뒤로 가면 대화가 그대로 되살아났어요. 보관본은 지워졌어요.conversationId로 갔어요.