[BUG] tool call markup corruption with "court" prefix

Resolved 💬 2 comments Opened Jun 5, 2026 by lococountofficial Closed Jun 8, 2026

Preflight Checklist

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

What's Wrong?

Claude Code intermittently outputs "court" as a literal string
instead of properly invoking tools (especially str_replace_editor or Bash).
This causes the tool call to stall.

Reproduction:

  • Complex multi-edit sessions
  • After several str_replace operations
  • Frequency: ~50% of attempted str_replace calls in long sessions

Workaround:

  • Restart Claude Code session
  • Simplify commands (no here-doc, single command per Bash call)

What Should Happen?

Claude Code intermittently outputs "court" as a literal string
instead of properly invoking tools (especially str_replace_editor or Bash).
This causes the tool call to stall.

Reproduction:

  • Complex multi-edit sessions
  • After several str_replace operations
  • Frequency: ~50% of attempted str_replace calls in long sessions

Workaround:

  • Restart Claude Code session
  • Simplify commands (no here-doc, single command per Bash call)

Error Messages/Logs

court

Steps to Reproduce

Claude Code intermittently outputs "court" as a literal string
instead of properly invoking tools (especially str_replace_editor or Bash).
This causes the tool call to stall.

Reproduction:

  • Complex multi-edit sessions
  • After several str_replace operations
  • Frequency: ~50% of attempted str_replace calls in long sessions

Workaround:

  • Restart Claude Code session
  • Simplify commands (no here-doc, single command per Bash call)

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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