feat(knowledge): rebuild the project notes panel as Project knowledge (#2973)

The panel stored notes, todos and plans inside one shared JSON file that
six unrelated domains also wrote to, synchronised itself through window
CustomEvents, and could only read plans. It is now Project knowledge:
server-owned storage with explicit routes, a store with rollback, a
section sidebar, plans that open and edit in place, and search across
all of it.

Notes and plans the user pins travel with every message sent in that
project. Pinning is project state, not an attachment to one message, so
it holds until unpinned and the work status panel names what is riding
along and can detach it.

Agent memory is added alongside, in two scopes: what is true about the
user, and what is true about this codebase. The split is not cosmetic —
a wrong project fact costs one project and is noticed, while a wrong
global fact quietly shapes every session everywhere and the user has no
code to check it against. It stays separate from notes so an agent
mistake cannot land in what the user wrote. Sessions receive an index of
titles only; bodies are read on demand, because an index carrying full
text grows until it crowds out the conversation.

Deciding what a session must be told, and whether it has been told, now
lives on the server. The client owned it before, which meant sessions
started without a UI — scheduled tasks, sessions the agent dispatches —
received nothing at all, and a tab's record of what it had sent outlived
the conversation: after compaction the agent no longer held the block
while the tab went on believing it did. What was delivered is recorded
in the session's own metadata, and compaction restores it through the
runtime that already restores pinned messages, in the same turn.

Agent memory ships dark behind OPENCHAMBER_MEMORY_ENABLE: unset, there
is no tool, no routes, no session index, no settings row and no panel
tab. Absent rather than switched off, so nothing invites turning on a
feature that has not been announced. Pinned notes and plans are
unaffected and ship as normal.
This commit is contained in:
Bohdan Triapitsyn
2026-08-18 02:59:04 +03:00
committed by GitHub
parent 7611076436
commit 34e8a24b20
102 changed files with 10640 additions and 1630 deletions
+49 -10
View File
@@ -1189,12 +1189,12 @@ export const dict: Record<I18nKey, string> = {
'walkthrough.blocked.structuredOutput.descriptionUnknownModel': '스몰 모델은 워크스루에 필요한 구조화된 응답을 지원하지 않습니다.',
'contextRail.surface.plan.description': '현재 계획 보기',
'contextRail.surface.pr.description': '현재 브랜치의 풀 리퀘스트를 생성, 검토, 병합',
'contextRail.surface.notes.description': '프로젝트의 노트, 할 일, 계획',
'contextRail.surface.notes.description': '프로젝트의 노트, 할 일, 계획, 에이전트 메모리',
'contextRail.surface.context.description': '세션 컨텍스트 및 토큰 사용량',
'contextRail.surface.browser.description': '내장 웹 브라우저',
'contextRail.surface.preview.description': '개발 서버 미리보기',
'contextRail.surface.chat.description': '나란히 연 세션',
'contextRail.surface.notes': '프로젝트 노트',
'contextRail.surface.notes': '프로젝트 지식',
'contextRail.editorTree.toggle': '파일 트리 표시 전환',
'contextPanel.browser.open': '브라우저 패널 열기',
'contextPanel.browser.addressAria': '브라우저 주소',
@@ -1461,6 +1461,7 @@ export const dict: Record<I18nKey, string> = {
'planView.file.defaultName': 'plan',
'planView.title.default': '플랜',
'planView.error.saveFailed': '저장 실패',
'planView.error.loadFailed': '이 계획을 불러오지 못했습니다',
'planView.error.previewUnavailable': '미리보기를 사용할 수 없음',
'planView.error.switchToEditMode': '문제를 수정하려면 편집 모드로 전환하세요.',
'planView.error.writeFailed': '쓰기 실패',
@@ -1543,11 +1544,46 @@ export const dict: Record<I18nKey, string> = {
'diffView.hunk.unsupported': '개별 허크 스테이징은 이 환경에서 지원되지 않습니다.',
'rightSidebar.contextNotesTodo.plan.defaultTitle': '플랜',
'rightSidebar.contextNotesTodo.empty.selectProject': '메모와 Todo를 추가할 프로젝트를 선택하세요.',
'rightSidebar.contextNotesTodo.notes.title': '빠른 메모 - {project}',
'rightSidebar.contextNotesTodo.notes.placeholder': '컨텍스트, 리마인더, 링크를 기록하세요',
'rightSidebar.contextNotesTodo.todo.title': 'Todo',
'rightSidebar.contextNotesTodo.todo.itemsSingle': '{count}개 항목',
'rightSidebar.contextNotesTodo.todo.itemsPlural': '{count}개 항목',
'rightSidebar.contextNotesTodo.notes.addAria': '노트 추가',
'rightSidebar.contextNotesTodo.notes.empty': '아직 노트가 없습니다. 맥락이나 메모, 링크를 남겨 보세요.',
'rightSidebar.contextNotesTodo.notes.actions.expand': '노트 펼치기',
'rightSidebar.contextNotesTodo.notes.actions.collapse': '노트 접기',
'rightSidebar.contextNotesTodo.notes.actions.delete': '노트 삭제',
'rightSidebar.contextNotesTodo.notes.actions.pin': '에이전트 컨텍스트에 고정',
'rightSidebar.contextNotesTodo.notes.actions.unpin': '에이전트 컨텍스트에서 고정 해제',
'rightSidebar.contextNotesTodo.notes.source.selection': '채팅에서',
'rightSidebar.contextNotesTodo.notes.source.agent': '에이전트에서',
'rightSidebar.contextNotesTodo.search.placeholder': '검색',
'rightSidebar.contextNotesTodo.search.clear': '검색 지우기',
'rightSidebar.contextNotesTodo.search.noResults': '"{query}"과(와) 일치하는 항목이 없습니다.',
'rightSidebar.contextNotesTodo.toast.deleteNoteFailed': '노트를 삭제하지 못했습니다',
'rightSidebar.contextNotesTodo.toast.createNoteFailed': '노트를 만들지 못했습니다',
'rightSidebar.contextNotesTodo.tabs.notes': '노트',
'rightSidebar.contextNotesTodo.tabs.todos': '할 일',
'rightSidebar.contextNotesTodo.tabs.plans': '계획',
'rightSidebar.contextNotesTodo.plans.actions.back': '계획 목록으로',
'rightSidebar.contextNotesTodo.tabs.memory': '메모리',
'rightSidebar.contextNotesTodo.sections.label': '프로젝트 컨텍스트 섹션',
'rightSidebar.contextNotesTodo.sections.resize': '섹션 사이드바 너비 조절',
'rightSidebar.contextNotesTodo.memory.scope.project': '프로젝트',
'rightSidebar.contextNotesTodo.memory.scope.label': '메모리 범위',
'rightSidebar.contextNotesTodo.memory.scope.global': '사용자 정보',
'rightSidebar.contextNotesTodo.memory.type.fact': '사실',
'rightSidebar.contextNotesTodo.memory.badge.new': '신규',
'rightSidebar.contextNotesTodo.memory.flagged': '에이전트에 전달되지 않음 — 지시문처럼 읽힘',
'rightSidebar.contextNotesTodo.memory.badge.changed': '변경',
'rightSidebar.contextNotesTodo.memory.type.preference': '선호',
'rightSidebar.contextNotesTodo.memory.type.reference': '참조',
'rightSidebar.contextNotesTodo.memory.actions.delete': '이 항목 삭제',
'rightSidebar.contextNotesTodo.memory.actions.editTitle': '메모리 제목',
'rightSidebar.contextNotesTodo.memory.actions.editBody': '메모리 내용',
'rightSidebar.contextNotesTodo.memory.toast.saveFailed': '메모리를 저장하지 못했습니다',
'rightSidebar.contextNotesTodo.memory.toast.deleteFailed': '항목을 삭제하지 못했습니다',
'rightSidebar.contextNotesTodo.memory.empty.nothing': '에이전트가 아직 저장한 항목이 없습니다.',
'rightSidebar.contextNotesTodo.memory.empty.noMatches': '검색과 일치하는 저장 항목이 없습니다.',
'rightSidebar.contextNotesTodo.memory.empty.noProject': '프로젝트를 열면 에이전트가 기억하는 내용을 볼 수 있습니다.',
'rightSidebar.contextNotesTodo.memory.empty.unavailable': '저장된 메모리를 불러오지 못했습니다. 사라진 것은 없습니다. 다시 시도하세요.',
'rightSidebar.contextNotesTodo.todo.clearCompleted': '완료 항목 지우기',
'rightSidebar.contextNotesTodo.todo.inputPlaceholder': 'Todo 추가',
'rightSidebar.contextNotesTodo.todo.addAria': 'Todo 추가',
@@ -1558,13 +1594,9 @@ export const dict: Record<I18nKey, string> = {
'rightSidebar.contextNotesTodo.todo.actions.delete': '"{text}" 삭제',
'rightSidebar.contextNotesTodo.todo.actions.send': '보내기 "{text}"',
'rightSidebar.contextNotesTodo.todo.actions.reorder': '재정렬 "{text}"',
'rightSidebar.contextNotesTodo.todo.resizeAria': '할 일 목록 크기 조정',
'rightSidebar.contextNotesTodo.todo.sendMenu.currentSession': '현재 세션으로 보내기',
'rightSidebar.contextNotesTodo.todo.sendMenu.newSession': '새 세션으로 보내기',
'rightSidebar.contextNotesTodo.todo.sendMenu.newWorktreeSession': '새 워크트리 세션으로 보내기',
'rightSidebar.contextNotesTodo.plans.title': '플랜',
'rightSidebar.contextNotesTodo.plans.filesSingle': '{count} 파일',
'rightSidebar.contextNotesTodo.plans.filesPlural': '{count} 파일',
'rightSidebar.contextNotesTodo.plans.importFromFile': '파일에서 플랜 가져오기',
'rightSidebar.contextNotesTodo.plans.empty': '아직 저장된 플랜 없음',
'rightSidebar.contextNotesTodo.plans.deletePlan': '플랜 삭제',
@@ -1584,6 +1616,7 @@ export const dict: Record<I18nKey, string> = {
'rightSidebar.contextNotesTodo.toast.sentToNewSession': '할 일을 새 세션으로 보냈습니다',
'rightSidebar.contextNotesTodo.toast.sentToNewWorktreeSession': '할 일을 새 워크트리 세션으로 보냈습니다',
'rightSidebar.contextNotesTodo.toast.sendTodoFailed': 'Todo 전송 실패',
'rightSidebar.contextNotesTodo.toast.updatePlanFailed': '계획을 업데이트하지 못했습니다',
'rightSidebar.contextNotesTodo.toast.deletePlanFailed': '플랜 삭제 실패',
'rightSidebar.contextNotesTodo.toast.planFileEmpty': '플랜 파일이 비어 있음',
'rightSidebar.contextNotesTodo.toast.importPlanFailed': '플랜 가져오기 실패',
@@ -3032,6 +3065,12 @@ export const dict: Record<I18nKey, string> = {
'chat.workStatus.subagent.askedQuestion': '질문함',
'chat.workStatus.section.contextBreakdown': '컨텍스트 소스',
'chat.workStatus.breakdown.skills': '스킬',
'chat.workStatus.breakdown.pinnedNote': '노트',
'chat.workStatus.breakdown.unpin': '컨텍스트에서 고정 해제',
'chat.workStatus.breakdown.pinnedPlan': '계획',
'chat.workStatus.breakdown.memory': '에이전트 메모리',
'chat.workStatus.breakdown.pinnedKnowledgeSingle': '{count}개 고정',
'chat.workStatus.breakdown.pinnedKnowledgePlural': '{count}개 고정',
'chat.workStatus.breakdown.mcp': 'MCP 서버',
'chat.workStatus.action.openChanges': '변경 사항 열기',
'chat.workStatus.action.openGit': 'Git 패널 열기',