[BUG] Cmd+W closes two tabs at once in VSCode extension (Antigravity)

Open 💬 6 comments Opened Feb 28, 2026 by Go-Jinhan

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Description:

  • This bug occurs when using the Claude Code VSCode extension (Antigravity). Pressing Cmd+W closes two Claude-related tabs at once instead of one. Regular file tabs are not affected.
  • When pressing Cmd+W, Claude Code related tabs close 2 at a time
  • Regular file tabs are not affected (close normally one at a time)
  • Removing VSCode keybindings for Terminal: Kill Active Terminal did not help
  • Modifying ~/.claude/keybindings.json did not help
  • OS: macOS

What I tried (none of these worked):

Removed "Terminal: Kill the Active Terminal" keybinding for Cmd+W in VSCode
Set meta+w: null in ~/.claude/keybindings.json
Uninstalled the Claude Code extension and closed all running Claude instances — the leftover Claude-related tabs still closed in pairs

VSCode version:

Antigravity Version: 1.19.5
VSCode OSS Version: 1.107.0
Commit: 6adfc1a7e4a1a9af62bc45e8f2d7e6a97b7a9756
Date: 2026-02-26T07:23:14.771Z
Electron: 39.2.3
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 25.2.0
Language Server CL: 875527528

Extension version:

Installation
Identifier
anthropic.claude-code
Version
2.1.49
Last Updated
5 days ago
Size
221.30MB

What Should Happen?

Pressing Cmd+W should close only one tab at a time, same as with regular file tabs.

Error Messages/Logs

Steps to Reproduce

  1. Open VSCode with the Claude Code extension (Antigravity) installed
  2. Open a Claude Code tab (start a new conversation)
  3. Open a few regular file tabs alongside the Claude Code tab
  4. Focus on a Claude Code related tab
  5. Press Cmd+W
  6. Observe that two tabs close at once instead of one

Note: Regular file tabs close normally (one at a time). This issue only affects Claude Code related tabs.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Code: 2.1.59 Model: Claude Opus 4.6

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗