Skip to content

bug: AvanteAsk and AvanteChat do not get the buffer or current file. #1067

@johnsaigle

Description

@johnsaigle

Describe the bug

When I use Avante Ask or Avante Chat, neither seem to be able to see either the current file opened or highlighted buffer text.

To reproduce

Run Avante Ask or Avante Chat with the sample command from the documentation. The result is the same with highlighted text and without anything highlighted.

> Please refactor this code here

Sure! Please provide the code you'd like me to refactor. Once I have it, I can analyze it and propose the necessary changes in a series of SEARCH/REPLACE blocks.

Expected behavior

The LLM should be provided with either the current file or the currently highlighted text by default.

Installation method

Lazy plugin manager.

Environment

branch main
commit e14eb00

Running Qwen2.5 locally.

Repro

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions