feat: open local runtime clients from the composer

Add composer shortcuts for local Continue and OpenCode terminals and the official DeepSeek Harness Web client, using the current project and model bridge. Manage browser service reuse, stop actions and terminal cleanup. Upgrade DeepSeek Harness to 0.1.7-rc.2 and Cordis to 4.0.4.

Include the coordinated IPC handler extraction and related tests and documentation. Remote native-client coordinator wiring, managed Node consolidation, Ask MCP mappings and full desktop/package acceptance remain unfinished; this commit records the implemented local workflow and supporting SSH groundwork.

Validation: typecheck and lint passed; 267 focused tests passed and 5 skipped. No new real-provider calls were made for this commit. Prior real-model evidence and remaining acceptance work are documented in the feature progress files.

Release note: 本地项目选择 Continue 或 OpenCode 后,可从输入框下方打开原生终端;选择 DS 后,可打开使用当前项目和模型的官方 Web 客户端。客户端使用独立会话,DS 网页关闭后服务继续运行,可在 GoodBuddy 中停止;远程入口尚未完成。
This commit is contained in:
mesalogo
2026-09-27 08:38:00 +08:00
parent 1094433a7d
commit f81f342cde
71 changed files with 11943 additions and 2478 deletions
+26
View File
@@ -1,5 +1,31 @@
# Magic Notes Progress
## 2026-09-27: Analysis IPC Extraction
The three analysis handlers now live in `magic-notes-analysis-ipc.ts`, with
the existing tracked registration injected at the original positions around
note and todo CRUD. Model selection and lifecycle are documented in
[Main IPC Ownership](./technical-design.md#main-ipc-ownership) and
[Canvas Analysis and Comments](./technical-design.md#canvas-analysis-and-comments).
No runtime factory, model-selection rule or Agent protocol changed.
- Before and after extraction, with `GB_NOTES_LIVE=0`:
`npm test -- src/main/ipc.test.ts src/main/magic-notes src/preload/magic-notes-events.test.ts tests/magic-note-canvas-text.test.ts tests/magic-notes-analysis.electron.test.ts`
passed 8 files, 232 tests, with 1 skipped (96.49s baseline, 97.90s after).
Electron exercised vision and text-only analysis through production UI/preload/IPC
with a local model stub; real provider calls for these checks: 0.
- `npm run lint` passed. `npm run typecheck` stopped in the Node project with
11 unrelated missing-`forwardLoopback` errors in `ssh-connection-pool.test.ts`,
`ssh-host-directory-browser.test.ts` and `ssh-terminal-session.test.ts`.
Separate `npx tsc --noEmit -p tsconfig.agent.json` and
`npx tsc --noEmit -p tsconfig.web.json` passed.
- A 120-second-bounded `npm test -- --bail=1` stopped after 94.45s:
20 files passed, 1 failed; 1004 tests passed, 1 failed, 25 skipped.
`RightAssistantSidebar.resize.test.tsx:387` expected two persisted terminal
titles but received one. This was not a complete full-suite run, and the
unrelated failure was not changed.
- `git diff --check` passed with existing LF/CRLF warnings.
## 2026-09-26: Conversation Capture and Compact Notes Panel
- FR-1/FR-4: `notes` is an application-scoped optional singleton in the workbar.
+25 -1
View File
@@ -1,5 +1,23 @@
# Magic Notes Technical Design
## Main IPC Ownership
[magic-notes-ipc.ts](../../../src/main/magic-notes/magic-notes-ipc.ts) owns
note search/list/get/create/update/delete, entry create/update/delete and todo
list/status/update handlers, including conversation-source validation and entry
content mapping. Its two registration functions receive the existing tracked
`registerHandler`, window and database from [ipc.ts](../../../src/main/ipc.ts),
preserving registration order: note CRUD, entry/draft analysis, todo CRUD, then
todo analysis. [magic-notes-analysis-ipc.ts](../../../src/main/magic-notes/magic-notes-analysis-ipc.ts)
owns the three analysis handlers through two registration functions. It receives
the window, database, settings readers, usage persistence callback and existing
error formatter; it imports `createDefaultModelRuntime` directly. `ipc.ts` retains
tracked registration/removal and shared usage persistence.
Sender checks and shared input schemas stay at each handler boundary.
[rich-content.ts](../../../src/main/magic-notes/rich-content.ts) remains shared
by CRUD and draft analysis. Analysis retains revision checks, hidden task status,
stream events, error causes and nested release/dispose cleanup.
## Continuous Record Workspace
The detail mounts every entry in a continuous newest-first stream. The left index
@@ -252,7 +270,13 @@ Draft, saved-entry and todo analysis use the existing typed preload/IPC methods
and `createDefaultModelRuntime`. Each canvas request reads the current default
model profile's `supportsImageInput` (or the resolved default setting when no
profile is selected). Main resolves settings again for the actual request. This
does not change an Agent runtime or desktop-to-Agent protocol.
does not change an Agent runtime or desktop-to-Agent protocol. All three handlers
read global resolved settings per request, without applying chat/project runtime
selection. The factory creates a tool-free direct `ModelAgentRuntime`, using the
resolved default model connection and that profile's headers, body options and
output limit. Environment-managed default credentials retain the settings store's
environment overrides. The existing context-compression configuration can select
a separate summary model; it does not select the main analysis model.
`magicNoteCanvasPageCount` is an application preference: an integer from 1 to 8,
defaulting to 1 when absent in historical settings. The application center and