[PR #916] [MERGED] fix: 编辑器与 Agent 交互修复 #812

Closed
opened 2026-03-02 03:41:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/codexu/note-gen/pull/916
Author: @codexu
Created: 2/28/2026
Status: Merged
Merged: 2/28/2026
Merged by: @codexu

Base: devHead: feat/editor-agent-optimization


📝 Commits (7)

  • 8e9d219 docs: 添加编辑器与Agent交互及同步功能优化设计
  • 7d5b3f9 docs: 添加实现计划
  • 81eeed8 fix: 修复编辑器与Agent交互问题
  • ff48772 fix: 改进同步功能
  • c824237 fix: 改进网络检测和分支配置
  • 83e56f0 fix: 修复其他问题
  • af30448 refactor: 合并emitter.ts中重复的事件类型定义

📊 Changes

12 files changed (+1190 additions, -100 deletions)

View changed files

docs/plans/2026-02-28-editor-agent-sync-impl.md (+578 -0)
docs/plans/2026-02-28-editor-agent-sync-optimization.md (+209 -0)
📝 src/app/core/main/editor/markdown/tiptap-editor.tsx (+59 -16)
📝 src/db/chats.ts (+13 -5)
📝 src/lib/agent/tools/editor-tools.ts (+21 -4)
📝 src/lib/ai/chat.ts (+7 -1)
📝 src/lib/emitter.ts (+16 -23)
📝 src/lib/sync/auto-sync.ts (+141 -20)
📝 src/lib/sync/conflict-resolution.ts (+65 -10)
📝 src/lib/sync/sync-manager.ts (+24 -4)
📝 src/stores/chat.ts (+19 -0)
📝 src/stores/recording.ts (+38 -17)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/codexu/note-gen/pull/916 **Author:** [@codexu](https://github.com/codexu) **Created:** 2/28/2026 **Status:** ✅ Merged **Merged:** 2/28/2026 **Merged by:** [@codexu](https://github.com/codexu) **Base:** `dev` ← **Head:** `feat/editor-agent-optimization` --- ### 📝 Commits (7) - [`8e9d219`](https://github.com/codexu/note-gen/commit/8e9d21942040014669a717b88f5906de627d51b0) docs: 添加编辑器与Agent交互及同步功能优化设计 - [`7d5b3f9`](https://github.com/codexu/note-gen/commit/7d5b3f9a362679c0ec12003c4b0250bd2f4146c4) docs: 添加实现计划 - [`81eeed8`](https://github.com/codexu/note-gen/commit/81eeed8ec500b07992fe2dae0f6fe890bd1a41c7) fix: 修复编辑器与Agent交互问题 - [`ff48772`](https://github.com/codexu/note-gen/commit/ff48772048474bbc221309de40fe1e513132827b) fix: 改进同步功能 - [`c824237`](https://github.com/codexu/note-gen/commit/c824237c393ea9c55567232a45b45de3b23490ba) fix: 改进网络检测和分支配置 - [`83e56f0`](https://github.com/codexu/note-gen/commit/83e56f0f330f15741126330b0011248d7bb8683b) fix: 修复其他问题 - [`af30448`](https://github.com/codexu/note-gen/commit/af30448fc251510e6e2208485e12419f367d1112) refactor: 合并emitter.ts中重复的事件类型定义 ### 📊 Changes **12 files changed** (+1190 additions, -100 deletions) <details> <summary>View changed files</summary> ➕ `docs/plans/2026-02-28-editor-agent-sync-impl.md` (+578 -0) ➕ `docs/plans/2026-02-28-editor-agent-sync-optimization.md` (+209 -0) 📝 `src/app/core/main/editor/markdown/tiptap-editor.tsx` (+59 -16) 📝 `src/db/chats.ts` (+13 -5) 📝 `src/lib/agent/tools/editor-tools.ts` (+21 -4) 📝 `src/lib/ai/chat.ts` (+7 -1) 📝 `src/lib/emitter.ts` (+16 -23) 📝 `src/lib/sync/auto-sync.ts` (+141 -20) 📝 `src/lib/sync/conflict-resolution.ts` (+65 -10) 📝 `src/lib/sync/sync-manager.ts` (+24 -4) 📝 `src/stores/chat.ts` (+19 -0) 📝 `src/stores/recording.ts` (+38 -17) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 03:41:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/note-gen#812
No description provided.