Skip to content

Multiple claude --chrome sessions compete for the same browser #39637

Description

@wesnishio

Problem

Running multiple claude --chrome instances from separate terminals causes them to compete for the same Chrome extension connection. The extension crashes or sessions interfere with each other (tabs get navigated away, forms lose data, etc.).

Current behavior

  • All claude --chrome CLI sessions share one native messaging host connection
  • Sessions fight over tabs and windows
  • Chrome extension dies under concurrent load

Expected behavior

Each claude --chrome session should get its own isolated Chrome window and tab group, similar to how scheduled tasks in the desktop app already work (unique session IDs, separate windows via chrome.windows.create, tab group isolation via chrome.tabGroups).

Suggestion

  • Auto-assign a unique session ID per CLI instance
  • Route each session to its own Chrome window
  • Or add a --chrome-session <id> flag for explicit isolation

Environment

  • macOS 15.6.1 (Apple M2 Pro, 32GB)
  • Chrome extension v1.0.64
  • Running 3-7 concurrent claude --chrome sessions for outreach/fundraising workflows

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions