Skip to content

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

Description

@ferrumclaudepilgrim

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:androidIssue specifically occurs on AndroidstaleIssue is inactive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions