Skip to content

[BUG] Slash command does not expand @/file references when placed in command body or description #8602

@jwadow

Description

@jwadow

Problem (one or two sentences)

Slash commands fail to attach or expand @/file references when they are included in the command description or body. The files remain as plain text instead of being included in the context.

Context (who is affected and when)

Affects all Roo Code users who rely on slash commands to include multiple files or documentation snippets via @/ mentions. This occurs when running custom commands from .roo/commands/ that reference project files.

Reproduction steps

Create a file .roo/commands/attachfiles.md with the following content:

---
description: "Load docs files"
---

@/ARCHITECTURE.md  @/README.md  @/TODO.md  
Did you receive my files and their contents?

Write /attachfiles in Roo Code input.

Expected result

The @/ARCHITECTURE.md (and other) reference should expand into an attached file or inline content (like when manually typing @/ARCHITECTURE.md in chat). The file’s contents should be included in the context for the model.

Actual result

The model responds "Roo said: Yes, I received the files and their contents. Task completed." — but in reality, the model never receives any file contents.

Variations tried (optional)

  • Placing @/ARCHITECTURE.md in frontmatter (description) → not expanded.
  • Moving @/ARCHITECTURE.md to the command body → still not expanded.

App Version

3.28.15

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions