# 정제 미리보기 — 모든 단계에서 currentPreview 표시

## 문제
currentPreview가 배치 처리 단계(10%~100%)에서만 기록됨.
스레드 분리 단계(0~10%)에서는 미리보기가 없어서 사용자가 무엇을 처리 중인지 알 수 없음.

## 수정

**파일**: `/home/jay/projects/insuwiki/scripts/kakao_knowledge/knowledge_extractor_v2.py`

### 1. 메시지 기반 스레드 분리 (Line 282 부근)
```python
if progress_file and msg_idx % 20 == 0:
    pct = int((msg_idx / len(filtered)) * 5)
    # ★ currentPreview 추가
    preview = f"{msg.user}: {msg.content[:40]}" if hasattr(msg, 'content') else ""
    _write_progress(progress_file, {
        "status": "running",
        "progress": pct,
        "currentStep": f"스레드 분리 중 ({msg_idx}/{len(filtered)} 메시지)",
        "currentPreview": preview,  # ← 추가
        ...
    })
```

### 2. LLM 정밀 분리 (Line 341 부근)
```python
if progress_file:
    # ★ 현재 처리 중인 스레드 미리보기
    preview = ""
    if threads:
        last_thread = threads[-1]
        if last_thread.messages:
            preview = " | ".join(f"{m.user}: {m.content[:30]}" for m in last_thread.messages[:2])
    _write_progress(progress_file, {
        "status": "running",
        "progress": 5,
        "currentStep": f"LLM 스레드 정밀 분리 중 ({len(threads)}개 스레드)",
        "currentPreview": preview,  # ← 추가
        ...
    })
```

### 3. 스레드 분리 완료 (Line 357 부근)
동일하게 currentPreview 추가.

## 검증 시나리오
1. 정제 시작 → 0% 스레드 분리 단계에서 현재 처리 중인 메시지 미리보기 표시
2. 5% LLM 분리 단계에서 현재 스레드 미리보기 표시
3. 10%+ 배치 처리 단계에서 기존 currentPreview 정상 표시
4. 프론트엔드에서 progress bar 아래에 미리보기 텍스트 표시
