fix(agent): 복사 스레드의 중복 응답 판정을 분리#33
Merged
Merged
Conversation
lbox-limit
marked this pull request as ready for review
July 15, 2026 01:15
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.
변경 사항
session_stateDB에 저장합니다.turn-sends구현과 테스트를 기존session-state모듈에 통합합니다.배경
send_messageMCP 도구와 최종 응답을 처리하는 poll loop가 서로 다른 프로세스에서 실행되는데, 기존 중복 기록은 프로세스 로컬Set에 저장되었습니다. 따라서 실제 전송 기록을 poll loop가 관찰하지 못했고, 요청이나 스레드 경계도 명시적으로 구분되지 않았습니다.영향
같은 요청·같은 목적지·같은 스레드에서 이미 전송한 문구만 중복으로 제거됩니다. 복사한 스레드의 질문이나 이후 요청에는 동일한 답변을 다시 보낼 수 있습니다.
검증
bun run typecheckbun test— 147 passed, 0 failedgit diff --check