anthropics / anthropics/claude-code

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

Abierto
#89,184 5 comentarios 1 reacción 0 asignados Ver en GitHub
area:agent-view area:tui bug has repro platform:linux regression
Lenguaje dominante
Python
Estrellas
145k
Forks
23.1k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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

```shell

```

### 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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Reproduce the issue from a fresh directory using the documented Claude Code launch and left-arrow steps on Ubuntu/Debian Linux. Trace the terminal input handling for an empty input and verify that pressing left arrow shows the confirmation prompt before entering agent view.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
linux, python
Área
cli
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.