Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agentic mode fails to reference mentioned files in prompts #1023

Open
1 task done
dnachavez opened this issue Dec 29, 2024 · 0 comments
Open
1 task done

Agentic mode fails to reference mentioned files in prompts #1023

dnachavez opened this issue Dec 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dnachavez
Copy link

dnachavez commented Dec 29, 2024

Before submitting your bug report

  • I'm not able to find an open issue that reports the same bug

Environment

- OS: macOS Sequoia
- Sidecar commit: {"version_hash":"366b6a8aeb6d8b3110f0a689c5e5b082635e59bbfc8875608e8fe025e6c1826d","package_version":"0.1.8"}
- IDE commit: 3647b7f08aebc65e6d886e2b435aae69feb44763

Description

When using the agentic mode, the agent fails to use the files explicitly mentioned in the chat using @. Instead of directly referencing the mentioned files, the agent tries to locate the files in the codebase by searching, sometimes using its own regex logic. This behavior leads to inconsistent results and often fails to find the correct file, especially when the mentioned files are not currently opened in the IDE.

Reproduction

  1. Switch to agentic mode.
  2. Provide a specific prompt that includes references to files using @, ensuring the mentioned files are not currently open.
  3. Observe the agent's behavior when attempting to use the mentioned files.
  4. Note that the agent tries to locate files in the codebase via search or regex rather than referencing the mentioned files.

Log output

No response

@dnachavez dnachavez added the bug Something isn't working label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant