mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-06 01:11:37 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user