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": "El modelo pequeño no admite las respuestas estructuradas que necesita un recorrido.",
"contextRail.surface.plan.description": "Ver el plan actual",
"contextRail.surface.pr.description": "Crea, revisa y fusiona el pull request de la rama actual",
"contextRail.surface.notes.description": "Notas, tareas y planes del proyecto",
"contextRail.surface.notes.description": "Notas, tareas, planes y memoria del agente del proyecto",
"contextRail.surface.context.description": "Contexto de la sesión y uso de tokens",
"contextRail.surface.browser.description": "Navegador web integrado",
"contextRail.surface.preview.description": "Vista previa del servidor de desarrollo",
"contextRail.surface.chat.description": "Sesión abierta en paralelo",
"contextRail.surface.notes": "Notas del proyecto",
"contextRail.surface.notes": "Conocimiento del proyecto",
"contextRail.editorTree.toggle": "Alternar árbol de archivos",
"contextPanel.browser.open": "Abrir panel del navegador",
"contextPanel.browser.addressAria": "Dirección del navegador",
@@ -1425,6 +1425,7 @@ export const dict: Record<I18nKey, string> = {
"planView.file.defaultName": "plan",
"planView.title.default": "Plan",
"planView.error.saveFailed": "No se pudo guardar",
"planView.error.loadFailed": "No se pudo cargar este plan",
"planView.error.previewUnavailable": "Vista previa no disponible",
"planView.error.switchToEditMode": "Cambia al modo de edición para resolver el problema.",
"planView.error.writeFailed": "No se pudo escribir",
@@ -1519,11 +1520,46 @@ export const dict: Record<I18nKey, string> = {
"diffView.hunk.unsupported": "Preparar fragmentos individuales no es compatible en este entorno.",
"rightSidebar.contextNotesTodo.plan.defaultTitle": "Plan",
"rightSidebar.contextNotesTodo.empty.selectProject": "Selecciona un proyecto para añadir notas y tareas pendientes.",
"rightSidebar.contextNotesTodo.notes.title": "Notas rápidas — {project}",
"rightSidebar.contextNotesTodo.notes.placeholder": "Captura contexto, recordatorios o enlaces",
"rightSidebar.contextNotesTodo.todo.title": "Tareas pendientes",
"rightSidebar.contextNotesTodo.todo.itemsSingle": "{count} elemento",
"rightSidebar.contextNotesTodo.todo.itemsPlural": "{count} elementos",
"rightSidebar.contextNotesTodo.notes.addAria": "Añadir nota",
"rightSidebar.contextNotesTodo.notes.empty": "Aún no hay notas. Guarda contexto, recordatorios o enlaces.",
"rightSidebar.contextNotesTodo.notes.actions.expand": "Expandir nota",
"rightSidebar.contextNotesTodo.notes.actions.collapse": "Contraer nota",
"rightSidebar.contextNotesTodo.notes.actions.delete": "Eliminar nota",
"rightSidebar.contextNotesTodo.notes.actions.pin": "Fijar al contexto del agente",
"rightSidebar.contextNotesTodo.notes.actions.unpin": "Quitar del contexto del agente",
"rightSidebar.contextNotesTodo.notes.source.selection": "Del chat",
"rightSidebar.contextNotesTodo.notes.source.agent": "Del agente",
"rightSidebar.contextNotesTodo.search.placeholder": "Buscar",
"rightSidebar.contextNotesTodo.search.clear": "Borrar búsqueda",
"rightSidebar.contextNotesTodo.search.noResults": "Nada coincide con \"{query}\".",
"rightSidebar.contextNotesTodo.toast.deleteNoteFailed": "No se pudo eliminar la nota",
"rightSidebar.contextNotesTodo.toast.createNoteFailed": "No se pudo crear la nota",
"rightSidebar.contextNotesTodo.tabs.notes": "Notas",
"rightSidebar.contextNotesTodo.tabs.todos": "Tareas",
"rightSidebar.contextNotesTodo.tabs.plans": "Planes",
"rightSidebar.contextNotesTodo.plans.actions.back": "Volver a los planes",
"rightSidebar.contextNotesTodo.tabs.memory": "Memoria",
"rightSidebar.contextNotesTodo.sections.label": "Secciones del contexto del proyecto",
"rightSidebar.contextNotesTodo.sections.resize": "Redimensionar la barra de secciones",
"rightSidebar.contextNotesTodo.memory.scope.project": "Proyecto",
"rightSidebar.contextNotesTodo.memory.scope.label": "Ámbito de la memoria",
"rightSidebar.contextNotesTodo.memory.scope.global": "Sobre ti",
"rightSidebar.contextNotesTodo.memory.type.fact": "hecho",
"rightSidebar.contextNotesTodo.memory.badge.new": "nuevo",
"rightSidebar.contextNotesTodo.memory.flagged": "Retenido del agente: parece una instrucción",
"rightSidebar.contextNotesTodo.memory.badge.changed": "cambiado",
"rightSidebar.contextNotesTodo.memory.type.preference": "preferencia",
"rightSidebar.contextNotesTodo.memory.type.reference": "referencia",
"rightSidebar.contextNotesTodo.memory.actions.delete": "Olvidar esta memoria",
"rightSidebar.contextNotesTodo.memory.actions.editTitle": "Título de la memoria",
"rightSidebar.contextNotesTodo.memory.actions.editBody": "Texto de la memoria",
"rightSidebar.contextNotesTodo.memory.toast.saveFailed": "No se pudo guardar la memoria",
"rightSidebar.contextNotesTodo.memory.toast.deleteFailed": "No se pudo olvidar la memoria",
"rightSidebar.contextNotesTodo.memory.empty.nothing": "El agente aún no ha guardado nada aquí.",
"rightSidebar.contextNotesTodo.memory.empty.noMatches": "Ninguna memoria guardada coincide con tu búsqueda.",
"rightSidebar.contextNotesTodo.memory.empty.noProject": "Abre un proyecto para ver qué recuerda el agente sobre él.",
"rightSidebar.contextNotesTodo.memory.empty.unavailable": "No se pudo cargar la memoria guardada. No se ha perdido nada: inténtalo de nuevo.",
"rightSidebar.contextNotesTodo.todo.clearCompleted": "Limpiar completadas",
"rightSidebar.contextNotesTodo.todo.inputPlaceholder": "Añade una tarea pendiente",
"rightSidebar.contextNotesTodo.todo.addAria": "Añadir tarea pendiente",
@@ -1534,13 +1570,9 @@ export const dict: Record<I18nKey, string> = {
"rightSidebar.contextNotesTodo.todo.actions.delete": "Eliminar \"{text}\"",
"rightSidebar.contextNotesTodo.todo.actions.send": "Enviar \"{text}\"",
"rightSidebar.contextNotesTodo.todo.actions.reorder": "Reordenar \"{text}\"",
"rightSidebar.contextNotesTodo.todo.resizeAria": "Redimensionar lista de tareas",
"rightSidebar.contextNotesTodo.todo.sendMenu.currentSession": "Enviar a la sesión actual",
"rightSidebar.contextNotesTodo.todo.sendMenu.newSession": "Enviar a una nueva sesión",
"rightSidebar.contextNotesTodo.todo.sendMenu.newWorktreeSession": "Enviar a una nueva sesión de worktree",
"rightSidebar.contextNotesTodo.plans.title": "Planes",
"rightSidebar.contextNotesTodo.plans.filesSingle": "{count} archivo",
"rightSidebar.contextNotesTodo.plans.filesPlural": "{count} archivos",
"rightSidebar.contextNotesTodo.plans.importFromFile": "Importar plan desde archivo",
"rightSidebar.contextNotesTodo.plans.empty": "Aún no hay plans guardados.",
"rightSidebar.contextNotesTodo.plans.deletePlan": "Eliminar plan",
@@ -1560,6 +1592,7 @@ export const dict: Record<I18nKey, string> = {
"rightSidebar.contextNotesTodo.toast.sentToNewSession": "Tarea enviada a una nueva sesión",
"rightSidebar.contextNotesTodo.toast.sentToNewWorktreeSession": "Tarea enviada a una nueva sesión de worktree",
"rightSidebar.contextNotesTodo.toast.sendTodoFailed": "No se pudo enviar la tarea",
"rightSidebar.contextNotesTodo.toast.updatePlanFailed": "No se pudo actualizar el plan",
"rightSidebar.contextNotesTodo.toast.deletePlanFailed": "No se pudo eliminar el plan",
"rightSidebar.contextNotesTodo.toast.planFileEmpty": "El archivo del plan está vacío",
"rightSidebar.contextNotesTodo.toast.importPlanFailed": "No se pudo importar el plan",
@@ -3033,6 +3066,12 @@ export const dict: Record<I18nKey, string> = {
'chat.workStatus.subagent.askedQuestion': 'hizo una pregunta',
'chat.workStatus.section.contextBreakdown': 'Fuentes de contexto',
'chat.workStatus.breakdown.skills': 'Habilidades',
'chat.workStatus.breakdown.pinnedNote': 'nota',
'chat.workStatus.breakdown.unpin': 'Dejar de fijar al contexto',
'chat.workStatus.breakdown.pinnedPlan': 'plan',
'chat.workStatus.breakdown.memory': 'Memoria del agente',
'chat.workStatus.breakdown.pinnedKnowledgeSingle': '{count} fijado',
'chat.workStatus.breakdown.pinnedKnowledgePlural': '{count} fijados',
'chat.workStatus.breakdown.mcp': 'Servidores MCP',
'chat.workStatus.action.openChanges': 'Abrir cambios',
'chat.workStatus.action.openGit': 'Abrir panel de Git',