cody icon indicating copy to clipboard operation
cody copied to clipboard

Current File incorrect for New Chat when using split editor

Open ryan0x44 opened this issue 11 months ago • 2 comments

Version

1.98.0 darwin 6609ac3d66f4eade5cf376d1cb76f13985724bcb

Describe the bug

This only happens when I have my editor split out into multiple panes.

  1. I'm editing a file in the 2nd/right pane.
  2. I use the command palette to launch a New Chat.
  3. The new chat launches with the Current File and Current Repository prefilled in the message box. However, it's incorrectly done this for the file on the 1st/left pane, rather than the 2nd/right pane.

Additionally, attempting to correct this by selecting the text area of the correct pane works, until you click back into the chat box.

Expected behavior

I would expect the current selected/active editor/pane to be the one which the prefilled Current File and Current Repository come from.

Additional context

No response

ryan0x44 avatar Mar 28 '25 00:03 ryan0x44