[BUG] Reverts to agents screen for no apparent reason, even while typing a prompt

Status Open
Reported on v2.1.217
Maintainer reply None cached
Activity 0 comments · opened Jul 23, 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?

While in an agent's window, sometimes Claude Code (in the CLI version) changes to the agents selection screen without any action from the user to make it do it. This happens randomly, and often it happens while typing, so I've thought I must've done something to make it change screens, but a few minutes ago, it happened while my hands were completely off the keyboard/mouse. When it happens, it's very disruptive. It has done this in several versions of the software.

What Should Happen?

It should stay on the screen you're working in until you change the screen yourself.

Error Messages/Logs

I don't know where to find the logs, so I can't provide them.

Steps to Reproduce

Don't know. It happens randomly for no apparent reason.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.217

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗