claude-code - 💡(How to fix) Fix [BUG] Code and Cowork tabs missing after auto-update — Claude Desktop 1.2581.0, macOS, Max plan [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48310Fetched 2026-04-16 07:03:24
View on GitHub
Comments
2
Participants
3
Timeline
10
Reactions
0
Author
Timeline (top)
cross-referenced ×4labeled ×4commented ×2

Error Message

From ~/Library/Logs/Claude/main-window.log:

[error] Unable to load preload script: /Applications/Claude.app/Contents/Resources/app.asar/.vite/build/mainWindow.js [error] Preload script failed to execute: 'mainWindow.js' reply was never sent [error] Uncaught ReferenceError: process is not defined

Note: cowork_vm_node.log shows no errors — VM loads successfully. Issue is in Desktop UI initialization.

Code Example

From ~/Library/Logs/Claude/main-window.log:

[error] Unable to load preload script: /Applications/Claude.app/Contents/Resources/app.asar/.vite/build/mainWindow.js
[error] Preload script failed to execute: 'mainWindow.js' reply was never sent
[error] Uncaught ReferenceError: process is not defined

Note: cowork_vm_node.log shows no errors — VM loads successfully. Issue is in Desktop UI initialization.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Hi Anthropic Support,

I'm reporting a bug where the Code and Cowork tabs have completely disappeared from Claude Desktop after an automatic update.

Environment:

  • Claude Desktop: 1.2581.0 (f10398)
  • Device: MacBook Air M1, 2020
  • OS: macOS Tahoe 26.3
  • Plan: Max

Symptoms:

  • Only the Chat tab is visible. Code and Cowork tabs are gone.
  • This happened after an automatic update. No changes were made on my end.

Troubleshooting steps already taken:

  • Quit and relaunched the app
  • Full uninstall and reinstall from claude.com/download
  • Manually deleted all Claude data: Application Support, Caches, Preferences, session folders
  • Verified "You are running the latest version" in the app
  • None of the above resolved the issue

Relevant error from ~/Library/Logs/Claude/main-window.log: [error] Unable to load preload script: .../mainWindow.js [error] Preload script failed to execute: 'mainWindow.js' reply was never sent [error] Uncaught ReferenceError: process is not defined

Note: cowork_vm_node.log shows no errors — the VM loads successfully. The issue appears to be in the Desktop app's UI initialization, not the underlying VM or Code binary.

Please investigate. I rely on Code and Cowork for daily work and have exhausted all local troubleshooting options.

Best regards, Șerban Dinu [email protected]

What Should Happen?

Code and Cowork tabs should appear in the top navigation bar alongside the Chat tab, as they did prior to the automatic update.

Error Messages/Logs

From ~/Library/Logs/Claude/main-window.log:

[error] Unable to load preload script: /Applications/Claude.app/Contents/Resources/app.asar/.vite/build/mainWindow.js
[error] Preload script failed to execute: 'mainWindow.js' reply was never sent
[error] Uncaught ReferenceError: process is not defined

Note: cowork_vm_node.log shows no errors — VM loads successfully. Issue is in Desktop UI initialization.

Steps to Reproduce

  1. Launch Claude Desktop 1.2581.0 (f10398) on macOS Tahoe 26.3, MacBook Air M1
  2. Observe: only the Chat tab is visible — Code and Cowork tabs are missing
  3. Quit and relaunch the app — same result
  4. Full uninstall, manual deletion of all Claude data (Application Support, Caches, Preferences, session folders), fresh reinstall from claude.com/download
  5. Relaunch — same result. Only Chat tab visible.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

The tabs were visible and working on April 14, 2026. They disappeared after an automatic update overnight. Last known working version is unknown — the app auto-updated without notification.

Claude Code Version

Claude Desktop: 1.2581.0 (f10398)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue is likely caused by a problem with the preload script mainWindow.js and can be temporarily worked around by investigating the main-window.log for more specific error details.

Guidance

  • Investigate the main-window.log for more specific error details related to the preload script mainWindow.js to understand why it's failing to load.
  • Check if there are any issues with the app.asar file or its contents, as the error message points to a problem within this archive.
  • Consider reaching out to Anthropic Support for further assistance, as the issue persists after a full reinstall and the error messages suggest a problem with the application's internal scripts.
  • Review the application's update history to see if any recent changes could be related to the disappearance of the Code and Cowork tabs.

Notes

The exact cause of the issue is unclear, but it seems to be related to the application's UI initialization and the preload script. Without more information about the script or the application's internal workings, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Given the lack of information about the underlying cause, the best course of action is to continue troubleshooting and potentially reach out to Anthropic Support for more personalized assistance.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING