Commit be1690b
fix(qa): 스레드 맥락을 글자수 대신 메시지 단위로 자르기
리뷰 반영: joined[-MAX:] 글자 슬라이스는 경계가 메시지 중간을 끊어
맥락이 깨진 채 LLM 에 들어갈 수 있었음. 최근 메시지부터 budget 까지
채우고 넘치는 오래된 메시지는 통째로 제외하도록 변경 (각 메시지 온전 보존).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cc31e68 commit be1690b
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
0 commit comments