Skip to content

Unexpected behavior of context selector when copy and pasting prompts #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 of 4 tasks
francescoopiccoli opened this issue Mar 28, 2025 · 0 comments
Open
1 of 4 tasks
Labels
bug Something isn't working

Comments

@francescoopiccoli
Copy link
Contributor

francescoopiccoli commented Mar 28, 2025

Problem

Unexpected behavior of context selector when copy and pasting prompts from one tab to another, which causes either the context file to not be picked up (first try) or actually deletes some parts of the prompts (second try).

Steps to reproduce the issue (see VIDEO)

  1. Open a tab (in my case using /dev agent), write a prompt which uses at least once the context selector (for a file in my case)
  2. Copy the sent prompt
  3. Open a new tab (normal tab)
  4. Paste the prompt (the context selectors won't pick up the context files from a copy-paste)
  5. Select the non-rendered non-identified context from the @ symbol to the end of the file name
  6. While keeping the selection type a @ which will delete the current selection and add a @ to the prompt
  7. after the @ write the name of the file (pick up from shown context selector list of files)
  8. PROBLEM 1: The file wont be identified as context (at least ui-wise)
  9. Repeat from step 5 to step 7 on the newly written @ and filename
  10. PROBLEM 2: The file will be identified as context but will delete part of the input prompt preceding the context file

Expected behavior

Context file is picked up immediately without deleting any part of the prompt

System details

  • OS: MacOS
  • Tested enviroment:
    • Web (Demo app)
    • VSCode Amazon Q Chat
    • JetBrains IntelliJ Amazon Q Chat
  • Enviroment extension version (if applicable):
  • Enviroment is remote
bug_video.mov
@francescoopiccoli francescoopiccoli added the bug Something isn't working label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant