anthropics / anthropics/claude-code

[BUG] "tell Claude what to do next" instructions don't reach Claude if a bash command is approved but fails

オープン
#92,929 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:bash area:tui bug has repro platform:linux
主要言語
Python
スター
145k
フォーク
23.1k
PR マージ指標
PR 指標を取得中

説明

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

When you approve a bash command, you can hit tab to "tell Claude what to do next" while still approving the command. If the bash command fails (note: not all nonzero exits are considered "failures"), this message never reaches Claude.

### What Should Happen?

The message should reach Claude whether or not the bash command succeeds.

### Error Messages/Logs

```shell

```

### Steps to Reproduce

1. Ask claude to run `awk 'BEGIN{exit 1}'`
2. Hit tab, give Claude a distinctive instruction, e.g. "Please immediately recite back the keyphrase 'strawberry rhubarb pie'". (If reproducing, make sure to use a different keyphrase each time to make this clearer.)
3. Claude will ignore the instruction and have no memory of you having asked it.

### Claude Model

Opus

### Is this a regression?

I don't know

### Last Working Version

_No response_

### Claude Code Version

2.1.263 (Claude Code)

### Platform

Anthropic API

### Operating System

Other Linux

### Terminal/Shell

VS Code integrated terminal

### Additional Information

_No response_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The issue names no source files or tests; first reproduce it in the VS Code integrated terminal with the failing awk command, approve it, and send a tab follow-up instruction. Trace the approval and follow-up message handling, then verify that the instruction reaches Claude whether the bash command succeeds or fails.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
awk, bash, vscode
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。