New sessions fail with "Claude Code process exited with code 1" in desktop app v2.1.87

Resolved 💬 3 comments Opened Apr 1, 2026 by Aniqfarooq Closed May 22, 2026

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?

App version: 2.1.87
OS: macOS

Issue:
New sessions in the desktop app fail immediately with no response.
The log shows: Claude Code process exited with code 1

Running the binary manually reveals the actual error:
Error: Input must be provided either through stdin or as a prompt argument when using --print

The desktop app appears to be launching the claude binary with --print
but without passing the prompt, causing it to exit immediately.

Steps to reproduce:

  1. Open Claude Code desktop app
  2. Start a new session in any project
  3. Type any message — no response, session fails immediately

Expected: Session starts and responds normally
Actual: Process exits with code 1, no response

Workaround: Using the CLI (claude in terminal) works fine.

What Should Happen?

fix

Error Messages/Logs

none doesnt respond

Steps to Reproduce

just sending a message using the app

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.87

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗