[BUG] [Windows] Desktop app Code tab hangs indefinitely — daemon supervisor exits after 5s idle instead of documented ~1hr

Resolved 💬 2 comments Opened Jun 23, 2026 by r3dtap3 Closed Jun 26, 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?

Claude Desktop's Code tab hangs indefinitely on every prompt — spinner runs forever, zero output, no error. /doctor run inside the Code tab also hangs (~5 min, no response). Happens on brand new sessions, not session-specific.

The CLI itself is fully healthy when run from a plain terminal — claude --version, claude doctor, and claude --bg -p "say hello" all complete successfully end-to-end. The issue is isolated to the desktop app's Code tab specifically.

Root cause appears to be the background daemon's idle-exit timing. daemon.log shows the supervisor starting, completing a background task successfully in ~4s, then exiting after only 5 seconds idle:

[2026-06-23T01:57:24.186Z] [supervisor] ─── daemon start ─── version=2.1.186 pid=28544 origin=transient

[2026-06-23T01:57:24.695Z] [supervisor] auth: scheduling proactive refresh in 26878s

[2026-06-23T01:57:25.137Z] [supervisor] workers=0

[2026-06-23T01:57:25.282Z] [bg] bg spawned 622b91f1 (shell)

[2026-06-23T01:57:29.029Z] [bg] bg settled 622b91f1 (done)

[2026-06-23T01:57:34.041Z] [supervisor] idle 5s with no clients — exiting

[2026-06-23T01:57:34.042Z] [supervisor] shutting down (cause=idle_exit, uptime=10s, leases=0, live_workers=0)

Documentation/other reports describe the idle timeout as ~1 hour, not 5 seconds. If the desktop app's Code tab bridges to the engine through this same daemon, an exit this fast would leave the UI waiting on a pipe connection that no longer exists — with no error surfaced back to the user, matching the silent infinite-spinner symptom exactly.

Environment

  • OS: Windows 11, win32-x64
  • Claude Code CLI: 2.1.186, npm-global install (C:\Users\dahkn\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code\bin\claude.exe)
  • Claude for Windows (desktop app): 1.14271.0 (c8f4d8)
  • Machine is policy-managed (Group Policy access restricted — cannot inspect named-pipe-related local security policy directly)

Steps to Reproduce

  1. Open Claude Desktop, go to Code tab
  2. Send any prompt, or run /doctor
  3. Spinner runs indefinitely, no response, no error

What I've Already Tried (no effect on any of these)

  • Cleared app cache, deleted app data, restarted PC (multiple times)
  • Killed all claude.exe/Claude.exe processes via Task Manager before each retest
  • Updated CLI from 2.1.156 → 2.1.186 (npm install -g @anthropic-ai/claude-code@latest), confirmed via claude --version
  • Confirmed claude doctor and claude --bg -p "say hello" work correctly from a plain terminal — daemon spawns, runs task, completes successfully
  • Set CLAUDE_CODE_DISABLE_AGENT_VIEW=1 and CLAUDE_CODE_DISABLE_WORKFLOWS=1 via setx, confirmed both persisted after a full system restart — no change to the Code tab hang

What Should Happen?

Code tab responds to prompts the same way the CLI does in a terminal.

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

  1. Open Claude Desktop, go to Code tab
  2. Send any prompt, or run /doctor
  3. Spinner runs indefinitely, no response, no error

What I've Already Tried (no effect on any of these)

  • Cleared app cache, deleted app data, restarted PC (multiple times)
  • Killed all claude.exe/Claude.exe processes via Task Manager before each retest
  • Updated CLI from 2.1.156 → 2.1.186 (npm install -g @anthropic-ai/claude-code@latest), confirmed via claude --version
  • Confirmed claude doctor and claude --bg -p "say hello" work correctly from a plain terminal — daemon spawns, runs task, completes successfully
  • Set CLAUDE_CODE_DISABLE_AGENT_VIEW=1 and CLAUDE_CODE_DISABLE_WORKFLOWS=1 via setx, confirmed both persisted after a full system restart — no change to the Code tab hang

Expected behavior: Code tab responds to prompts the same way the CLI does in a terminal.

Actual behavior: Infinite spinner, no output, no error, on every prompt and every new session.

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.186

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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