Skip to content

@ symbols in Commands that dont resolve to files cause command failure #2261

Closed as duplicate

Description

@Cluster444

Looks like the command function will blindly try to map any @ ref into a file and push it straight to the read tool. This is problematic when combined with !shell commands or just random uses of an @ symbol will cause ENOENT failure at some point in the chat function.

One thought is to check if the path resolves to an actual path, before turning it into a file part.

Although it may also be a better idea to do file part matching before bash eval expansion so that bash commands are not subject to file inclusion.

Activity

  1. github-actions commented on Aug 26, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Aug 26, 2025

    @rekram1-node
    Collaborator
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