claude-code - 💡(How to fix) Fix [Bug] Claude Code ignores claude.md safety instructions for destructive commands [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#45462Fetched 2026-04-09 08:04:53
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

Error Message

[{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.700Z"},{"error":"Error: Tool mcp__playwright__browser_take_screenshot not found\n at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.701Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.705Z"},{"error":"Error: Tool mcp__playwright__browser_navigate not found\n at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.706Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.707Z"},{"error":"Error: Tool mcp__playwright__browser_take_screenshot not found\n at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n at f1H (/…

Code Example

[{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.700Z"},{"error":"Error: Tool mcp__playwright__browser_take_screenshot not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.701Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.705Z"},{"error":"Error: Tool mcp__playwright__browser_navigate not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.706Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.707Z"},{"error":"Error: Tool mcp__playwright__browser_take_screenshot not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/
RAW_BUFFERClick to expand / collapse

Bug Description claude didn't follow the claude.md instruction about don't run the "php artisan migrate:fresh" without asking the user. Aside of the claude.md, is there a better approach to avoid this in the future?

Environment Info

  • Platform: linux
  • Terminal: tmux
  • Version: 2.1.96
  • Feedback ID: 7c78828a-dad5-4c84-9765-960a0324ac1b

Errors

[{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.700Z"},{"error":"Error: Tool mcp__playwright__browser_take_screenshot not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.701Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.705Z"},{"error":"Error: Tool mcp__playwright__browser_navigate not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.706Z"},{"error":"Error: Tool mcp__playwright__browser_evaluate not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/$bunfs/root/src/entrypoints/cli.js:479:85672)\n    at rPH (/$bunfs/root/src/entrypoints/cli.js:479:82039)\n    at gH (/$bunfs/root/src/entrypoints/cli.js:479:6482)\n    at VH (/$bunfs/root/src/entrypoints/cli.js:479:4967)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16821:7534)","timestamp":"2026-04-08T21:06:18.707Z"},{"error":"Error: Tool mcp__playwright__browser_take_screenshot not found\n    at hnK (/$bunfs/root/src/entrypoints/cli.js:1961:30437)\n    at m5 (/$bunfs/root/src/entrypoints/cli.js:479:20982)\n    at WO (/$bunfs/root/src/entrypoints/cli.js:479:39522)\n    at oT (/$bunfs/root/src/entrypoints/cli.js:479:50213)\n    at bxH (/$bunfs/root/src/entrypoints/cli.js:479:86887)\n    at A1H (/$bunfs/root/src/entrypoints/cli.js:479:85851)\n    at f1H (/…

Note: Content was truncated.

extent analysis

TL;DR

The issue seems to be related to missing tools in the Playwright browser, and a potential workaround is to ensure that the necessary tools are installed and configured properly before running the php artisan migrate:fresh command.

Guidance

  • Verify that the Playwright browser tools are installed and up-to-date, as the error messages indicate that tools like mcp__playwright__browser_evaluate and mcp__playwright__browser_take_screenshot are not found.
  • Check the configuration files and documentation for any specific requirements or dependencies needed for the Playwright browser tools to function correctly.
  • Consider adding a check or prompt before running the php artisan migrate:fresh command to ensure that the necessary tools are available and configured properly.
  • Review the claude.md instructions and ensure that they are being followed correctly, as the issue mentions that Claude did not follow the instructions.

Example

No specific code example can be provided without more context, but ensuring that the necessary tools are installed and configured properly might involve running a command like npm install or composer install to install dependencies.

Notes

The issue seems to be related to a specific tool or configuration, and without more information, it's difficult to provide a more specific solution. The error messages indicate that the issue is related to the Playwright browser tools, but the exact cause and solution may depend on the specific configuration and setup.

Recommendation

Apply a workaround by ensuring that the necessary tools are installed and configured properly before running the php artisan migrate:fresh command, as this seems to be the most likely cause of 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