cody icon indicating copy to clipboard operation
cody copied to clipboard

Cannot add URLs containing # symbols to the chat

Open 6ea83e85cfe2749d5e61 opened this issue 11 months ago • 2 comments

Version

1.80.1

Describe the bug

When using @ and selecting the Web URLs option, pasting a link with a # symbol prevents it from retrieving webpage content. Many documentation websites automatically include fragments like #section in their pages, making it inconvenient to copy content into Cody.

Reproduction steps:

  1. Use @ and select Web URLs
  2. Paste https://example.org
  3. You'll see an option with the webpage title; clicking it adds the content to the chat.
  4. Copy a webpage with a #, e.g., https://example.org#section
  5. Cody shows no reaction, as if pasting plain text

https://github.com/user-attachments/assets/a7034a5f-ee90-410e-8a7c-3638baff0d81

Expected behavior

Should be able to properly handle such URLs and add the content into the chat context

Additional context

No response

6ea83e85cfe2749d5e61 avatar Apr 01 '25 20:04 6ea83e85cfe2749d5e61