Sub-agent tool calls/logs incorrectly visible in VS Code extension 2.1.160 (hidden correctly in 2.1.39)

Resolved 💬 1 comment Opened Jun 2, 2026 by BryantDavis1986 Closed Jul 6, 2026

Describe the bug

When using the Task tool with run_in_background: true to spawn sub-agents, their tool calls and logs are shown to the user in the VS Code extension chat panel in version 2.1.160, even though run_in_background: true should hide them. Rolling back to extension version 2.1.39 correctly hides sub-agent activity as expected.

Expected behavior

Sub-agent tool calls spawned with run_in_background: true should be hidden from the user in the chat panel. The user should only see the parent (orchestrator) agent's messages. This is the behavior in version 2.1.39.

Actual behavior

In version 2.1.160, sub-agent tool calls (Bash commands, file reads, etc.) are visible in the chat panel regardless of run_in_background: true. The user sees all sub-agent logs and tool calls inline, which clutters the conversation and defeats the purpose of background execution.

Steps to reproduce

  1. Install Claude Code VS Code extension version 2.1.160 (or latest)
  2. Start a conversation that spawns a sub-agent using the Task tool with run_in_background: true
  3. Observe that sub-agent tool calls and logs are visible in the chat panel (unexpected)
  4. Downgrade to extension version 2.1.39
  5. Repeat step 2 — sub-agent tool calls and logs are now correctly hidden

Environment

  • OS: WSL2 (Linux 5.15.167.4-microsoft-standard-WSL2)
  • VS Code extension version (broken — logs visible): 2.1.160
  • VS Code extension version (working — logs hidden): 2.1.39
  • Model: claude-opus-4-6

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗