Repository navigation
Raise the file cap to 1,000,000; sync up to 250,000; fold big folders (v0.23.0) - #55
Merged
Merged
Conversation
…big folders (v0.23.0) A signed-in workspace (and the desktop folder walk) now holds up to 1,000,000 files. Sync carries up to 250,000: each file reference is about 100 bytes sealed (measured), so that many fit the 32 MB snapshot; past it sync pauses with a message and nothing is dropped from the account copy. The file list no longer searches the workspace for every row (quadratic at scale), and a workspace over 2,000 files opens with every folder below the top level folded, except the way to the open file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Removes the 5,000-file cap.
MAX_ACCOUNT_FILES, andMAX_FILESin the desktop folder walk). Signed out, the workspace still keeps 1,000.MAX_SYNC_FILES). Measured with the realseal(): about 102 bytes per file reference, since each one carries its own random key that doesn't compress. That puts 250k at about 26 MB, under the 32 MB snapshot limit (SYNC_LIMITS). Past it, sync pauses with a clear message instead of failing or dropping files from the account copy. Syncing 1M files would need a chunked file index, which would be a follow-up.fileRowgets its document passed in instead of adocuments.find()per row (which was quadratic), andimportFilesuses a Map. A workspace over 2,000 files opens with every folder below the top level folded, except the path to the open file.Tests: typecheck clean, 198/198 unit tests (the schema test now checks 250,000), 41/41 Playwright tests, with a new signed-in test that opens 6,001 files whole and folded.
🤖 Generated with Claude Code