feat: connect conversations with Magic Notes

Let users retain useful assistant replies or complete conversations without
leaving their chat workflow. Preview and edit captured text, choose an existing
note or atomically create a note with its first entry, and return to the source
conversation or message from saved records.

Add an application-scoped Notes workbar tab with title/body search and quick
text appends. Preserve drafts across conversation switches and guard closing,
replacement and disabling. Schema 48 stores optional source metadata without
rewriting file-backed bodies; source deletion retains the saved note. Older
clients cannot reopen an upgraded database without a pre-upgrade backup.

Release note: 可将助手回答或完整会话预览、编辑后加入魔法笔记,并从笔记返回原会话或消息。右侧快速笔记支持搜索和追加文字,切换会话保留草稿;采集本身不调用模型,保存后自动评论仍遵循已有设置。

Validation: isolated HEAD-based candidate passed 22 files / 930 focused tests,
plus 20 gateway tests after including its create-result fixture adjustment.
Real Electron App/preload/IPC/SQLite acceptance passed for all 502 historical
messages, exact-entry/source navigation, native keyboard input in a 214px
panel, reopen and source-deletion retention, with zero capture model calls.
Repository lint and web TypeScript passed. Cached whitespace and secret-pattern
checks passed; native-client changes and unrelated IPC extraction are excluded.

Validation limits: the isolated source tree reuses installed node_modules,
where a parallel task upgraded DSH from the committed 0.1.2-rc.1 to 0.1.7-rc.2.
Full typecheck reports 14 DSH errors in three unchanged files; the full-suite
attempt with --bail=1 also fails in deepseek-harness-host.test.ts. These are not
all-green repository or release-package results. Earlier execution-time full
suite failures and fixture repairs remain recorded in the feature progress doc.
This commit is contained in:
mesalogo
2026-09-27 08:17:54 +08:00
parent 55efca3ee1
commit 1094433a7d
51 changed files with 1949 additions and 56 deletions
+18 -1
View File
@@ -26,9 +26,26 @@ context and protects unsaved editor changes. A successful save followed by no
further edits does not prompt again on return. Narrow note layouts use an index
drawer and bounded bottom AI pane.
Conversation capture and the compact Notes workbar panel are implemented. Users
can preview and edit one assistant response or the complete conversation text,
then append it to an existing note or create a note with its first entry. Quick
notes opens the same panel for search, browsing and text appends. Saved entries
carry structured conversation sources with return navigation. The panel and full
workspace share storage and change notifications; drafts remain in App memory.
Real Electron acceptance passed through the App UI, production preload, IPC and
SQLite. Repository validation is not all green; the [progress record](./progress.md)
separates focused passes, repaired schema fixtures and execution-time failures.
## Documents
- [Technical design](./technical-design.md): file storage, schema 38 migration,
- [Conversation integration PRD](./prd.md): scope and acceptance for
conversation capture and the compact workbar panel.
- [Conversation integration logic](./logic-design.md): capture boundaries, source
lifetime, panel state, draft protection and application availability.
- [Conversation integration UI](./ui-design.md): implemented entry points, compact
panel, capture preview and source navigation, following the root UI system.
- [Technical design](./technical-design.md): file storage, schema 38 body migration,
schema 48 source metadata, desktop search and atomic initial-entry creation,
backup boundaries, database notifications, process boundaries, canvas and AI
contracts, refresh lifecycle and regression coverage.
- [Progress](./progress.md): implementation and validation evidence.