[BUG] Claude in Chrome — tab with chrome://newtab origin causes invalid tab ID and connection failure
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?
Titolo: [BUG] Claude in Chrome — tab with chrome://newtab origin causes invalid tab ID and connection failure
Preflight Checklist
Ho cercato issue esistenti e questo bug non è ancora stato segnalato
È un singolo bug report
Sto usando l'ultima versione dell'estensione Claude in Chrome
What's Wrong?
When a Chrome tab originates from chrome://newtab (the default new tab page), Claude Desktop loses track of the tab after navigation occurs. The tab ID becomes stale/invalid, causing the extension to fail silently and Claude Desktop to display an account mismatch warning.
Root cause hypothesis:
Chrome does not allow extensions to access chrome:// URLs (by design, per Manifest V3 restrictions). If the extension registers the tab ID while it is still on chrome://newtab and tries to communicate before the navigation completes, the runtime message fails. When the tab navigates away, the tab ID may be re-issued or the content script context is destroyed, leaving a stale reference.
Environment
OS: macOS Sequoia 15.7.4 (24G517)
Chrome version: Version 145.0.7632.160 (Official build) (x86_64)
<img width="648" height="732" alt="Image" src="https://github.com/user-attachments/assets/6ab3e021-08e8-4ca1-9124-a048ff52ccef" />
<img width="1330" height="940" alt="Image" src="https://github.com/user-attachments/assets/dcc89dc2-c1cc-4445-97c4-d832bc89b8ba" />
<img width="1438" height="620" alt="Image" src="https://github.com/user-attachments/assets/8c274a7e-631b-4f7f-a8d7-e60dd384d5fa" />
Extension version: Claude in Chrome (Beta) 1.0.57
Plan: Pro
What Should Happen?
Expected behavior: Claude in Chrome correctly tracks the tab after navigation and maintains a valid tab ID.
Actual behavior: The tab ID becomes invalid after navigation from chrome://newtab. The extension cannot establish a connection (Receiving end does not exist), and Claude Desktop shows a spurious "Controlla il tuo account Claude in Chrome" warning (account mismatch dialog), which is misleading — the accounts are correctly matched.
Error Messages/Logs
Errors observed in DevTools console (service worker context):
Unchecked runtime.lastError: Cannot access a chrome:// URL
Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist [mcpPermissions-BZasRJR4.js:3]
Unchecked runtime.lastError: Cannot access a chrome-extension:// URL of different extension
Unchecked runtime.lastError: No tab with given id 1636312188
Steps to Reproduce
Steps to Reproduce
Open Claude Desktop with Claude in Chrome extension active and connected
Open a new Chrome tab (default page: chrome://newtab)
Navigate to any website from that tab
Attempt to use Claude in Chrome on that tab
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
not using code only chat and cowork
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗