Commit Graph
214 Commits
Author SHA1 Message Date
admin a64c2cd057 feat(desktop): 持久化最近 Vault 授权 2026-09-07 17:55:42 +08:00
admin 4288f90558 feat(desktop): 接通无边框窗口标题栏控制 2026-09-07 17:48:51 +08:00
admin 508f13e5d8 feat(community): 增加签名目录与七类发行入口 2026-09-07 16:52:49 +08:00
admin afb76dc325 feat(desktop): 增加原生 Vault 写入与属性导入 2026-09-07 16:52:30 +08:00
admin 6cd8913d31 docs(code): 补齐第二阶段前后端中文注释 2026-09-07 15:00:37 +08:00
admin ca5b52bc8a fix(export): handle metadata-only notes and HTML image resources 2026-09-07 14:45:47 +08:00
admin 894f220239 fix(export): render themed note metadata in PDF snapshots 2026-09-07 14:40:56 +08:00
admin d1cbc10fc4 fix: print PDF from actual editor theme CSS and shared Markdown rendering 2026-09-07 14:33:19 +08:00
admin 9f097ea629 fix: preserve exports on close and support themed PDF without export quotas 2026-09-07 14:04:03 +08:00
admin 47c53b6f38 fix: address phase two review and theme benchmark page 2026-09-07 13:26:14 +08:00
admin e667dd55dd Record phase two acceptance evidence and synchronize delivery status 2026-09-07 02:55:19 +08:00
admin 89df10bc4e Complete phase two benchmarks, plot previews and static export workflow 2026-09-07 02:54:52 +08:00
admin ac2d36bf9c fix(chat): preserve retry attachments and per-answer context snapshots 2026-09-07 00:09:14 +08:00
admin cec8daac93 feat(chat): add workspace chat, attachments and agent delegation 2026-09-06 23:17:35 +08:00
admin 637ddbb9bf feat: improve chat retrieval, message versions and Markdown rendering 2026-09-06 21:39:40 +08:00
admin 174e723545 fix(themes): share code line layout with isolated previews 2026-09-06 17:20:12 +08:00
admin f0fe8f2629 feat(editor): add scroll navigation and update theme Markdown behavior 2026-09-06 17:15:41 +08:00
admin 3b9490e3fb fix: stabilize background operations and large embedding results 2026-09-06 16:26:17 +08:00
admin 874e916106 perf(editor): reduce long-document decoration work and fix fold navigation 2026-09-06 14:30:56 +08:00
admin 750e17212e fix(editor): recover missing files and synchronize section toggle 2026-09-06 13:29:19 +08:00
admin 8ad1db33f7 feat(editor): add markdown presets, heading folding and external file refresh 2026-09-06 12:57:09 +08:00
admin 415efc4444 feat(editor): add themed callouts and desktop command boundary 2026-09-06 11:33:19 +08:00
admin fcc319d5e1 perf(frontend): defer mermaid and split editor dependencies 2026-09-06 10:42:12 +08:00
admin 64af068df4 docs: document background indexing and merged phase two behavior 2026-09-06 03:06:40 +08:00
admin a5c44c4ac0 fix(workspace): background vector indexing and correct diagram previews 2026-09-06 02:57:56 +08:00
admin 7001794a22 fix(phase2): restore agent streams and persist extension installations 2026-09-06 02:21:27 +08:00
admin 99a92e9eb1 feat(extensions): add ZIP installation and unify action dialogs 2026-09-06 00:52:59 +08:00
admin ba66b182af fix(frontend): unify extension installation and restore theme preview scrolling 2026-09-06 00:13:32 +08:00
admin af2556d29e fix(ui): unify dialogs and complete theme component coverage 2026-09-05 23:56:02 +08:00
admin 6107b7ff1b fix(editor): handle paired inline code input and complete markdown rendering 2026-09-05 23:14:19 +08:00
admin a1ab1024f0 feat: 添加全局人设与头像设置并优化对话及弹窗交互 2026-09-05 22:26:12 +08:00
admin 7551716e13 feat: 添加模型上下文管理并统一主题组件与用量交互 2026-09-05 21:58:37 +08:00
admin 031ab135d2 fix(frontend): 保留 Mermaid 大图文字并完善图表与卡片交互 2026-09-05 20:58:33 +08:00
admin 8d626ee16b feat: 完善模型用量趋势与全局手账卡片并补齐阶段验收 2026-09-05 20:40:36 +08:00
admin 02dd585a4e fix: 修复笔记 YAML 标签保存与索引重建一致性 2026-09-05 19:40:14 +08:00
admin 8692910508 fix(frontend): 修复纸页刷新宽度并完善侧栏和图表主题 2026-09-05 19:23:21 +08:00
admin a63f6c57e0 feat(frontend): 完善工作区导航与笔记属性并适配手帐主题 2026-09-05 19:11:45 +08:00
admin d5b1050a86 feat(frontend): 完善主题导入与手帐工作区并修复 Mermaid 预览 2026-09-05 18:42:14 +08:00
admin 6d0c1400ce fix(frontend): 保留密钥编辑并隔离社区主题预览 2026-09-05 17:46:12 +08:00
admin 0f08cd051b fix(frontend): 同步 main 并修复 phase2 关闭审阅意见 2026-09-05 17:32:34 +08:00
admin 08fd62e7c5 fix(editor): 支持完整 Shiki 语言并修复语言标识与图标展示 2026-09-05 17:16:09 +08:00
admin 41bf2c53d4 fix(editor): 保留完整代码语言列表与兼容高亮 2026-09-05 16:58:39 +08:00
admin ed37099ba1 fix(editor): 修复语言菜单裁剪并接入 GitHub Shiki 配色 2026-09-05 16:52:18 +08:00
admin 32411ce6fe fix(chat): 删除会话期间阻止发送和重复删除 2026-09-05 15:12:07 +08:00
admin cce96588e2 fix(chat): 防止会话切换串写和删除后复活 2026-09-05 10:31:42 +08:00
admin feb8cc651f fix(chat): 持久化会话与消息 2026-09-05 10:12:09 +08:00
saint f273fef235 fix(frontend): 修复 PR #18 审阅问题并补充回归测试
审阅意见逐项修复:

1. 主题包安装丢弃用户 CSS
   inspectThemePackage 之前只解析 YAML 清单,ThemesView 安装时另外
   生成一套硬编码调色板,用户提供的 CSS 被整份丢掉。现在定义单文件
   格式(YAML 清单 + `---` + CSS),parseThemePackage 取出真实 CSS
   并原样安装;CSS 安全校验提前到预览阶段;按内容识别并拒绝 ZIP。

2. 主题恢复竞态导致页面无 data-theme
   initTheme 之前没有 await loadCustomThemes,自定义主题还没进
   allThemes,applyTheme 找不到主题直接 return。现在先同步落一个
   内置主题兜底(不写 localStorage,避免冲掉用户存的自定义主题 id),
   加载完成后再切到真正保存的那个;主题失效或列表加载失败时回退并
   通过 themeLoadWarning 告知用户,不再静默。

3. Trace 建树依赖事件相邻顺序
   后端真实顺序是 ModelCallStarted → ModelCallCompleted → Usage →
   ToolCall/ToolResult,工具在模型调用完成后才执行且并发跑,相邻性
   不可用。改为按 model_call_id / parent_model_call_id / tool_call_id
   关联;ToolResult 回填 ToolCall 的状态与耗时,结束后不再显示
   running;SSE 断点恢复的孤立事件退回顶层而不是丢弃。

4. Trace 叶子节点无法查看数据
   行的 click 是 `children.length && toggleExpand`,而详情 v-if 又
   要求 `children.length === 0`,两个条件互斥。拆成 expandedNodes
   与 detailNodes 两个状态集合;展开箭头改为独立按钮,行支持键盘
   与 aria-expanded;引用节点补「定位」按钮。同时修正 Usage 卡片
   字段(后端只发累计 token_usage)。

5. 引用定位逻辑三处重复且各自有缺陷
   抽出 navigateToCitation(依赖注入,可独立测试)+ useCitationNavigation。
   调用顺序固化:必须先 await loadFile 再 highlightBlock,否则
   editor store 的 loadFile 末尾会把高亮清掉;loadFile 失败时不跳转。
   AgentView / ChatView / AppShell 统一走这一处。

6. 插件命令 UI 重复实现
   抽出 PluginCommandPanel 复用 PluginMcpPanel 的 schema 驱动表单,
   删除 PluginsView 里的劣化副本。effect 现在真的执行 navigate /
   refresh(此前只拼成文本显示);补上必填校验与布尔字段初始值,
   修正「显示否但不提交该键」的不一致。

补充回归测试 64 项(相关 spec 由 25 项增至 89 项),并对 2、3、4 三项
缺陷做了变异验证:把修复回退成原写法后对应测试确实失败。
涉及 traceService / theme store / themePackageService / pluginCommandForm /
useCitationNavigation / TraceTimeline,其中后三个为新增文件。

vue-tsc -b、vitest(32 文件 182 项)、vite build 全部通过。
2026-09-05 10:04:17 +08:00
admin d15ceafbe0 fix(frontend): 统一原生表单控件样式 2026-09-05 09:57:33 +08:00
admin 311f953855 docs: 更正会话持久化状态 2026-09-05 09:48:53 +08:00
admin 89e475c0c2 fix(frontend): 补齐英文失败路径 2026-09-05 09:48:27 +08:00