claude-code - 💡(How to fix) Fix [Bug] Auto mode disabled after EnterWorktree and cannot be re-enabled [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49598Fetched 2026-04-17 08:36:39
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

Error Message

[{"error":"Error: ECONNREFUSED\n at from (/$bunfs/root/src/entrypoints/cli.js:107:7862)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12917)\n at emitError (node:events:43:23)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T23:37:15.511Z"},{"error":"Error: ECONNREFUSED\n at from (/$bunfs/root/src/entrypoints/cli.js:107:7862)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12917)\n at emitError (node:events:43:23)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:_http_client:253:22)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T23:37:38.007Z"}]

Code Example

[{"error":"Error: ECONNREFUSED\n    at from (/$bunfs/root/src/entrypoints/cli.js:107:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12917)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T23:37:15.511Z"},{"error":"Error: ECONNREFUSED\n    at from (/$bunfs/root/src/entrypoints/cli.js:107:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12917)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T23:37:38.007Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description When using EnterWorktree, auto mode is disabled and cannot be toggled back on until you cancel and resume the session

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.112
  • Feedback ID: 7557e50e-8805-40fa-ac95-0549190ec749

Errors

[{"error":"Error: ECONNREFUSED\n    at from (/$bunfs/root/src/entrypoints/cli.js:107:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12917)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T23:37:15.511Z"},{"error":"Error: ECONNREFUSED\n    at from (/$bunfs/root/src/entrypoints/cli.js:107:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12917)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T23:37:38.007Z"}]

extent analysis

TL;DR

The issue with EnterWorktree auto mode not toggling back on until the session is cancelled and resumed may be related to a connection refusal error, suggesting a potential networking or server-side issue.

Guidance

  • Investigate the ECONNREFUSED error further, as it indicates a connection refusal, which could be due to a server-side issue or a networking problem.
  • Check the server status and ensure it is running and accessible.
  • Consider verifying the network connection and firewall settings to ensure they are not blocking the connection.
  • Look into the cli.js file at lines 107 and 115, as the error stacktrace points to these locations, to understand the context of the error.

Example

No specific code snippet can be provided without more context, but reviewing the cli.js file and the lines mentioned in the error stacktrace may offer insights into the issue.

Notes

The provided information does not specify the exact cause of the ECONNREFUSED error, which could be due to various reasons such as server downtime, network issues, or firewall settings. Further investigation into the server and network environment is necessary.

Recommendation

Apply workaround: Given the lack of information about the server and network environment, applying a workaround such as checking the server status, network connection, and firewall settings before attempting to use EnterWorktree in auto mode might help mitigate the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Auto mode disabled after EnterWorktree and cannot be re-enabled [1 comments, 2 participants]