claude-code
claude-code copied to clipboard
[BUG] Claude in Chrome crashes Claude Code on WSL2 - unrecoverable without factory reset
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?
When Claude in Chrome is enabled on WSL2, Claude Code crashes on startup with an unhandled error. The error prevents the app from starting, making it impossible to disable the feature via /chrome command.
What Should Happen?
- Claude Code should detect unsupported platform BEFORE allowing user to enable
- Or gracefully disable the feature on unsupported platforms at startup
- Should NOT crash and lock user out
Error Messages/Logs
636 | Never reuse tab IDs from a
previous/other session. Follow these
guidelines:
2637 | 1. Only reuse an existing tab if the
user explicitly asks to work with it
2638 | 2. Otherwise, create a new tab with
mcp__claude-in-chrome__tabs_create_mcp
2639 | 3. If a tool returns an error
indicating the tab doesn't exist or is
invalid, call tabs_context_mcp to get fresh
tab IDs
2640 | 4. When a tab is closed by the user or
a navigation error occurs, call
tabs_context_mcp to see what tabs are
available
2641 | `;function
$w$(H){if(zB()&&H!==!0)return!1;if(H===!0)retu
rn!0;if(H===!1)return!1;if(JA(process.env.CLAU
DE_CODE_ENABLE_CFC))return!0;if(sJ(process.env
.CLAUDE_CODE_ENABLE_CFC))return!1;let $=S$();i
f($.claudeInChromeDefaultEnabled!==void
0)return $.claudeInChromeDefaultEnabled;return
!1}function uOA(){let H=NM(),$=APH.map((A)=>`m
cp__claude-in-chrome__${A.name}`);if(H){let
A=`"${process.execPath}"
--chrome-native-host`;return
GvD(A).then((L)=>MvD(L)),{mcpConfig:{[Zb]:{typ
e:"stdio",command:process.execPath,args:["--cl
aude-in-chrome-mcp"],scope:"dynamic"}},allowed
Tools:$,systemPrompt:bOA}}else{let
A=UvD.fileURLToPath("file:///home/runner/work/
claude-cli-internal/claude-cli-internal/src/ut
ils/claudeInChrome/setup.ts"),L=zP.join(A,".."
),I=zP.join(L,"cli.js");return
GvD(`"${process.execPath}" "${I}" --chrome-nat
ive-host`).then((B)=>MvD(B)),{mcpConfig:{[Zb]:
{type:"stdio",command:"node",args:[`${I}`,"--c
laude-in-chrome-mcp"],scope:"dynamic"}},allowe
dTools:$,systemPrompt:bOA}}}function WW1(){let
H=vL(),$=hOA.homedir();swi | ... truncated
error: Claude in Chrome Native Host not
supported on this platform
at MvD (/$bunfs/root/claude:2641:1418)
at MvD (/$bunfs/root/claude:2641:2137)
at <anonymous>
(/$bunfs/root/claude:2641:446)
Steps to Reproduce
- Run
/chromeon WSL2 - Select "Enabled by default: Yes"
- Restart Claude Code
- App crashes immediately
Claude Model
Not sure / Multiple models
Is this a regression?
No, this never worked
Last Working Version
No response
Claude Code Version
2.0.76(Claude code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Windows Terminal
Additional Information
Workaround
Had to use an existing open session to run /chrome and disable. Without that, would have needed factory reset.