Skip to content

fix(app): only attach path-shaped @mentions in comments - #50526

Closed
Vibe-coding-nvm-delete-repo wants to merge 1 commit into
anomalyco:v2from
Vibe-coding-nvm-delete-repo:composer-mention-paths
Closed

Vibe-coding-nvm-delete-repo wants to merge 1 commit into
anomalyco:v2from
Vibe-coding-nvm-delete-repo:composer-mention-paths

Conversation

@Vibe-coding-nvm-delete-repo

Copy link
Copy Markdown

Fixes #50393

A comment like or should I use @here? attached a file named here, which then failed with "File not found". Every @word in a comment was treated as a workspace path.

A comment token is now a file only when it looks like one: starts with ~, or contains /, \, ., or #.

Comment text Before After
or should I use @here? attached <workspace>/here -> error stays plain text
Compare with @src/shared.ts attached the file attached the file
see @D:\work\a.ts attached the file attached the file

Regression tests in packages/app/src/composer/request.test.ts cover the bare word and the mixed comment.

Verified with bun 1.4.2: request.test.ts 17/17, composer suite 84/84, app unit suite 901/901, bun run typecheck and oxlint clean.

Bare words such as @here stay inline text, so a comment mention no longer resolves to a missing workspace file. Mentions are kept only when they start with ~ or contain /, \, ., or #.
Copilot AI lite review requested due to automatic review settings September 22, 2026 04:49
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

Focused changes are covered by regression tests with no unresolved review issues.

Review effort: Lite
Findings: None

What changed in this PR

Fixes comment mention parsing so only path-shaped @mentions attach files; bare words remain plain text.

Changes:

  • Filter mentions to path-shaped tokens.
  • Add regression coverage for bare and mixed mentions.
File Description
packages/​app/​src/​composer/​request.ts Filters non-path-shaped comment mentions.
packages/​app/​src/​composer/​request.test.ts Covers bare and path-shaped mention behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants