feat(notes): 원문 편집/이력 복원 시 AI 재처리
dogfood: 사용자가 노트 본문 수정해도 기존 AI 제목/요약이 그대로 남는 문제. NoteRepository.markAiPendingForReprocess 추가 — done/failed/pending 노트를 pending 으로 reset + pending_jobs 재투입. disabled 는 사용자가 명시적으로 비활성화한 상태라 존중하여 no-op. inboxApi 의 update-raw-text / restore-revision 핸들러가 raw 갱신 후 위 헬퍼 + worker.enqueue + pushNoteUpdated 호출. NoteCard.saveRaw 는 optimistic 으로 aiStatus='pending' 즉시 반영 → UI 가 "Inkling이 정리하는 중…" 즉시 표시, 백엔드 push 로 자동 sync. updateAiResult 의 user-edit 가드가 사용자가 직접 편집한 title/summary 는 새 AI 결과로 덮어쓰지 않으므로 안전. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,7 @@ function makeDeps(overrides: Partial<InboxIpcDeps> = {}): InboxIpcDeps {
|
||||
updateRawText: vi.fn(),
|
||||
listRevisions: vi.fn(() => []),
|
||||
restoreRevision: vi.fn(),
|
||||
markAiPendingForReprocess: vi.fn(() => ({ ok: false })),
|
||||
findById: vi.fn(),
|
||||
list: vi.fn(),
|
||||
listByStatus: vi.fn(),
|
||||
|
||||
Reference in New Issue
Block a user