feat(web): show hidden directories in workspace browser (#1331)

* feat(web): show hidden directories in workspace browser

Add optional includeHidden param to the machine list-directory RPC so the
WorkspaceBrowser can toggle hidden (dot-prefixed) entries. Default remains
filtered for backward compatibility; the toggle persists via localStorage.

* fix(web): disable show-hidden toggle while directory loading

Prevent overlapping list-directory requests with opposite includeHidden
values; the toggle is now disabled while a directory load is active.
This commit is contained in:
weixiang1862
2026-08-03 12:32:50 +08:00
committed by GitHub
parent a111d0bc82
commit cc39021abc
10 changed files with 138 additions and 21 deletions
+2 -1
View File
@@ -497,7 +497,8 @@ export const SpawnSessionRequestSchema = z.object({
export type SpawnSessionRequest = z.infer<typeof SpawnSessionRequestSchema>
export const MachineListDirectoryRequestSchema = z.object({
path: z.string().min(1)
path: z.string().min(1),
includeHidden: z.boolean().optional()
})
export type MachineListDirectoryRequest = z.infer<typeof MachineListDirectoryRequestSchema>