Repository navigation
refactor: use AI SDK chat over Electron IPC - #76
Merged
Merged
Conversation
yvonneyx
marked this pull request as draft
November 19, 2026 13:15
yvonneyx
marked this pull request as ready for review
November 19, 2026 13:21
hustcc
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
分析对话原先在前端手动维护流式文字、工具结果和任务状态。本次改为
useChat+ 自定义 IPCChatTransport,主进程使用createAgentUIStream输出标准消息流,保留 Electron 的进程隔离。UIMessage.parts,移除 assistant 占位消息、重复状态和自定义任务事件;保留analysis_options,为用户消息和完整回复保存分析策略、模型快照。开发阶段直接调整数据库结构,不提供迁移、兼容或旧字段提示;使用前需要清理旧
workspace.sqlite。验证:
pnpm lint、pnpm test(51 项)、pnpm build均通过;SDK 消息校验、提交返回前取消、动态步数限制的 3 项临时自检通过。未做真实模型和桌面点击验证。