Files
pipelines/app/notes/chat-folder-picker.md
T
alan eed3806efb Add a home-restricted folder picker to the new-chat dialog
Server: list_directory returns a directory_listing (path, home, parent,
entries with is_dir/is_git_repo/hidden, truncated) confined to the server
user's home subtree after cleaning and resolving symlinks, refusing pseudo
filesystems and capping entries at 2000. Documented in docs/cli.md.

App: "Choose folder…" in the create dialog opens a picker (full-screen page
on phones, large dialog on wide windows, Material and Cupertino) with
breadcrumbs, filter, Show hidden, git badges, dimmed files, recent folders,
inline errors and "Start chat here". The probe app gains a folder fixture
for captures.
2026-11-01 21:51:48 +00:00

19 lines
1.1 KiB
Markdown

# New-chat folder picker
The create dialog has a "Choose folder…" action under the directory dropdown. It
opens `lib/features/chat/ui/folder_picker/`: a full-screen page below 720 px, a
large dialog above it (Material and Cupertino). The picker opens at `~`, or at
the dialog's current folder when that folder is inside home. Recent chat folders
from `chat_directories` show as quick picks at the home level. The page has a
breadcrumb from `~`, a filter field, a "Show hidden" toggle, folders with a git
badge, and dimmed files. Back climbs one folder. Server refusals (outside home,
permission denied) show inline with Retry, Back and Go to home. "Start chat
here" fills the directory and returns to the dialog. The dropdown is still there
as the other way to choose.
Server: `list_directory` / `directory_listing` (docs/cli.md, Chat sessions).
Evidence: `/tmp/folder-picker-evidence/{material,cupertino}-{560,880}x1000/`,
made with the capture kit over the probe app (fixture in `tool/probe_folder_fixture.dart`)
and the script `/tmp/folder-picker-evidence/flow.json`.