claude doctor crashes on Android/Termux -- Ink raw mode not supported

Resolved 💬 2 comments Opened Mar 23, 2026 by ferrumclaudepilgrim Closed Apr 20, 2026

Environment

  • Platform: Android 16 (Samsung Galaxy S26 Ultra)
  • Terminal: Termux (native, not proot)
  • Claude Code version: 2.1.81
  • Node.js: v25.8.1
  • process.platform: "android"

Description

Running claude doctor crashes immediately with an Ink library error about raw mode stdin.

Reproduction

$ claude doctor
ERROR Raw mode is not supported on the current process.stdin, which Ink uses
      as input stream by default.

This happens in both:

  • Direct terminal invocation (interactive TTY)
  • Backgrounded/piped invocation (claude doctor 2>&1)

Expected Behavior

claude doctor should run diagnostics and report health status.

Actual Behavior

Crashes before producing any diagnostic output. The Ink terminal UI library requires setRawMode() on stdin, which is not always available in Termux.

Stack Trace

handleSetRawMode (cli.js:787:4304)

Workaround

None confirmed. The diagnostic functionality is inaccessible on Android/Termux.

Notes

All other Claude Code features work correctly on Android/Termux -- interactive sessions, subagents (6 concurrent), hooks, skills, MCP servers, PDF reading, cron headless sessions. This appears to be specific to the doctor subcommand's UI rendering path.

View original on GitHub ↗

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