[Bug] Claude fails to track background dev server processes, starts duplicates on port conflicts

Resolved 💬 3 comments Opened Oct 17, 2025 by chansearrington Closed Oct 21, 2025

Bug Description
Claude keeps forgetting that it already started the dev server as a background task. I now have two running in the background from the this chat. It started both of them. It had one running already and instead of using it. thought that there wasn't one running so it started a second one even after it identified that the port for our dev server was already in use. Now I have two dev servers running both as background tasks in this chat

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.0.21
  • Feedback ID: 4a916da3-4db3-46da-88c5-151e618a491c

Errors

[{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n    at Zn2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-17T20:57:02.902Z"},{"error":"Error: ### Result\nTimeoutError: page.goto: Timeout 60000ms exceeded.\nCall log:\n\^[[2m  - navigating to \"http://localhost:3000/\", waiting until \"domcontentloaded\"\^[[22m\n\n\n    at mZB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1356:7504)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1356:18833)\n    at async bC8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:65320)\n    at async uCQ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:62374)\n    at async xC8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:61226)\n    at async kC8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:60709)\n    at async Tj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2649:57747)\n    at async u9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2806:33422)\n    at async QI (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2806:34357)","timestamp":"2025-10-17T20:58:07.502Z"}]

View original on GitHub ↗

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