cody icon indicating copy to clipboard operation
cody copied to clipboard

bug: Wrong context selected on Cody Chat Panel

Open babhishek21 opened this issue 1 year ago • 1 comments

Type: Bug

Extension Information

  • Cody Version: 1.34.3
  • VS Code Version: 1.93.1
  • Extension Host: desktop

Steps to Reproduce

If I accidentally open Cody chat with file_1 and then not go through with the actual chat, and then try to open Cody chat with file_2 (sa, some text is selected now in file_2, and I press Alt+L), the Cody chat panel does not fill in the right context (it still has the previous context set from file_1).

  1. Open cody chat from file_1 (Alt + L or Alt + ). Don't actually chat. Optionally close the chat panel.
  2. Open a different file_2, select some text, and try to open cody chat (Alt + L).
  3. The old context still remains in the chat panel.

Expected Behaviour

The right context is filled in (i.e. file_2 in this case)

Logs

Extension version: 1.34.3 VS Code version: Code 1.93.1 (Universal) (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z) OS version: Darwin x64 23.6.0 Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 6, 4, 3
Memory (System) 16.00GB (0.08GB free)
Process Argv
Screen Reader no
VM 0%

babhishek21 avatar Sep 22 '24 07:09 babhishek21