Repository navigation
feat: place library files on folder paths - #52
Merged
Merged
Conversation
Files are now identified by a relative path instead of a flat name. Folders follow from the paths and the file panel shows them as a tree. Existing libraries migrate in place (database version 7), folder export recreates the folders on disk, addresses carry the path segment by segment, and the agent sees and writes paths such as docs/notes.md.
bencode
force-pushed
the
feat/file-paths
branch
from
October 1, 2026 10:04
3d4c823 to
f641fe0
Compare
Backslashes and control characters are legal in file names on disk, so the library accepts them again; only paths the agent writes still exclude them. Tabs that share a file name now show the whole folder path, and the PDF skill cites file paths like the rest of the prompt.
This was referenced Oct 1, 2026
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.
Why
Reading source code needs its directory structure. This is step one: the library learns paths. Importing a whole folder builds on it in a follow-up.
What changes
StoredFileMetadata.name→path(relative,/-separated, unique ignoring case). Folders exist only through their files; there are no empty folders.isWorkspacePathrejects empty,./..segments, a leading/,\and control characters. A path cannot be both a file and a folder (path-conflict).name→path, plus the earlier v1/v6 fixes merged in so two cursors no longer overwrite each other) and moves saved export versions topath./files/<seg>/<seg>. Root files keep their old URLs.paththroughout (list filter, results, reader state, attachment metadata).writeacceptsdocs/notes.md.name(no migration of saved conversations).Tests
New tests cover:
pnpm checkpasses.