Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix(daemon): hide dotfiles and unsupported file types in agent file browser

Gener9e8c6ea47439
diff --git a/src/cli/daemon/workspace-files.ts b/src/cli/daemon/workspace-files.ts
index 44736f182..7504319ca 100644
--- a/src/cli/daemon/workspace-files.ts
+++ b/src/cli/daemon/workspace-files.ts
@@ -33,8 +33,12 @@ export async function readDirectoryTree(
const results: WorkspaceFileEntry[] = [];
for (const entry of entries) {
- if (entry.name.startsWith(".") && entry.name !== ".context_timeline") continue;
+ if (entry.name.startsWith(".")) continue;
if (SKIP_DIRS.has(entry.name)) continue;
+ if (!entry.isDirectory()) {
+ const ext = extname(entry.name).toLowerCase();
+ if (ext !== "" && !TEXT_EXTENSIONS.has(ext)) continue;
+ }
const fullPath = join(dirPath, entry.name);
let info;