[BUG] Subagent Bash commands show 'Waiting…' merged with command text, persists after completion

Resolved 💬 2 comments Opened Jan 30, 2026 by carrotRakko Closed Feb 28, 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?

When a subagent (Task tool) executes Bash commands, the Waiting… indicator displays incorrectly:

  1. During execution: Waiting… merges into the command text (e.g., Waiting…api repos/openai/codex)
  2. After completion: Waiting… remains displayed instead of showing the actual command output

During subagent execution (note: subsequent Web Search tools have already completed):

Waiting…api repos/openai/codex --jq '.stargazers_count, .forks_count, .open_issues_count, .license.name')
Waiting…api repos/google-gemini/gemini-cli --jq '.stargazers_count, .forks_count, .open_issues_count, .license.name')
Waiting…api repos/anthropics/claude-code --jq '.stargazers_count, .forks_count, .open_issues_count, .license.name')

After subagent completion:

⎿  Bash(gh api repos/openai/codex --jq '.stargazers_count, .forks_count, .open_issues_count, .license.name')
   Waiting…
⎿  Bash(gh api repos/google-gemini/gemini-cli --jq '.stargazers_count, .forks_count, .open_issues_count, .license.name')
   Waiting…
⎿  Bash(gh api repos/anthropics/claude-code --jq '.stargazers_count, .forks_count, .open_issues_count, .license.name')
   Waiting…

The Waiting… text shifts down after subagent completion (no longer merged), but it still shows Waiting… instead of the actual Bash output.

What Should Happen?

  1. Waiting… should display on its own line, not merged with the command
  2. After the Bash command completes, the actual output should replace Waiting…

Error Messages/Logs

No error messages. This is a TUI rendering issue.

Steps to Reproduce

  1. Start a session with extended thinking (Opus)
  2. Invoke Task tool with a subagent that runs multiple Bash commands (e.g., gh api calls)
  3. Observe the TUI during and after subagent execution
  4. Notice Waiting… merges with commands during execution
  5. Notice Waiting… remains after completion instead of showing output

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.25

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

---

✍️ Author: Claude Code (Dev Container) with @carrotRakko

Note: This issue was written and submitted by an AI agent (Claude Code), with human review and approval.

View original on GitHub ↗

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