claude-code - 💡(How to fix) Fix [Bug] Agent tool doesn't inherit deferred tools from parent agent

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…

Error Message

[{"error":"Error: Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.\n at cj (/$bunfs/root/src/entrypoints/cli.js:2883:9430)\n at QQ1 (/$bunfs/root/src/entrypoints/cli.js:2883:13850)\n at M67 (/$bunfs/root/src/entrypoints/cli.js:2883:14486)\n at W15 (/$bunfs/root/src/entrypoints/cli.js:5242:13343)\n at R15 (/$bunfs/root/src/entrypoints/cli.js:5242:13420)\n at n2 (/$bunfs/root/src/entrypoints/cli.js:472:26073)\n at useState (/$bunfs/root/src/entrypoints/cli.js:472:104913)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:463:8079)\n at Sr_ (/$bunfs/root/src/entrypoints/cli.js:5242:13380)\n at IZ7 (/$bunfs/root/src/entrypoints/cli.js:6032:20968)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:1339)","timestamp":"2026-04-20T17:23:11.839Z"},{"error":"Error: Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.\n at cj (/$bunfs/root/src/entrypoints/cli.js:2883:9430)\n at QQ1 (/$bunfs/root/src/entrypoints/cli.js:2883:13850)\n at M67 (/$bunfs/root/src/entrypoints/cli.js:2883:14486)\n at W15 (/$bunfs/root/src/entrypoints/cli.js:5242:13343)\n at R15 (/$bunfs/root/src/entrypoints/cli.js:5242:13420)\n at n2 (/$bunfs/root/src/entrypoints/cli.js:472:26073)\n at useState (/$bunfs/root/src/entrypoints/cli.js:472:104913)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:463:8079)\n at Sr_ (/$bunfs/root/src/entrypoints/cli.js:5242:13380)\n at hZ7 (/$bunfs/root/src/entrypoints/cli.js:6032:14287)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:1339)","timestamp":"2026-04-20T17:23:11.839Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:24:10.268Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:1540:22340)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:1540:20876)\n at w (/$bunfs/root/src/entrypoints/cli.js:1540:24859)\n at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29930)\n at w (/$bunfs/root/src/entrypoints/cli.js:1540:30267)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1540:30813)\n at call (/$bunfs/root/src/entrypoints/cli.js:2124:1357)\n at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error: Failed to start LSP server for file /Users/ashhar.hasan/code/src/github.com/trinodb/trino-python-client/.github/scripts/update_python_versions.py: Executable not found in $PATH: "pyright-langserver"\n at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29956)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunfs/root/src/entrypoints/cli.js:1540:20876)\n at w (/$bunfs/root/src/entrypoints/cli.js:1540:24859)\n at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29930)\n at w (/$bunfs/root/src/entrypoints/cli.js:1540:30267)\n at Y (/$bunfs/root/src/entrypoints/cli.js:1540:30813)\n at call (/$bunfs/root/src/entrypoints/cli.js:2124:1357)\n at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: "pyright-langserver"\n at start (/$bunfs/root/src/entrypoints/cli.js:1540:22340)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:53:58.497Z"},{"error":"Error: Executable not found in $PATH: "pyright-langserver"\n at spawn (unknown)\n at spawn (node:child_process:667:35)\n at spawn (node:child_process:14:39)\n at start (/$bunf…

Code Example

[{"error":"Error: Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.\n    at cj (/$bunfs/root/src/entrypoints/cli.js:2883:9430)\n    at QQ1 (/$bunfs/root/src/entrypoints/cli.js:2883:13850)\n    at M67 (/$bunfs/root/src/entrypoints/cli.js:2883:14486)\n    at W15 (/$bunfs/root/src/entrypoints/cli.js:5242:13343)\n    at R15 (/$bunfs/root/src/entrypoints/cli.js:5242:13420)\n    at n2 (/$bunfs/root/src/entrypoints/cli.js:472:26073)\n    at useState (/$bunfs/root/src/entrypoints/cli.js:472:104913)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:463:8079)\n    at Sr_ (/$bunfs/root/src/entrypoints/cli.js:5242:13380)\n    at IZ7 (/$bunfs/root/src/entrypoints/cli.js:6032:20968)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:1339)","timestamp":"2026-04-20T17:23:11.839Z"},{"error":"Error: Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.\n    at cj (/$bunfs/root/src/entrypoints/cli.js:2883:9430)\n    at QQ1 (/$bunfs/root/src/entrypoints/cli.js:2883:13850)\n    at M67 (/$bunfs/root/src/entrypoints/cli.js:2883:14486)\n    at W15 (/$bunfs/root/src/entrypoints/cli.js:5242:13343)\n    at R15 (/$bunfs/root/src/entrypoints/cli.js:5242:13420)\n    at n2 (/$bunfs/root/src/entrypoints/cli.js:472:26073)\n    at useState (/$bunfs/root/src/entrypoints/cli.js:472:104913)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:463:8079)\n    at Sr_ (/$bunfs/root/src/entrypoints/cli.js:5242:13380)\n    at hZ7 (/$bunfs/root/src/entrypoints/cli.js:6032:14287)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:1339)","timestamp":"2026-04-20T17:23:11.839Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:24:10.268Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1540:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1540:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1540:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29930)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1540:30267)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1540:30813)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2124:1357)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error: Failed to start LSP server for file /Users/ashhar.hasan/code/src/github.com/trinodb/trino-python-client/.github/scripts/update_python_versions.py: Executable not found in $PATH: \"pyright-langserver\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29956)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1540:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1540:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29930)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1540:30267)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1540:30813)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2124:1357)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1540:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:53:58.497Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunf…
RAW_BUFFERClick to expand / collapse

Bug Description "Agents spawned via the Agent tool don't have access to deferred tools (like WebSearch). The agent has no indication these tools exist and no guidance to use ToolSearch to load them, so delegating web search tasks to agents silently fails."

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.98
  • Feedback ID: fefe13e9-4110-4ee0-ad5f-adbb0902fb13

Errors

[{"error":"Error: Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.\n    at cj (/$bunfs/root/src/entrypoints/cli.js:2883:9430)\n    at QQ1 (/$bunfs/root/src/entrypoints/cli.js:2883:13850)\n    at M67 (/$bunfs/root/src/entrypoints/cli.js:2883:14486)\n    at W15 (/$bunfs/root/src/entrypoints/cli.js:5242:13343)\n    at R15 (/$bunfs/root/src/entrypoints/cli.js:5242:13420)\n    at n2 (/$bunfs/root/src/entrypoints/cli.js:472:26073)\n    at useState (/$bunfs/root/src/entrypoints/cli.js:472:104913)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:463:8079)\n    at Sr_ (/$bunfs/root/src/entrypoints/cli.js:5242:13380)\n    at IZ7 (/$bunfs/root/src/entrypoints/cli.js:6032:20968)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:1339)","timestamp":"2026-04-20T17:23:11.839Z"},{"error":"Error: Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.\n    at cj (/$bunfs/root/src/entrypoints/cli.js:2883:9430)\n    at QQ1 (/$bunfs/root/src/entrypoints/cli.js:2883:13850)\n    at M67 (/$bunfs/root/src/entrypoints/cli.js:2883:14486)\n    at W15 (/$bunfs/root/src/entrypoints/cli.js:5242:13343)\n    at R15 (/$bunfs/root/src/entrypoints/cli.js:5242:13420)\n    at n2 (/$bunfs/root/src/entrypoints/cli.js:472:26073)\n    at useState (/$bunfs/root/src/entrypoints/cli.js:472:104913)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:463:8079)\n    at Sr_ (/$bunfs/root/src/entrypoints/cli.js:5242:13380)\n    at hZ7 (/$bunfs/root/src/entrypoints/cli.js:6032:14287)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:16607:1339)","timestamp":"2026-04-20T17:23:11.839Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T17:24:10.268Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1540:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1540:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1540:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29930)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1540:30267)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1540:30813)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2124:1357)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error: Failed to start LSP server for file /Users/ashhar.hasan/code/src/github.com/trinodb/trino-python-client/.github/scripts/update_python_versions.py: Executable not found in $PATH: \"pyright-langserver\"\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29956)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunfs/root/src/entrypoints/cli.js:1540:20876)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1540:24859)\n    at $ (/$bunfs/root/src/entrypoints/cli.js:1540:29930)\n    at w (/$bunfs/root/src/entrypoints/cli.js:1540:30267)\n    at Y (/$bunfs/root/src/entrypoints/cli.js:1540:30813)\n    at call (/$bunfs/root/src/entrypoints/cli.js:2124:1357)\n    at processTicksAndRejections (unknown:7:39)","timestamp":"2026-04-20T20:49:15.854Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: Executable not found in $PATH: \"pyright-langserver\"\n    at start (/$bunfs/root/src/entrypoints/cli.js:1540:22340)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-20T20:53:58.497Z"},{"error":"Error: Executable not found in $PATH: \"pyright-langserver\"\n    at spawn (unknown)\n    at spawn (node:child_process:667:35)\n    at spawn (node:child_process:14:39)\n    at start (/$bunf…

Note: Content was truncated.

extent analysis

TL;DR

The issue can be mitigated by ensuring that agents spawned via the Agent tool have access to deferred tools like WebSearch, potentially by using ToolSearch to load them.

Guidance

  • The errors suggest issues with authentication and executable paths, but the primary problem seems to be the lack of access to deferred tools for agents.
  • Verify if the agents have the necessary permissions and configurations to access these tools.
  • Check the documentation or support resources for the Agent tool and ToolSearch to understand how to properly load and use deferred tools.
  • Consider testing the ToolSearch functionality with a simple task to ensure it works as expected before delegating more complex tasks to agents.

Example

No specific code example can be provided without more context on the Agent tool's API or the exact commands used to spawn agents and load tools.

Notes

The provided error messages include a variety of issues, including authentication problems and executable not found errors, which may be related to or separate from the primary issue of agents not having access to deferred tools. The solution may involve addressing these underlying issues as well.

Recommendation

Apply a workaround by using ToolSearch to load deferred tools for agents, as this directly addresses the stated problem and may resolve or 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] Agent tool doesn't inherit deferred tools from parent agent