claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Sub-Agent Response Handling Not Returning Output to Console

Open RickCogley opened this issue 1 year ago • 4 comments

Bug Description Hi, I'm attempting to use the new sub-agents feature (which I am hoping will help with context management), but I noticed that if I invoke a sub agent using natural language like on your docs page, nothing is ever returned to the console. I am now wondering if this is by design and if so, is there a magic phrase we can use in the agent's markdown file, to tell the main claude code thread, to show the user the answer to what they asked? The docs page implies that you can invoke, which implies that you should also be able to see some answer to the query you made.

I created an agent with /agent and tried it, but, while claude code seems satisfied with the result, I cannot see the result (CC says "perfect!" after and said it could see the result, but, I could not). See the screenshot:

Image

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 1.0.60
  • Feedback ID: 9297f3b2-e077-4b9f-8754-f9b2c3665773

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:924:11)\n    at execSync (node:child_process:996:15)\n    at i7 (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:865:5196)\n    at file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:777:49014\n    at Q (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:674:14420)\n    at kJ (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:777:46725)\n    at XH (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:777:45592)\n    at I9 (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:777:51640)","timestamp":"2025-07-25T06:04:35.893Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at BX (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at QX (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)\n    at g_B (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2525:7705)\n    at gM (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at gv (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:42847)\n    at fv (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38368)\n    at RS (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38296)\n    at ZR (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38150)","timestamp":"2025-07-25T06:04:41.083Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at BX (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at QX (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)\n    at g_B (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2525:7705)\n    at gM (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:65:19859)\n    at gv (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:42847)\n    at fv (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38368)\n    at RS (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38296)\n    at ZR (file:///Users/rcogley/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:67:38150)","timestamp":"2025-07-25T06:04:41.095Z"}]

RickCogley avatar Jul 25 '25 06:07 RickCogley

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3978
  2. https://github.com/anthropics/claude-code/issues/1173

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 15 '25 21:08 github-actions[bot]

This issue has been automatically closed as a duplicate of #3978.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 19 '25 09:08 github-actions[bot]

Those aren't duplicates at all. One is about missing output, the other is about wanting more detailed logging.

rmaher001 avatar Aug 25 '25 21:08 rmaher001

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Sep 02 '25 14:09 github-actions[bot]