liaoyl830

Results issues of liaoyl830

## Summary 修复 #4956: 会话回收报错 **问题:** 用户尝试删除有对话历史的会话时,在 Windows 上可能会失败,报错信息为文件被占用。新会话(无对话)可以正常删除。 **根因:** `movePathIfExists` 函数使用 `os.Rename` 移动会话目录到回收站。在 Windows 上,如果文件句柄被短暂占用(如防病毒软件扫描、索引服务、或刚关闭的文件),`os.Rename` 会失败。 **修复:** 添加回退机制: 1. 首先尝试 `os.Rename`(快速、原子操作) 2. 如果失败且错误是跨设备(EXDEV)或文件被占用(Windows ERROR_SHARING_VIOLATION),则回退到复制+删除 3. 复制+删除:递归复制目录树,然后删除源 4. 在 Windows...

desktop
v2

## Summary 修复 #4954: 引入文件导致会话摘要显示异常 **问题:** 当用户通过 @ 引用文件时,会话标题/摘要显示为 "Referenced context..." 开头的字符串,而不是用户实际输入的内容。 **根因:** 控制器在处理 @ 引用时,会在用户消息前注入 "Referenced context:" 前缀和 XML 引用块(``、``、``、``)。标题生成逻辑没有跳过这个前缀。 **修复:** - 在 `internal/control/input.go` 中添加 `StripReferencedContextPrefix()` 函数,移除 "Referenced context:"...

desktop
v2
agent

## Summary Fixes #4814 `applyDeepSeekOfficialDefaultPricing()` always called `deepSeekV4PriceForModel()` which ignored the `lang` parameter and returned RMB prices from `deepSeekV4Prices()`. Users who configured `currency = "$"` with matching USD official prices...

v2
config

## Summary 修复 #4875: 在引用文件时思考语言设置失效 **问题:** 当设置思考语言为中文但引用大量英文文件内容时,模型仍使用英文思考。 **根因:** `` 指令块虽然是要求使用中文思考,但指令本身是英文写的。当用户消息中包含大量英文文件内容时,英文指令被"淹没"。 **修复:** 将中文的思考语言指令改为用简体中文编写,让模型在指令层面就看到中文,提供更强的信号。 ## Verification - `go test ./internal/agent/...` passes - `go test ./internal/control/...` passes - `go vet ./...` passes -...

desktop
tui
v2
agent

## Summary Fixes #4797 When switching sessions, `replayActiveBranch()` sets `forceGotoBottom=true` to pin the viewport to the latest message. However, `GotoBottom()` was guarded inside a conditional that only fires when the...

tui
v2

## Summary Fixes #4877 When editing a queued feedback item in the TUI (during a running turn), typing replacement text caused `resetQueueNavigation()` to fire in the `default` key handler, resetting...

tui
v2

## Summary 修复 #4908: UI 问题,对话框下方模型选择按钮文字出现越界 **问题:** v1.10.0 版本,模型选择按钮的文字 "Deepseek 官方" 出现 UI 越界,上版本显示正常。 **根因:** `.modelsw__provider` 使用 `display: block` 导致: - provider 成为 label flex item 的块级子元素 - label 的...

desktop
v2

## Summary 回归测试 #4831: 桌面端"会话展示模式→紧凑"重启后回滚为标准 **背景:** 该 bug 已在上游 PR #4839(commit `ee36325b`)中修复。核心问题是 `RenderTOMLForScope` 函数在渲染 `[desktop]` 配置段时遗漏了 `display_mode` 字段。 **本次贡献:** 添加回归测试,确保该 bug 不会再次发生。 ## Changes - `desktop/app_test.go` — 添加 `TestSetDisplayModePersistsAcrossRestarts` 回归测试...

desktop
v2

## Summary 修复 #5167: 无参工具 schema 缺少 `properties: {}`,导致严格 OpenAI 兼容 API 返回 HTTP 400。 **问题:** 当前无参工具的参数 schema 会被 canonicalize 为: ```json {"type":"object"} ``` LMStudio 等严格校验 OpenAI Chat Completions tool...

skills
v2
provider

## Summary 修复 #4940: 切换工作区后计划模式按钮消失 **问题:** 在计划模式下,AI 完成规划后切换到其他工作区再切回来,编辑计划界面消失,计划按钮无反应。 **根因:** `currentTabCollaborationMode()` 在 `tab.Ctrl == nil`(controller 暂时不可用)时,没有像其他 tab meta 读取函数一样回退到持久化的 `tab.mode` 字段,而是直接返回 `"normal"`。这会导致 controller 重建期间前端错误地认为当前不是计划模式,从而隐藏计划按钮。 **修复:** 当 controller 未就绪时,如果持久化的 `tab.mode` 是 `plan`...

desktop
v2