Skip to content
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

Usage of tilde (~) in user prompt at the beginning and at the end of the input #203

Closed
3 of 4 tasks
francescoopiccoli opened this issue Dec 12, 2024 · 1 comment
Closed
3 of 4 tasks
Labels
bug Something isn't working

Comments

@francescoopiccoli
Copy link
Contributor

Problem

When sending a user typed prompt (not a code attachment) which starts and ends with multiple tildes symbols (~), the message is formatted in the wrong way, being either cut completely or partly.

Steps to reproduce the issue

Send a message with at least 3 tildes at start and end of the input, then send the message/prompt.

Example input:

~~~~~~~~~~ njkvnsdfoensfneisofiewnfoewonfoe ~~~~~~~~~~

Current output:
screenshot_2024-12-12_at_09 57 18

Expected output:
Screenshot 2024-12-12 at 11 10 11

Expected behavior

The message should be formatted as a code block but it should not cut any of the non tilde symbols inputted, all the symbols/characters/text that are not initial or ending tildes should be shown.

System details

Behaviour is visible in both VSCode and JetBrains and on the web example app.

  • OS:
  • Tested enviroment:
    • Web (Demo app)
    • VSCode Amazon Q Chat
    • JetBrains IntelliJ Amazon Q Chat
  • Enviroment extension version (if applicable):
  • Enviroment is remote

GitHub issue clone

@francescoopiccoli francescoopiccoli added the bug Something isn't working label Dec 12, 2024
@Jurredr
Copy link
Contributor

Jurredr commented Jan 2, 2025

Turns out after some research; this is actually expected behavior with proper markdown parsing. E.g. GitHub will have the exact same behavior (you can try in the comments here).

@Jurredr Jurredr closed this as completed Jan 2, 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

2 participants