Repository navigation
Conversation
1lck
marked this pull request as ready for review
November 16, 2026 13:37
This was referenced Nov 16, 2026
1lck
approved these changes
Nov 16, 2026
1lck
previously approved these changes
Nov 16, 2026
Owner
|
这个 PR 的改动已在 #2056 解决与
感谢 @AACS111 的贡献。为避免同一改动在两处重复合入,关闭本 PR。 |
31 of 34 tasks
17 tasks done
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.
关联 Issue / Linked issue
PR 类型 / Type
改动说明 / What changes
背景 / Why
Windows 0.8.0 打开一个实际存在、可以正常读取的 Git 项目时,Git 分支与提交记录正常,项目树却显示“读取失败:项目目录不可用”。重复关闭、重新打开仍然失败。日志中的实际错误是
project_tree_list: context deadline exceeded。改动 / Changes
kernelCallTimeout。目录列表会读取磁盘、判断可见子目录并执行 Git 忽略检查;诊断中的原生 Git 检查耗时 2.412 秒,已超过旧限时。file-explorer功能矩阵的验证动作;macOS 与 Windows 继续保留partial/pending,组件测试与 Windows 本地诊断不作为全部平台已验收的依据。不在本 PR 范围内 / Out of scope
PINNED_CORE_REVISION,可以基于当前固定 Core 独立合入;不包含本地诊断包、工具链、执行计划、输出适配器或构建绕行方案。类型专属:fix
复现与根因
filetree.go将原生目录与 Git I/O 交给kernelCallTimeout;该常量在catalog.go中明确用于通常低于 1 ms 的纯计算。引入路径可追溯到0faecba49/ Epic(0.7.0): 基于 Viva 框架的跨平台方案的迁移(#1794) #1799(git log -S 'a.background(p, kernelCallTimeout')。检查项
TestProjectTreeDirectoryReadsAllowNativeIO修复前失败,报告目录不可用;修复后通过。路径:desktop/internal/workbench/filetree_test.go。TestProjectTreeDirectoryReadCancelsWhenProjectCloses以 channel 控制请求开始/结束,确认关闭取消和结果隔离;不依赖 sleep 同步。pumpTreeListings、listTree、background、closeTree、项目关闭与所有ListDirectories调用;不改变 Core 命令/参数/返回结构、插件或 SDK 消费者。.agents/notes/implemented/bug-fix/2026-11-16-project-tree-directory-io-timeout.md。范围检查 / Scope checks
功能矩阵 / Feature matrix
shared/platform-feature-matrix/features/file-explorer.json的真实验证动作,两端状态不提前标记 verified。.artifacts/生成视图;未申请matrix-exempt。插件归属 / Plugin ownership
UI 验证 / UI evidence
N/A:未修改视图、布局、样式、文案、菜单或控件状态实现;变更位于目录 I/O 请求的生命周期边界。项目树行为由无头测试覆盖,不提供无关视觉截图。
统一日志系统 / Structured logging
界面文案 / i18n
verify-app-language-localization.mjs与generate-i18n.mjs --check;没有放宽脚本或豁免。逻辑归属 / Logic placement
性能与内存 / Performance and memory
设置 / Settings
N/A:没有设置或配置来源变化。
插件契约 / Plugin contract
N/A:没有插件契约、能力版本、函数协议、宿主方法或通知变化;无需 API 编号表或 SDK 更新。
发行包与资源 / Bundle and resources
无用代码与重构 / Dead code and refactoring
验证 / Verification
scripts/desktop/desktop-go.sh test -race -count=1 -p=1 -parallel=1 -timeout=120s -run '^TestProjectTreeDirectoryRead' ./internal/workbench:通过。node scripts/agent-notes/verify-agent-notes.mjs、node scripts/platform-feature-matrix/generate-platform-feature-matrix.mjs --check、两项 i18n 检查:通过。desktop-go.sh test ./...。本机 Git 子进程输出句柄存在问题,多项原有夹具在git commit阶段报Bad file descriptor,以及已有的嵌套 checkout 探测失败;不声称全量测试通过。错误发生在这些夹具调用产品 Core 逻辑之前。