claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Feature Request] Add Chrome profile selection option to --chrome flag

Open adamgall opened this issue 3 weeks ago • 2 comments

Bug Description when starting claude with --chrome, it would be awesome if I could bind that to a specific Chrome profile.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.0.76
  • Feedback ID: 08fb06bf-993f-42e3-b6cf-75c1aec6faab

Errors

[{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at WwB (/$bunfs/root/claude:2541:6724)\n    at L4 (/$bunfs/root/claude:202:20697)\n    at wq (/$bunfs/root/claude:202:39069)\n    at DTT (/$bunfs/root/claude:202:49684)\n    at J6 (/$bunfs/root/claude:202:85872)\n    at Vv (/$bunfs/root/claude:202:84850)\n    at mf (/$bunfs/root/claude:202:84675)\n    at Hk (/$bunfs/root/claude:202:81115)\n    at wA (/$bunfs/root/claude:202:6362)\n    at CR (/$bunfs/root/claude:202:4876)","timestamp":"2025-12-29T17:24:34.300Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at WwB (/$bunfs/root/claude:2541:6724)\n    at L4 (/$bunfs/root/claude:202:20697)\n    at wq (/$bunfs/root/claude:202:39069)\n    at DTT (/$bunfs/root/claude:202:49684)\n    at J6 (/$bunfs/root/claude:202:85872)\n    at Vv (/$bunfs/root/claude:202:84850)\n    at mf (/$bunfs/root/claude:202:84675)\n    at Hk (/$bunfs/root/claude:202:81115)\n    at wA (/$bunfs/root/claude:202:6362)\n    at CR (/$bunfs/root/claude:202:4876)","timestamp":"2025-12-29T17:24:34.300Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at WwB (/$bunfs/root/claude:2541:6724)\n    at L4 (/$bunfs/root/claude:202:20697)\n    at wq (/$bunfs/root/claude:202:39069)\n    at DTT (/$bunfs/root/claude:202:49684)\n    at J6 (/$bunfs/root/claude:202:85872)\n    at Vv (/$bunfs/root/claude:202:84850)\n    at mf (/$bunfs/root/claude:202:84675)\n    at Hk (/$bunfs/root/claude:202:81115)\n    at wA (/$bunfs/root/claude:202:6362)\n    at CR (/$bunfs/root/claude:202:4876)","timestamp":"2025-12-29T17:24:34.300Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at WwB (/$bunfs/root/claude:2541:6724)\n    at L4 (/$bunfs/root/claude:202:20697)\n    at wq (/$bunfs/root/claude:202:39069)\n    at DTT (/$bunfs/root/claude:202:49684)\n    at J6 (/$bunfs/root/claude:202:85872)\n    at Vv (/$bunfs/root/claude:202:84850)\n    at mf (/$bunfs/root/claude:202:84675)\n    at Hk (/$bunfs/root/claude:202:81115)\n    at wA (/$bunfs/root/claude:202:6362)\n    at CR (/$bunfs/root/claude:202:4876)","timestamp":"2025-12-29T17:24:34.300Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at WwB (/$bunfs/root/claude:2541:6724)\n    at L4 (/$bunfs/root/claude:202:20697)\n    at wq (/$bunfs/root/claude:202:39069)\n    at DTT (/$bunfs/root/claude:202:49684)\n    at J6 (/$bunfs/root/claude:202:85872)\n    at Vv (/$bunfs/root/claude:202:84850)\n    at mf (/$bunfs/root/claude:202:84675)\n    at Hk (/$bunfs/root/claude:202:81115)\n    at wA (/$bunfs/root/claude:202:6362)\n    at CR (/$bunfs/root/claude:202:4876)","timestamp":"2025-12-29T17:24:34.301Z"},{"error":"Error: Tool mcp__claude-in-chrome__read_page not found\n    at WwB (/$bunfs/root/claude:2541:6724)\n    at L4 (/$bunfs/root/claude:202:20697)\n    at wq (/$bunfs/root/claude:202:39069)\n    at DTT (/$bunfs/root/claude:202:49684)\n    at J6 (/$bunfs/root/claude:202:85872)\n    at Vv (/$bunfs/root/claude:202:84850)\n    at mf (/$bunfs/root/claude:202:84675)\n    at Hk (/$bunfs/root/claude:202:81115)\n    at wA (/$bunfs/root/claude:202:6362)\n    at CR (/$bunfs/root/claude:202:4876)","timestamp":"2025-12-29T17:24:34.301Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at WwB (/$bunfs/root/claude:2541:6724)\n    at L4 (/$bunfs/root/claude:202:20697)\n    at wq (/$bunfs/root/claude:202:39069)\n    at DTT (/$bunfs/root/claude:202:49684)\n    at J6 (/$bunfs/root/claude:202:85872)\n    at Vv (/$bunfs/root/claude:202:84850)\n    at mf (/$bunfs/root/claude:202:84675)\n    at Hk (/$bunfs/root/claude:202:81115)\n    at wA (/$bunfs/root/claude:202:6362)\n    at CR (/$bunfs/root/claude:202:4876)","timestamp":"2025-12-29T17:24:34.301Z"},{"error":"Error: Tool mcp__claude-in-chrome__computer not found\n    at WwB (/$bunfs/root/claude:2541:6724)\n    at L4 (/$bunfs/root/claude:202:20697)\n    at wq (/$bunfs/root/claude:202:39069)\n    at DTT (/$bunfs/root/claude:202:49684)\n    at J6 (/$bunfs/root/claude:202:85872)\n    at Vv (/$bunfs/root/claude:202:84850)\n    at mf (/$bunfs/root/claude:202:84675)\n    at Hk (/$bunfs/root/claude:202:81115)\n    at wA (/$bunfs/root/claude:202:6362)\n    at CR (/$bunfs/root/claude:20

Note: Error logs were truncated.

adamgall avatar Dec 29 '25 17:12 adamgall

I think I already addressed these, can you check @leprachuan ?

adamdotdevin avatar Jan 02 '26 12:01 adamdotdevin

@adamdotdevin thanks for taking a look and sorry for my tardiness, were past the holidays and work has started back up. I checked in the most recent dev branch and I don't see any null coalescing protections against localCompares. You might have addressed the situations where async resulted in the value still being null and not a string when the localCompare is attempted. However, I still believe it would be of value have a default value in the event the string is null to avoid UI crashes.

Examples of where we should probably put a check from the current dev branch :)

Components:

  • packages/app/src/components/dialog-manage-models.tsx:18
  • packages/app/src/components/dialog-select-mcp.tsx:16,44
  • packages/app/src/components/dialog-select-model-unpaid.tsx:74
  • packages/app/src/components/dialog-select-model.tsx:36
  • packages/app/src/components/dialog-select-provider.tsx:27

Context:

  • packages/app/src/context/global-sync.tsx:170,274,306,598
  • packages/app/src/context/sync.tsx:60,73,131,234

Pages:

  • packages/app/src/pages/layout.tsx:376,567,580

Console:

  • packages/console/app/src/routes/workspace/[id]/model-section.tsx:51

essentially, anytime the expected string object in any of these calls is not already set prior to the compare the UI will crash :)

Perhaps this is covered by protections in the data flow that garuntees that these values are never null or unset at the time of compare, if so feel free to decline the PR, however thats extremely hard to garuntee :)

leprachuan avatar Jan 17 '26 01:01 leprachuan