Pasting into Codex input while a `.ipynb` is open creates a new notebook cell and nothing is pasted into Codex
Open 💬 0 comments Opened Dec 29, 2025 by Master-cai
What version of the VS Code extension are you using?
0.4.56
What subscription do you have?
Plus
Which IDE are you using?
VS Code
What platform is your computer?
Darwin arm64 24.5.0
What issue are you seeing?
Summary
When a Jupyter .ipynb notebook is open in VS Code, pasting text into the Codex (OpenAI ChatGPT / Codex) extension input does not work. Instead, VS Code creates a new notebook cell (as if "Paste Cell" was triggered), and the Codex input remains empty.
Steps to Reproduce
- Open VS Code
- Open any
.ipynbfile (Notebook editor) - Open the Codex sidebar (extension
openai.chatgpt) and click into the Codex input box - Copy any text
- Press
Cmd+Vto paste into the Codex input
Expected Behavior
The text should be pasted into the Codex input box.
Actual Behavior
A new cell is created in the notebook editor, and no text is pasted into the Codex input box.
Environment
- VS Code: 1.98.2 (Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78, Date: 2025-03-12)
- OS: macOS (Darwin arm64 24.5.0)
- Jupyter extension: ms-toolsai.jupyter 2025.2.0
- Codex extension: openai.chatgpt 0.4.56
- Paste shortcut: Cmd+V
Notes
This looks like the notebook editor is capturing the paste action (triggering "Paste Cell" / creating a new cell) even when the Codex input box is focused, so the webview input never receives the paste.
What steps can reproduce the bug?
- Open VS Code
- Open any
.ipynbfile (Notebook editor) - Open the Codex sidebar (extension
openai.chatgpt) and click into the Codex input box - Copy any text
- Press
Cmd+Vto paste into the Codex input
This bug is about the paste action and doesn't involve a code snippet.
What is the expected behavior?
_No response_
Additional information
_No response_