getappmap / appmap-intellij-plugin

MIT License
38 stars 9 forks source link

Inability to Deselect Attached Context from Navie Prompt #766

Open Daniel-Warner-X opened 2 months ago

Daniel-Warner-X commented 2 months ago

Description

When starting a new Navie chat in the IDE (JetBrains or Visual Studio Code), any highlighted text or code is automatically attached as context to the prompt. While this feature is generally useful, it becomes cumbersome when the attachment happens by accident or when switching contexts. Currently, the only way to remove the attached context is to close the chat, find the selected text or file, deselect it, and start a new chat, which disrupts the workflow.

Expected Behavior

Users should be able to easily detach the attached context without needing to close the chat and manually deselect the text in the IDE. Specifically:

Actual Behavior

Users must close the chat, locate the selected text or file in the IDE, deselect it, and then start a new chat to remove the attached context. This process is cumbersome and time-consuming, particularly when the context is accidentally attached or when switching contexts (e.g., copying an error message from another platform to Navie chat).

Steps to Reproduce

  1. Highlight any text or code in the IDE (JetBrains or Visual Studio Code).
  2. Start a new Navie chat.
  3. Observe that the highlighted text or code is automatically attached as context.
  4. Attempt to deselect the attached context without closing the chat.

Impact

The inability to easily deselect attached context disrupts the workflow and adds unnecessary steps, especially in scenarios where a user is switching contexts or working with clipboard content from another platform.

Plugin Versions

JetBrains: .72.0 Visual Studio Code: 0.125

Additional Information

In this video around the :45 mark you can see that I come in with an error from Waltz copied to my clipboard. I have one of the setup commands selected from doit.sh which inadvertently gets pulled in as context.

https://www.loom.com/share/076a32dce3db4710a3f554ba7c8b6011