메모리 적용 근거 표시와 감사/명령 UX 마무리

- Cowork와 Code 진행 표시 줄에 메모리 규칙 및 학습 메모리 적용 근거를 함께 노출
- include 감사 로그 최근 3일 필터와 보관 시점 판정을 정리해 메모리 감사 상태를 더 정확히 표시
- /memory list 및 search 출력 형식을 우선순위·레이어·설명·paths·tags 중심으로 재구성하고 Release 빌드 경고/오류 0 검증
This commit is contained in:
2026-04-07 06:40:18 +09:00
parent fe843fb314
commit a35c47ed32
7 changed files with 88 additions and 20 deletions

View File

@@ -381,6 +381,27 @@ public partial class ChatWindow
};
}
private string? BuildMemoryContextEvidenceText()
{
if (_activeTab == "Chat")
return null;
var app = System.Windows.Application.Current as App;
var memory = app?.MemoryService;
if (memory == null || !_settings.Settings.Llm.EnableAgentMemory)
return null;
memory.Load(GetCurrentWorkFolder());
var docs = memory.InstructionDocuments;
var learned = memory.All.Count;
if (docs.Count == 0 && learned == 0)
return null;
var labels = docs.Take(2).Select(x => x.Label).ToList();
var labelText = labels.Count == 0 ? "" : $" · {string.Join(", ", labels)}";
return $"메모리 규칙 {docs.Count}개 · 학습 {learned}개 적용 중{labelText}";
}
private void UpdateSelectedPresetGuide(ChatConversation? conversation = null)
{
if (SelectedPresetGuide == null || SelectedPresetGuideTitle == null || SelectedPresetGuideDesc == null)