Repository navigation
Pick a folder like in Codex: search, Recent, Open folder browser, Add as project - #371
Merged
Merged
Conversation
… as project One FolderMenu (web features/home/FolderPicker.tsx) on the folder chip, Device and folder and the phone place sheet: Search folders (typed paths list matching folders on the device), No folder, Recent (project or folder name over a muted path, deduped, newest first, at most 8), Open folder... and an "On <device>" row. Open folder... is an in-app browser over GET /api/devices/:device/files with breadcrumbs, Up, folders only, Show hidden, Home/Desktop/Documents/roots, New folder (the existing POST /api/devices/:device/folder) and Select. A folder that is no project yet can be added as one (new POST /api/projects, the projects service's add: marker for a plain folder, pinned location). The device folder routes now refuse NUL/line breaks like the projects routes. Tests: menu, keyboard, browser, Recent/search rules, member refusal, mkdir private-path checks in TS and Rust. Committed-by: Conclave (cliproxy/claude-opus-5-5)
Keep both sides in pickers.tsx: the folder menu, and a member's device list without the hub (#366); the folder menu and chip hide the hub from members too. Committed-by: Conclave (cliproxy/claude-opus-5-5)
Android CodeWhereSheet: Recent rows show the folder's name over its muted path (Panel.recentRows, deduped, newest first), and Browse… opens a folder list over GET /api/devices/:device/files with Up and Select this folder. Web mock: POST /api/projects for the Add as project screenshots. Committed-by: Conclave (cliproxy/claude-opus-5-5)
… clone - ProjectsService.add runs one add per account, device and path at a time, so a double Select makes one project and one marker. - The home folder and the root cannot become a project. - A folder whose history is already a project becomes one of its places. - projectOf picks the deepest place and skips a place at the root. - Project names refuse C1 control and direction-override characters. Committed-by: Conclave (cliproxy/claude-opus-5-5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pick a folder like in the Codex app instead of typing a path.
What changes
Web: one folder menu (
packages/web/src/features/home/FolderPicker.tsx) on the composer's folder chip (Where.tsx), Device and folder (pickers.tsx) and the phone place sheet (SessionStart.tsx):~/co,/srv,C:\) lists matching folders on the device and is checked as before (folderCheck.tsx: missing, Create folder, offline Use anyway).~/<name>.local), as in Windows: keep this PC online (bounded hello, watchdog, Reconnect) and fix 'unknown device local' #366.Folder browser over
GET /api/devices/:device/files: a path bar (type + Go), Up, clickable breadcrumbs, quick jumps (Home, Desktop, Documents, the device's roots), folders only with Show hidden, New folder (the existingPOST /api/devices/:device/folder), and Select this folder. A dialog on desktop, a 92dvh sheet on phones.Add as project: in the browser footer with an editable name. New
POST /api/projects->ProjectsService.add: a git repository or synced folder is known by its history; a plain folder gets.conclave/project.json. The location is pinned. A folder that is already a project returns it.Security
POST /api/projectsisselfin route-policy and checks that the device belongs to the caller (known-> scope ownDevice). A member gets 404 on another account's device (test).GET/POST /api/devices/:device/folderandGET .../filesnow reject NUL/line breaks and paths over 4096 characters (pathString), like the projects routes.Android:
CodeWhereSheetRecent rows show name over muted path (Panel.recentRows, unit test), plus Browse…: a folder list sheet over the same files API with Up and Select this folder.Desktop native dialog: not added. Neither
tauri-plugin-dialognorrfdis in Cargo.lock, so the desktop app uses the in-app browser.Tests
test/folder-check.test.tsx: Recent dedupe/order/name-path rule/project names, search, path detection, breadcrumbs/Up/names, menu rows, keyboard, typed path + Create folder, offline, device row + member, browser navigation/Show hidden/Select.folder-check.test.ts(bad paths; a member is refused browse, mkdir and add on the owner's device),projects-routes.test.ts(add route).projects/move.test.ts(add),machine/private.test.ts(mkdir refusals); daemon-rsprivate.rsmkdir_keeps_out_of_it.PanelTest.recentRowsShowTheNameAndThePathOnlyWhenItSaysMore.Screenshots:
folderpick-*.png(1440 dark, 390 light) in the session outputs.