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

[BUG] When the cursor is in the chat text box, CMD-V pastes things in the Jupyter Notebook! #1081

Open
3 tasks done
ibehnam opened this issue Apr 5, 2024 · 4 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@ibehnam
Copy link

ibehnam commented Apr 5, 2024

Before submitting your bug report

Relevant environment info

- OS: macOS Sonoma
- Continue: experimental pre-release
- IDE: VSCode

Description

When interacting with AI, if I paste something (like a piece of text) using CMD-V, it pastes it in the editor instead. For example, I use Jupyter Notebook and Continue has messed with the notebook cells many times because of this bug.

To reproduce

No response

Log output

No response

@ibehnam ibehnam added the bug Something isn't working label Apr 5, 2024
@sestinj
Copy link
Contributor

sestinj commented Apr 5, 2024

@ibehnam as mentioned in the other post, there is probably a particular VS Code keyboard shortcut that when disabled stops this from happening (I think it is notebook.cell.paste, but need to double-check). Would be useful to have confirmation of this, but I'll try anyway to see if we can override the shortcut from the webview.

@sestinj sestinj self-assigned this Apr 5, 2024
@kaixxx
Copy link

kaixxx commented Apr 15, 2024

I have the same problem. Two additional observations:

  • This only happens if I work on a jupyter notebook. No problems in a regualar python file.
  • The error happens also if you right click in the chat-window and select "Paste" in the pop up menu. So I doubt that it's only related to keyboard shortcuts.

I'm on windows btw

@sestinj
Copy link
Contributor

sestinj commented May 2, 2024

@kaixxx @ibehnam I finally tracked this down today and was able to stop it from happening on my machine: 1b30b9e

0.9.124 is being released right now, but I'll wait for confirmation before closing this issue. Let me know how it works!

@kaixxx
Copy link

kaixxx commented May 3, 2024

@sestinj Thank you for looking into this!
I've tested 0.9.124 pre-release and it improved a lot, but there are still some problems:

  • Ctrl+C and Ctrl+V works initially, I can copy text back and forth between the jupyter notebook and the continue window.
  • When I select 'paste' in the context menu of the continue window, everything breaks again. After that, even Ctrl+V doesn't work anymore. I have to restart VsCode to restore the initial behavior.

For the time beeing, I'm going to avoid using the context menu. But it would be great if you could try to resolve this issue too. Thanks!

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

3 participants