Skip to content

fix(remote): guard local file-tree reads and show why the tree is unavailable - #688

Merged
Ziinc merged 1 commit into
claude/prd-gaps-remote-path-guards-5from
claude/prd-gaps-remote-path-guards-10
Oct 1, 2026
Merged

Ziinc merged 1 commit into
claude/prd-gaps-remote-path-guards-5from
claude/prd-gaps-remote-path-guards-10

Conversation

@Ziinc

@Ziinc Ziinc commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Stacked on #685. Removes 7 entries from KNOWN_UNGUARDED.

Wrapper Before, for a remote path After
listDirectory, listDirectoriesBatch, getFileModifiedAt, listDirectoryCached read this machine's FS at the remote path assertLocalOperation, which rejects with unsupported:
lsWorkspaceWithStatus, getWorkspaceReadme same; the overview swallowed the error and showed "No files found" assertLocalOperation
ensureWorkspaceIndexed indexed a local directory at the remote path assertLocalOperation
UI:
  • FileBrowser: for a remote repository it skips the directory/index SWR reads and shows REMOTE_FILE_TREE_REASON in the tree pane ("…not available for remote repositories yet. Use Go to file to open a file."). Opening a file still works through the typed ReadFile route.
  • ShowWorkspace overview: a RemoteOperationUnsupportedError shows the same reason instead of "No files found" and is not logged as a failure.
    A remote file tree needs a typed ListDirectory command, which does not exist yet.

Checks

…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
@Ziinc
Ziinc merged commit 4577d0f into claude/prd-gaps-remote-path-guards-5 Oct 1, 2026
16 checks passed
@Ziinc
Ziinc deleted the claude/prd-gaps-remote-path-guards-10 branch October 1, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants