[BUG] /clear doesn't clear conversation history for members of agent team

Resolved 💬 5 comments Opened Mar 15, 2026 by lucas42 Closed Apr 13, 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 I run /clear for any agent in my agent team, except the team lead, the conversation history with that agent isn't cleared. I get a confirmation like "Context cleared. Starting fresh.", "Conversation cleared." or "All clear." However, the existing conversation history remains about.

What Should Happen?

I expect /clear to clear the conversation history for the agent I've run it against.

This is what happens with the team lead, and when using claude code without agent teams enabled.

Error Messages/Logs

Steps to Reproduce

  1. Start an agent team
  2. Work for a while, using all agents in the team
  3. Run /clear for each agent in the team
  4. Look at the conversation history

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.76 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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