[BUG] Keep getting `fg: no job control` on windows

Resolved 💬 3 comments Opened Jul 26, 2025 by cskiwi Closed Aug 12, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.61 (Claude Code)
  • Operating System: Windows 11
  • Terminal: bash

Bug Description

On one of my computers (with admin access) I keep getting fg: no job control whenever it's running any command.
I tried:

  • Setting set -m
  • Running as admin
  • Having a wrapper configured in CLAUDE_CODE_GIT_BASH_PATH with @"C:\Program Files\Git\bin\bash.exe" -i %* (and some more configurations)
  • Starting from PS, cmd, WSL all same error
  • Removing everything from .bashrc

Steps to Reproduce

  1. Launch Claude
  2. say `run npm run build `
  3. Error

Actual Behavior

That it's able to run the command, like I can run it from my own terminal just fine without any issues

Additional Context

> run `npm run build`

● I'll run the build command for you.

● Bash(npm run build)
  ⎿  Error: /usr/bin/bash: line 1: fg: no job control


     > @app/source@0.0.0 build
     > nx run-many -t build --prod


      NX   Command failed: %windir%\System32\REG.exe QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography /v
     MachineGuid

     /usr/bin/bash: line 1: fg: no job control

View original on GitHub ↗

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