[BUG] macOS 26.4.1: claude -p exits with code 0 but no output, claude auth login hangs indefinitely

Resolved 💬 3 comments Opened Apr 17, 2026 by pthepthongsene Closed May 27, 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?

macOS 26.4.1
claude -p "hello" exits with code 0 but no output
claude auth login hangs indefinitely
Both ~/.local/bin/claude (native installer) and /opt/homebrew/bin/claude (npm) have the same behavior

The main issue is claude code does not work via the desktop app nor in vs code. It just hangs.

Error: Query closed before response received
View output logs · Troubleshooting resources

What Should Happen?

I should be able to have claude code fix/suggest updates

Error Messages/Logs

2026-04-17 12:52:18.336 [info] From claude: 2026-04-17T17:52:18.336Z [ERROR] Failed to save config with lock: TypeError: null is not an object (evaluating 'T.history')

2026-04-17 12:52:18.336 [info] From claude: 2026-04-17T17:52:18.336Z [ERROR] Error: Error: Failed to migrate auto-updates: TypeError: null is not an object (evaluating 'T.history')
    at a7K (/$bunfs/root/src/entrypoints/cli.js:17826:4587)
    at Qo5 (/$bunfs/root/src/entrypoints/cli.js:18123:1799)
    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18124:829)
    at processTicksAndRejections (native:7:39)

2026-04-17 12:52:18.338 [info] From claude: 2026-04-17T17:52:18.338Z [ERROR] Failed to save config with lock: TypeError: null is not an object (evaluating 'T.history')

2026-04-17 12:52:18.338 [info] From claude: 2026-04-17T17:52:18.338Z [ERROR] Error: Error: Failed to reset auto mode opt-in: TypeError: null is not an object (evaluating 'T.history')
    at DKK (/$bunfs/root/src/entrypoints/cli.js:17826:8456)
    at Qo5 (/$bunfs/root/src/entrypoints/cli.js:18123:1853)
    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18124:829)
    at processTicksAndRejections (native:7:39)

2026-04-17 12:52:18.339 [info] From claude: 2026-04-17T17:52:18.339Z [ERROR] Failed to save config with lock: TypeError: null is not an object (evaluating 'T.history')

2026-04-17 12:52:18.340 [info] From claude: 2026-04-17T17:52:18.340Z [DEBUG] Git remote URL: null
2026-04-17T17:52:18.340Z [DEBUG] No git remote URL found

2026-04-17 12:52:18.346 [info] From claude: 2026-04-17T17:52:18.346Z [ERROR] Failed to save config with lock: TypeError: null is not an object (evaluating 'T.history')

2026-04-17 12:52:18.346 [info] From claude: 2026-04-17T17:52:18.346Z [ERROR] getOrCreateUserID: could not persist userID: TypeError: null is not an object (evaluating 'T.history')

2026-04-17 12:52:18.632 [info] From claude: 2026-04-17T17:52:18.631Z [ERROR] Failed to save config with lock: TypeError: null is not an object (evaluating 'T.history')

2026-04-17 12:52:48.312 [info] From claude: 2026-04-17T17:52:48.312Z [DEBUG] Remote settings: Loading promise timed out, resolving anyway

2026-04-17 12:52:48.327 [info] From claude: 2026-04-17T17:52:48.327Z [DEBUG] Policy limits: Loading promise timed out, resolving anyway

2026-04-17 12:52:48.335 [info] Closing Claude on channel: 9uxdbfi3gjd
2026-04-17 12:52:48.335 [error] Error spawning Claude (on channel 9uxdbfi3gjd): Error: Query closed before response received
2026-04-17 12:52:48.335 [error] Failed to load config cache: Error: Query closed before response received
2026-04-17 12:52:48.335 [error] Error processing client request: Error: Query closed before response received
2026-04-17 12:52:48.339 [info] Received message from webview: {"type":"interrupt_claude","channelId":"vw6adgy4c3g"}
2026-04-17 12:52:48.339 [warning] Channel not found: vw6adgy4c3g
2026-04-17 12:56:40.406 [info] Received message from webview: {"type":"request","requestId":"kjluazfwsjc","request":{"type":"open_output_panel"}}
2026-04-17 14:56:41.991 [info] Received message from webview: {"type":"request","requestId":"qi1mfplbb9o","request":{"type":"open_output_panel"}}

Steps to Reproduce

I am just trying to use claude code to make suggestions or use the atlassian MCP that i configured yesterday. It just hangs when I feed it a ticket number or ask for it to fix an issue with a project.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.112

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 ↗