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

[BUG] Sub-agent status line repeatedly prints new lines instead of updating in place

Open ytzhakov opened this issue 1 month ago • 1 comments

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 running sub-agents (e.g., Explore agent via Task tool), the status indicator that should remain fixed at the bottom of the terminal is instead being printed repeatedly as new lines, causing the screen to scroll continuously with duplicate status messages.

What Should Happen?

Actual Behavior The status line is printed repeatedly, creating many duplicate lines with large gaps between them. The terminal scrolls continuously while the agent runs, making it impossible to see other content.

Expected Behavior The agent status (e.g., ● Explore(Find entity attribute patterns)) should display as a single, updating status line at the bottom of the terminal, similar to how other long-running operations display.

Error Messages/Logs


Steps to Reproduce

  1. Start Claude Code
  2. Ask a question that triggers a sub-agent (e.g., "What is the codebase structure?" which triggers Explore agent)
  3. Observe the terminal output while the agent runs

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.76

Claude Code Version

2.1.4

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

Image

ytzhakov avatar Jan 11 '26 13:01 ytzhakov

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/17025
  2. https://github.com/anthropics/claude-code/issues/16578
  3. https://github.com/anthropics/claude-code/issues/13113

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 Jan 11 '26 13:01 github-actions[bot]