[BUG] No cofirmation on left arrow press before switching to agent view

Status Open
Reported on v2.1.241
Maintainer reply None cached
Activity 4 comments · opened Aug 24, 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?

According to https://github.com/anthropics/claude-code/issues/75899#issuecomment-5310814032

pressing ← right after editing (e.g. you just backspaced the input empty) now asks to confirm with "Press ← again" instead of switching immediately

I don't see this behavior with 2.1.241 (Claude Code) on Ubuntu 24.04.

Pressing left arrow in an empty input area immediately enters the agent view.

See the video demonstration of the bug:

https://github.com/user-attachments/assets/013504ed-fa15-42bf-8dd9-731f4c8d1f80

What Should Happen?

When left arrow is pressed, a confirmation dialog appears to prevent accidental entering of the agent view.

Error Messages/Logs

Steps to Reproduce

  1. Restore default settings: rm -f ~/.claude/settings.json
  2. Create a fresh directory: mkdir /tmp/claude-agent && cd /tmp/claude-agent
  3. Lauch claude, trust the working dir, then press left arrow key

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.241 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Xterm

Additional Information

Despite https://github.com/anthropics/claude-code/issues/75899#issuecomment-5310814032 saying

please reply if you still see either problem on 2.1.233+ and we'll reopen

reopening does not happen after the comment https://github.com/anthropics/claude-code/issues/75899#issuecomment-5388458845.

Therefore this issue is opened, and needs to collect at least 10 upvotes or be periodically commented on to prevent auto-closure, see https://github.com/anthropics/claude-code/issues/87647.

View original on GitHub ↗

4 Comments

github-actions[bot] · 6 days ago

We weren't able to reproduce this. Could you provide steps to trigger the issue — what you ran, what happened, and what you expected? This issue will be closed automatically if there's no activity within 7 days.

fsc-eriker · 6 days ago

The report does contain repro steps. But in very brief: Repro steps:

  1. Click the left arrow key

Confirmed on 2.1.243 on MacOS

marcindulak · 5 days ago
We weren't able to reproduce this.

The above bot statement is too brief to diagnose where the reproduction failed.
Could the bot provide a screenshot of the confirmation dialog to enter the agent view that appears when pressing the left arrow key once?

The reproduction steps still work for me: the agent view is opened by pressing left arrow once, without a dialog which asks me whether I want to enter that view or not.

See another video reproduction, and a screenshot of relevant /config settings (remember that I removed ~/.claude/settings.json before the demo, and there are no shell CLAUDE environments set) that has two settings that seem relevant Open agent view by default: false and <- (left arrow) opens agents: true.

https://github.com/user-attachments/assets/13451de3-c8bf-4ffc-9d05-dab11fdab199

<img width="813" height="575" alt="Image" src="https://github.com/user-attachments/assets/d8f8ceef-061e-4ac4-9d63-5b83e8546c18" />

marcindulak · 3 days ago

See https://github.com/anthropics/claude-code/issues/84068#issuecomment-5441304764. Now the bot reproduces the issue: The session detaches to the background-agents view immediately, with no confirmation, but it does not provide the Claude version used for reproduction.