mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-17 19:59:33 +01:00
fix: flag a Files panel folder that did not answer the probe (release review)
A subfolder whose bounded probe answered `unknown` came back as `children: []` with no `incomplete` and `truncated` false, so a dead mount, or a healthy one slower than the 1.5 s probe on first touch, read as an empty folder and a search missed it in silence. `unknown` is never `absent` (#516). Such a folder now goes on the walk's `unread` list, which flags the node and sets `truncated` in both walks. A folder the filesystem says is gone drops out quietly as before. The row said "file limit reached", which would be false here, so it now reads "Not fully scanned" for either reason. Reproduced on a real disk with a parent at mode 0444, where the child's stat answers EACCES: the API, the search and the panel all report it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2f4952c34
commit
37dfb73b1e
9 files changed
+55
-26
No files matched your search
@@ -1144,7 +1144,7 @@
|
||||
Worktree: '工作树',
|
||||
'Session folder': '会话文件夹',
|
||||
'Back to worktree': '返回工作树',
|
||||
'Not fully scanned (file limit reached)': '未完全扫描(已达到文件数量上限)',
|
||||
'Not fully scanned': '未完全扫描',
|
||||
'Any status': '任意状态',
|
||||
'Any time': '任意时间',
|
||||
'Last hour': '最近一小时',
|
||||
|
||||
@@ -3795,10 +3795,10 @@ Object.assign(CodemanApp.prototype, {
|
||||
}
|
||||
}
|
||||
|
||||
// The scan's file limit stopped short of this folder, so what is listed above is not all of
|
||||
// it. Not a .file-tree-item: the click wiring below would try to open it as a file.
|
||||
// The scan stopped at a limit or the folder did not answer, so what is listed above is not all
|
||||
// of it. Not a .file-tree-item: the click wiring below would try to open it as a file.
|
||||
if (isDir && isExpanded && node.incomplete === true) {
|
||||
html.push(`<div class="file-tree-incomplete" data-depth="${depth + 1}">${escapeHtml('Not fully scanned (file limit reached)')}</div>`);
|
||||
html.push(`<div class="file-tree-incomplete" data-depth="${depth + 1}">${escapeHtml('Not fully scanned')}</div>`);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user