Repository navigation
fix(remote): guard local file-tree reads and show why the tree is unavailable - #688
Merged
Ziinc merged 1 commit intoOct 1, 2026
Conversation
…vailable listDirectory, listDirectoriesBatch, getFileModifiedAt, listDirectoryCached, lsWorkspaceWithStatus, getWorkspaceReadme and ensureWorkspaceIndexed read this machine's filesystem at the given path. For a remote repository they now reject with `unsupported:`. The file browser skips those reads and shows REMOTE_FILE_TREE_REASON in the tree pane. The workspace overview shows the same reason instead of silently logging the error and reporting "No files found". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MbYSPHBRmDYwPJpHG33Y4t
Base automatically changed from
claude/prd-gaps-remote-path-guards-9
to
claude/prd-gaps-remote-path-guards-5
October 1, 2026 07:44
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.
Stacked on #685. Removes 7 entries from
KNOWN_UNGUARDED.listDirectory,listDirectoriesBatch,getFileModifiedAt,listDirectoryCachedassertLocalOperation, which rejects withunsupported:lsWorkspaceWithStatus,getWorkspaceReadmeassertLocalOperationensureWorkspaceIndexedassertLocalOperationFileBrowser: for a remote repository it skips the directory/index SWR reads and showsREMOTE_FILE_TREE_REASONin the tree pane ("…not available for remote repositories yet. Use Go to file to open a file."). Opening a file still works through the typedReadFileroute.ShowWorkspaceoverview: aRemoteOperationUnsupportedErrorshows the same reason instead of "No files found" and is not logged as a failure.A remote file tree needs a typed
ListDirectorycommand, which does not exist yet.Checks
remote-path-guards.test.tswith the shrunk list; full unit suite (825 passed)file-browser,file-browser-polling,code/*,remote-workspace-ui,remote-review-state(26 passed); local behaviour is unchangednpm run check,lint,check:format🤖 Generated with Claude Code
https://claude.ai/code/session_01MbYSPHBRmDYwPJpHG33Y4t
Generated by Claude Code