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": "Small model не підтримує структуровані відповіді, потрібні для розбору.",
"contextRail.surface.plan.description": "Перегляд поточного плану",
"contextRail.surface.pr.description": "Створюйте, переглядайте та зливайте pull request поточної гілки",
"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": "Адреса браузера",
@@ -1425,6 +1425,7 @@ export const dict: Record<I18nKey, string> = {
"planView.file.defaultName": "план",
"planView.title.default": "План",
"planView.error.saveFailed": "Не вдалося зберегти",
"planView.error.loadFailed": "Не вдалося завантажити цей план",
"planView.error.previewUnavailable": "Попередній перегляд недоступний",
"planView.error.switchToEditMode": "Перейдіть у режим редагування, щоб усунути проблему.",
"planView.error.writeFailed": "Помилка запису",
@@ -1519,11 +1520,46 @@ export const dict: Record<I18nKey, string> = {
"diffView.hunk.unsupported": "Додавання окремих шматків до індексу не підтримується в цьому середовищі.",
"rightSidebar.contextNotesTodo.plan.defaultTitle": "План",
"rightSidebar.contextNotesTodo.empty.selectProject": "Виберіть проєкт, щоб додати нотатки та завдання.",
"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": "Todo",
"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": "Додати завдання",
"rightSidebar.contextNotesTodo.todo.addAria": "Додати завдання",
@@ -1534,13 +1570,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": "Надіслати до нової сесії в worktree",
"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": "Видалити план",
@@ -1560,6 +1592,7 @@ export const dict: Record<I18nKey, string> = {
"rightSidebar.contextNotesTodo.toast.sentToNewSession": "Завдання надіслано до нової сесії",
"rightSidebar.contextNotesTodo.toast.sentToNewWorktreeSession": "Завдання надіслано до нової сесії в worktree",
"rightSidebar.contextNotesTodo.toast.sendTodoFailed": "Не вдалося надіслати завдання",
"rightSidebar.contextNotesTodo.toast.updatePlanFailed": "Не вдалося оновити план",
"rightSidebar.contextNotesTodo.toast.deletePlanFailed": "Не вдалося видалити план",
"rightSidebar.contextNotesTodo.toast.planFileEmpty": "Файл плану порожній",
"rightSidebar.contextNotesTodo.toast.importPlanFailed": "Не вдалося імпортувати план",
@@ -3033,6 +3066,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',