[Bug] Terminal Tab: Copy/Paste does not work and Paste action is inactive (cannot paste from OS clipboard) in Antigravity 2.23.0

Summary

In the Antigravity Desktop application (v2.23.0), copy and paste do not work inside the integrated Terminal tab (Auxiliary Pane). The Paste action is inactive/disabled, and it is impossible to paste text from the OS clipboard into the terminal session.

Environment

  • Application: Antigravity Desktop (v2.23.0, packaged Electron build /opt/antigravity/antigravity)
  • OS: Ubuntu 26.04.1 LTS (Linux 7.0.0-38-generic x86_64, XDG_SESSION_TYPE=x11)

Steps to Reproduce

  1. Copy any text or CLI command string to the OS clipboard (from an external browser, editor, or system app).
  2. Open the Terminal tab in the Antigravity Auxiliary Pane.
  3. Attempt to paste the OS clipboard contents into the active terminal session via the menu/context action or keyboard shortcuts (Ctrl+Shift+V / Ctrl+V).

Expected Behavior

  • The Paste action should be active whenever the OS clipboard contains text.
  • Triggering Paste (via menu/context menu or Ctrl+Shift+V / Ctrl+V) should inject the OS clipboard text into the active terminal PTY input stream.
  • Selecting text in the Terminal tab and triggering Copy should write the selection to the OS clipboard.

Actual Behavior

  • Paste is inactive (disabled/greyed out), and nothing from the OS clipboard can be pasted into the Terminal tab.

Technical Root-Cause Note (app.asar inspection)

  • In dist/ipcHandlers.js (window:show-context-menu → buildContextMenuTemplate), custom context menu items do not bind Electron’s native role: 'paste' / role: 'copy' or webContents.paste(), and when the renderer passes disabled: true (enabled: !item.disabled), the Paste action remains disabled.
  • Clipboard paste events in the embedded Terminal tab are not forwarded from the OS clipboard to the underlying xterm.js PTY session.

Hi @olegderid,

Thanks for the detailed report. Pasting with Ctrl+V in the integrated terminal should work without extra permissions,

Please try the following:

  • Update to the latest Antigravity App (version 2.28.2) and restart it. You’re currently on 2.23.0
  • Click inside the terminal so it has keyboard focus, then press Ctrl+V

Please let us know whether this works and whether the right-click “Paste” option is still greyed out.

In the meantime, as a workaround, you can paste the command into the chat message box and ask the agent to run it or run it in your system terminal.

If the issue persists on version 2.28.2, please reply with:

  • The results of trying Ctrl+V, Ctrl+Shift+V, and right-click → Paste
  • Whether copying a terminal selection using Ctrl+C or right-click → Copy also fails

Thanks @chunduriv — upgraded to Antigravity Desktop v2.29.0 (Linux 7.0.0-38-generic x86_64, Ubuntu 26.04.1 LTS) and verified that Ctrl+V paste in the integrated Terminal tab now works as expected. Marking as resolved.