claude-code - 💡(How to fix) Fix [BUG] Claude Code never invokes tools, only returns text responses (Windows 11, v2.1.123, acceptEdits mode) [1 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#54717Fetched 2026-04-30 06:37:58
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

Error Messages/Logs

no error has shown

Code Example

no error has shown
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Windows 11, Node v24.15.0, using nvm acceptEdits mode is enabled node -e "fs.writeFileSync(...)" works Claude Code does not make tool calls, it only returns text Same issue in both CLI and VS Code extension


I have tested this issue across multiple environments on Windows:

WSL Command Prompt (cmd) PowerShell Windows Terminal VS Code with the Claude Code extension

The behavior is consistent in all cases — Claude Code does not trigger tool calls and only returns text.

However, when using the same setup on macOS, everything works as expected and tool calls are executed properly.

I am currently using a company-managed Windows machine. Could there be any restrictions (e.g., security policies, permissions, antivirus, or system configurations) that might be preventing tool execution?

What Should Happen?

When running Claude Code with acceptEdits mode enabled, the system should execute tool calls instead of only returning text responses.

Error Messages/Logs

no error has shown

Steps to Reproduce

Claude Code returns code as plain text but does not execute any tool calls or apply changes to the file system

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

2.1.123 (Claude Code)

Platform

Other

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

extent analysis

TL;DR

Investigate Windows-specific security policies or restrictions that might prevent tool execution, as the issue only occurs on Windows and not on macOS.

Guidance

  • Check company-managed Windows machine's security policies and antivirus settings to see if they are blocking tool execution.
  • Verify file system permissions to ensure Claude Code has the necessary access to execute tool calls.
  • Compare the environment variables and system configurations between the working macOS setup and the non-working Windows setup to identify potential differences.
  • Test Claude Code on a non-company-managed Windows machine to isolate if the issue is specific to the company's security policies.

Notes

The issue seems to be specific to the Windows environment, and the fact that it works on macOS suggests that the problem might be related to Windows-specific security restrictions or configurations.

Recommendation

Apply workaround: Investigate and potentially modify Windows security policies or restrictions to allow tool execution, as the issue is likely related to the company-managed Windows machine's configuration.

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