[BUG] Explore/Search tool interrupted on large result sets - "Interrupted · What should Claude do instead?"

Resolved 💬 3 comments Opened Mar 19, 2026 by meraline Closed Mar 23, 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?

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report
  • [x] I am using the latest version of Claude Code

What's Wrong?

The Explore tool (which runs parallel Search operations) consistently gets interrupted when searching patterns that return large result sets. The interruption happens silently with "Interrupted · What should Claude do instead?" - no actual error message.

This is different from issue #11331 (subagent interruption after manual ESC) - here the interruption happens automatically without any user input, specifically during Explore/Search operations.

Debug Log Error

2026-03-19T05:26:30.346Z [ERROR] TypeError: TypeError: A.with is not a function
2026-03-19T05:26:44.468Z [ERROR] TypeError: TypeError: A.with is not a function

This error appears in debug log during the interruptions.

Environment

  • Claude Code: 2.1.79 (latest via npm)
  • OS: Ubuntu Linux
  • Auth: Claude Max subscription
  • Model: Opus 4.6

Reproduction Steps

  1. Open a large codebase (100+ Python files)
  2. Run a broad search query:
   > найди все TODO и FIXME в проекте

or in English:

   > find all TODO and FIXME in the project
  1. Claude triggers Explore tool with multiple parallel Search operations
  2. After 30-60 seconds of "Sautéed/Crunched for Xs", get "Interrupted"

Example Session Log

● Explore(Поиск заглушек в проекте)
  ⎿  Search(pattern: "TODO|FIXME|HACK|XXX|TEMP", path: "/project")
     Search(pattern: "NotImplementedError|not implemented", path: "/project")
     +1 more tool use
  ⎿  Interrupted · What should Claude do instead?

● Read 10 files (ctrl+o to expand)
  ⎿  Interrupted · What should Claude do instead?

✻ Sautéed for 48s

Expected Behavior

  • Search should complete and return results (possibly truncated if too large)
  • Or: Search should fail gracefully with an error message explaining the limit
  • Or: Search should stream results progressively

Actual Behavior

  • Silent interruption with no explanation
  • TypeError in debug log suggests internal JS error
  • Session becomes unstable, subsequent tool calls may also get interrupted

Workarounds

  1. Break queries into smaller scopes:
   > find TODO only in src/decision_maker/
  1. Use bash instead of Explore:
   > grep -rn "TODO" src/ | head -50
  1. Restart Claude Code between large search operations

Additional Context

  • VS Code sidebar Claude chat works fine with same subscription (parallel usage)
  • The issue is specific to CLI tool execution, not API connectivity
  • Happens consistently on codebases with 50+ files matching the pattern
  • Debug log path: ~/.claude/debug/<session-id>.txt

Related Issues

  • #11331 - Similar "Interrupted" symptom but different trigger (subagents after ESC)
  • #33949 - Root cause analysis of abort state issues

What Should Happen?

  • Search should complete and return results (possibly truncated if too large)
  • Or: Search should fail gracefully with an error message explaining the limit
  • Or: Search should stream results progressively

Error Messages/Logs

2026-03-19T05:26:30.346Z [ERROR] TypeError: TypeError: A.with is not a function
2026-03-19T05:26:44.468Z [ERROR] TypeError: TypeError: A.with is not a function

Steps to Reproduce

  1. Open a large codebase (100+ Python files)
  2. Run a broad search query:
   > найди все TODO и FIXME в проекте

or in English:

   > find all TODO and FIXME in the project
  1. Claude triggers Explore tool with multiple parallel Search operations
  2. After 30-60 seconds of "Sautéed/Crunched for Xs", get "Interrupted"

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.79

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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