Skip to content

sandfs-mcp: escape control characters in rendered paths #31

Closed

Description

@lydakis

The MCP tools (list, glob, grep, changes) print one path per line. A mounted directory can contain a file name with a newline or another control character, which DirSource and VPath accept, and that name would then render as two lines, so the agent can't tell what the real path is.

A fix would escape control characters in rendered names (for example as \n with a note), or have the core reject such names. This doesn't come up at current scale, since such names are very rare outside deliberate tests.

Raised by Codex on #24 (#24 (comment)).

Activity

  1. added a commit that references this issue on Oct 18, 2026
    d803823
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions