Repository navigation
feat(new-session): browse for the directory instead of typing it - #42
Merged
Merged
Conversation
The new-session dialog took the directory as typed text only. A Browse button beside the field opens a folder list: parent and home buttons, the current path (its end kept in view), the folders inside, Show hidden, and Use this folder, which fills the field (as ~/… inside home). GET /api/workspace/directories?path=&hidden=1 lists one directory's folders (links to folders count; files, dangling links and, by default, dot-folders do not), naturally sorted and capped at 500. It keeps nothing between calls: the cost is one readdir, on demand. It lives under /api/workspace/, so it is bridge-authorised and proxied to remote PCs; an older remote bridge answers 404 and the browser says to type the path. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
devswha
force-pushed
the
feat/directory-browser
branch
from
September 25, 2026 09:40
e38fcfc to
ef85329
Compare
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.
Summary
The new-session dialog only took the directory as typed text. A Browse button now sits beside the field and opens a folder list:
~/…form inside homeServer:
GET /api/workspace/directories?path=&hidden=1lists the folders in one directory (server/directories.ts).api2beforeapi10) and capped at 500, with atruncatedflag.~or~/…. An empty path means home.readdir, on demand./api/workspace/, so it is bridge-authorised and proxied to remote PCs (it was added toMACHINE_PROXY_PATH). An older remote bridge answers 404, and the browser then says to type the path.Testing
~and an empty path open home, and/has no parent.truncated.projectsand back up, then turned on Show hidden (.configappeared).projects/checkout-apiand clicked Use this folder: the field got that path and the list closed.bun run typecheckpasses,bun testpasses 315/315, andbun run test:uipasses 7/7.🤖 Generated with Claude Code