Repository navigation
feat(desktop,models): 更新弹窗 Markdown 日志渲染与自定义模型能力自动识别 - #818
Merged
Merged
Conversation
yaojin3616
force-pushed
the
feat/update-markdown-and-model-discovery
branch
from
October 29, 2026 06:11
35a69ca to
f6e1f57
Compare
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.
变更背景
releaseNotes作为纯文本渲染,Markdown 标题、列表、加粗与行内代码符号直接裸露,长日志滚动体验也较受限。/v1/models列表时,标准 OpenAI 兼容响应仅包含模型 ID,导致拉取到的模型默认不开启深度思考(Reasoning)与图片多模态输入,也缺少设置界面的思考开关。:行号(:列号)或#L行号(C列号)(如/path/to/harness.log:10092)时,此前要么未剥离:行号导致预览读取报ENOENT,要么剥离了行号但未把{ line }透传给右侧文档预览栏。修改内容
src/preload/update-notes-view.ts,在不引入innerHTML风险的前提下将受限 Markdown(标题、有序/无序列表、**加粗**、`code`)构建为 DOM 节点,过滤任何内嵌 HTML/脚本;src/preload/desktop-update-ui.ts与test/desktop-update-ui.test.ts,优化.release-notes滚动容器与无障碍键盘聚焦滚动。patches/@deepseek-ai+dsh-llm+0.2.2-alpha.2.patch、patches/@deepseek-ai+dsh-llm-pi-ai+0.2.2-alpha.2.patch、patches/@deepseek-ai+dsh-client-ui-settings-models+0.2.2-alpha.2.patch及说明文档docs/model-discovery-capabilities-patch.md;/v1/models发现阶段根据接口扩展字段或目录元数据自动识别reasoningEfforts、reasoningCompat与image输入能力;test/model-discovery-capabilities.test.mjs回归测试。patches/@deepseek-ai+dsh-client-ui-deliverables+0.2.2-alpha.2.patch、patches/@deepseek-ai+dsh-client-ui-primitives+0.2.2-alpha.2.patch、patches/@deepseek-ai+dsh-client-ui-chat+0.2.2-alpha.2.patch与test/local-path-links.test.ts;producedFileMentions/localPathReference)、Markdown 文件链接(parseFileLink)及会话openFile入口统一剥离:行号/#L行号后缀并透传{ line },使右侧预览栏既能正常打开文件又能自动滚动高亮目标行。验证记录
npx vitest run test/desktop-update-ui.test.ts test/model-discovery-capabilities.test.mjs test/local-path-links.test.ts test/file-preview.test.ts test/patch-runtime-compatibility.test.mjs test/harness-dependency-baseline.test.mjs(6 个测试文件共 51 项测试全部通过)npm run typecheck(通过)git diff --check(通过)