fix: enable browser executable selection

This commit is contained in:
QiuSW
2026-07-27 22:46:31 +08:00
parent bc35bb0f3d
commit 03b23045a7
10 changed files with 342 additions and 21 deletions
+4 -4
View File
@@ -3,7 +3,7 @@ id: T-405
title: 设置浏览器 executable 选择与可感知搜索反馈
phase: 4
deps: [T-205, T-206, T-207]
status: DOING
status: DONE
created: 2026-07-27
owner: codex
---
@@ -27,7 +27,7 @@ owner: codex
## 执行记录
- 状态:DOING
- 变更:已完成根因分析和需求、架构、API、用户故事、交互清单、原型验收说明的更新;待文档提交后实现。
- 验证:待执行。
- 状态:DONE
- 变更:新增 Windows `OpenFileDialog` executable picker 与非 Windows 明确失败实现;`cmd/chub` 已注入 chooser。Gio shell 在后台选择 Chrome/Edge executable,以请求代次丢弃过期结果;选择成功只更新目标字段,取消/失败保留输入。四个路径搜索的反馈均移动至对应字段,Chrome/Edge 搜索命中当前输入时显示明确确认。
- 验证:`go test ./...`、`go test -race ./cmd/chub ./internal/ui ./internal/platform/files`、`go vet ./...`、`go build -o build/chub.exe ./cmd/chub` 和 `cmd /c build.bat` 均通过。确认打包产物 PE subsystem 为 Windows GUI(2);真实 STA `OpenFileDialog` smoke 已自动取消一次,并预填现有 `C:\Program Files\Google\Chrome\Application\chrome.exe` 后返回 `OK` 与该路径。
- 阻塞:无。