[BUG] Hangs until timeout for non-terminating CLI commands

Resolved 💬 6 comments Opened Jun 17, 2025 by brennancheung Closed Nov 30, 2025

There are a few scenarios where Claude Code will try to run non-terminating processes such as:

  • npm run dev
  • pnpm dlx convex dev

When it does run these, Claude will hang and then eventually time out but it wastes significant time while the agent is paused waiting for it and also it doesn't seem to actually see the output either.

The workaround is to tell Clause not to run these and then manually run them outside of Claude. But this really slows down work and causes unnecessary human interaction.

npm run dev will frequently require restarts and can't simply be run in a separate terminal tab that I forget about. I have to frequently restart it when Claude edits files because it gets in a corrupt state (missing files / renaming files that used to be there is one scenario I think).

The other use case I'd like to have be more automated / agentic is having Claude start up the dev server and then check the rendered page using something like BrowserMCP or equivalent.

Are there any good workarounds or plans to solve this problem?

View original on GitHub ↗

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