Skip to content

Adding text selection to prompt context doesn't reset #783

@MarkOgink

Description

@MarkOgink

After sending a prompt with manually selected code (which shows line numbers of a file), it is impossible to modify this selection in subsequent prompts. When removing the file from the context window and adding it again to context, it shows the previously selected line numbers. Expected behaviour would be to show only the file name, without any line numbers.

It seems to be the UI that is not being updated, because the LLM is aware of all code after adding the complete file in a subsequent prompt. Tested with "Include currently open file in context" on.

Steps to reproduce:

  1. Select some code
  2. Send prompt and notice the line numbers of the selected code
  3. Remove the code from context window
  4. Add the complete .java file
  5. Notice how the file is shown as a code selection

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