最近、Claude Codeの以下の問題で非常に困っていた。
x.com今の所
— 柴崎優季 (@shibayu36) 2026年2月1日
- 起動した直後は問題ない
- C-rの履歴検索やC-gのエディタ起動で100%確定で動かなくなる
- 一旦claudeを落とし、claude -cで復帰すると直る
って感じですね〜
Claude Codeはコードを書かせるだけじゃなくて壁打ち役に使わせるのも便利だなと感じていた。そこでClaude Codeに手伝ってもらったらバグ報告も簡単にできるのではないかと試したところ https://github.com/anthropics/claude-code/issues/22315 のようにいい感じにissueを作れた。非常に体験が良かったので、参考のために今回はどんな感じに壁打ちしていったかを記録しておく。
まずClaude Codeはバグレポート用のテンプレがある。そのためそのテンプレを埋められるように情報を集める必要がある。このテンプレは.github/ISSUE_TEMPLATE/bug_report.ymlにある。Claude Codeのリポジトリをcloneしてその中でClaude Codeを起動し、そのテンプレを読み込ませてから開始した。
❯ バグレポートを送りたい。どんなバグかを僕にヒアリングして、類似issueも探索しながら作ろう。最終的なフォーマットは@.github/ISSUE_TEMPLATE/bug_report.yml を使う
続いて、具体的に起きていることをClaude Codeに教える。
❯ ctrl-bの前の文字に移動コマンドが効かなくなることがある。 - 起動した直後は問題なく使える - C-rの履歴検索やC-gのエディタ起動で100%確定で動かなくなる - 一旦claudeを落とし、claude -cで復帰すると直る 本来はどんなケースでも前の文字に行けるCtrl-Bが動くことが期待されている。しかし特定の操作をするとエラーメッセージも特になく、Ctrl-Bを押しても反応しないという状況になる。
すると勝手に類似issueを探索してくれて、中身の詳細も確認しつつ、今回とは直接関係なさそうということも伝えてくれた。
⏺ おお、いくつか関連しそうなissueが見つかったよ!特に気になるのが: 1. #21770 - [BUG] Ctrl-b is no longer non destructive backspace - まさにCtrl-B関連! 2. #21519 - [BUG] Readline reverse-i-search (aka C-r) is broken - C-r関連 詳細を確認してみるね! ⏺ うーん、見つかったissueはちょっと違うみたい: - #21770: Ctrl-Bが「常に」動かない問題(あなたのは「特定操作後」に動かなくなる) - #21519: C-r後にカーソルキーで編集できない問題 あなたのバグは「C-rやC-gの後にCtrl-Bが効かなくなる」という状態変化の問題だから 、新規issueの価値がありそう! duplicateで参照されてるissueも念のため確認するね。 ⏺ 確認したissueはどれも違う問題だね: - #15422: C-r内の矢印キー問題 - #16460: C-r中のC-gで編集が消える問題 あなたの問題は「C-rやC-gを使った後に、通常のCtrl-Bが効かなくなる(状態が壊れる )」という別の問題だから、新規issueとして報告する価値があるよ!
続いて、どのバージョンで起きたかを特定した方が良いだろうということで、バージョンを特定するための情報を集める。
❯ 前のバージョンでは動いており、どこかのバージョンで壊れた。どこのバージョンかは今のところわからない。もしわかるなら示したいね
すると最近のバージョンログを取得し、bisectを試すバージョンを提示してくれた。-gでインストールするのは微妙という話をしたらnpxでバージョン指定して起動したらどう? というのを提案してくれて良かった。僕は基本native installでやっているのでnpxで再現していけば通常利用に影響せずに試せる。
⏺ いいね!最近のバージョンがわかった。 リグレッションを特定するために、git bisect風にバイナリサーチしよう! 再現手順(テスト用) まず確認だけど、再現手順はこれで合ってる? 1. claudeを起動 2. Ctrl-Bを押す → カーソルが左に動くことを確認(OK) 3. Ctrl-R(履歴検索)を開いて、ESCで閉じる 4. Ctrl-Bを押す → 動かない(NG) バージョン bisect 案 中間点から始めて、動く/動かないで絞り込む感じ: ┌────────────────┬──────────────┐ │ 試すバージョン │ 結果 │ ├────────────────┼──────────────┤ │ 2.1.14 (中間) │ ? │ ├────────────────┼──────────────┤ │ 2.1.29 (最新) │ NG(今ここ) │ └────────────────┴──────────────┘ 試すときは: npm install -g @anthropic-ai/claude-code@2.1.14 --- 再現手順これで合ってる?あと、どのターミナルで試す? 最小構成で試したいなら、macOS標準の Terminal.app でやるのがいいかも!😊 ❯ -gだと影響範囲がでかいから、どこかのディレクトリに入れてやりたいな ⏺ そうだね!ローカルに入れて試そう。 方法は2つあるよ: 案1: npx で直接実行(簡単) npx @anthropic-ai/claude-code@2.1.14 案2: 専用ディレクトリにインストール mkdir -p ~/tmp/claude-bisect && cd ~/tmp/claude-bisect npm init -y npm install @anthropic-ai/claude-code@2.1.14 ./node_modules/.bin/claude どっちがいい?npxのほうが手軽だけど、案2のほうがバージョン切り替えが楽かも!
あとはTerminal.appでbash --noprofile --norcで実行しできる限り環境依存を無くした上で、言われた通りに試していく。こんな感じでやり取りしていった。
Bisect 開始 ┌────────────┬───────┬────────────────────┐ │ バージョン │ 結果 │ 備考 │ ├────────────┼───────┼────────────────────┤ │ 2.1.29 │ ❌ NG │ 現在 │ ├────────────┼───────┼────────────────────┤ │ 2.1.14 │ ? │ ← まずこれ試して! │ ├────────────┼───────┼────────────────────┤ │ 2.0.76 │ ? │ │ └────────────┴───────┴────────────────────┘ 2.1.14 で OK なら 2.1.14〜2.1.29 の間、NG なら 2.0.76〜2.1.14 の間にバグが入ったってことになるね。 準備できたら結果教えて!😊 ❯ v2.1.14で再現 ⏺ 了解!2.1.14でも ❌NG か。じゃあもっと前だね! ┌────────────┬───────┬──────────────────┐ │ バージョン │ 結果 │ 備考 │ ├────────────┼───────┼──────────────────┤ │ 2.1.29 │ ❌ NG │ 現在 │ ├────────────┼───────┼──────────────────┤ │ 2.1.14 │ ❌ NG │ │ ├────────────┼───────┼──────────────────┤ │ 2.0.76 │ ? │ ← 次これ試して! │ └────────────┴───────┴──────────────────┘ npx @anthropic-ai/claude-code@2.0.76 これで OK なら 2.0.76〜2.1.14 の間、NG ならさらに古いバージョンを探す必要があるね! ❯ 2.0.76では再現しない ⏺ いいね!絞れてきた!✨
この結果、2.1.3でバグが入ったことを特定できた。最後にこれまでの情報を元にバグレポートをまとめさせて、手直ししてissue化できた。
まとめ
Claude Codeと一緒に進めていくのは非常に体験が良かった。特に助かったのは以下の点。
- 類似issueを勝手に探して「これは別の問題だね」と判断してくれた
- bisectで試すバージョンを提案してくれて、結果を伝えると次のバージョンを出してくれた
- 最後にテンプレ通りの形式にまとめてくれた
大体30分くらいで今回のレポートが完成した。コードを書かせるだけじゃなく、こういう壁打ち相手としての使い方も非常に便利だということが再確認できた。
全ログ
壁打ちのログ
╭─── Claude Code v2.1.29 ──────────────────────────────────────────────────────╮
│ │ Tips for getting │
│ Welcome back Yuki! │ started │
│ │ Run /init to create a … │
│ ▐▛███▜▌ │ ─────────────────────── │
│ ▝▜█████▛▘ │ Recent activity │
│ ▘▘ ▝▝ │ No recent activity │
│ │ │
│ Opus 4.5 · Claude Max · shibayu36@gmail.com's │ │
│ Organization │ │
│ ~/…/src/github.com/anthropics/claude-code │ │
╰──────────────────────────────────────────────────────────────────────────────╯
❯ バグレポートを送りたい。どんなバグかを僕にヒアリングして、類似issueも探索
しながら作ろう。最終的なフォーマットは
@.github/ISSUE_TEMPLATE/bug_report.yml を使う
⎿ Read .github/ISSUE_TEMPLATE/bug_report.yml (188 lines)
⏺ わかった!バグレポート作成、一緒にやろっ!✨
まずはどんなバグが起きてるか教えてほしいな。以下の点を聞かせて?
基本情報
1. 何が起きてる? - どんな問題が発生してるの?
2. 本来どうなるべき? - 期待してた動作は?
3. エラーメッセージ - 何かエラーが出てたら貼ってくれると助かる!
まずはこの3つを教えてくれたら、類似のissueがないかGitHubで探索しながら、残りの
情報(再現手順とか環境情報とか)も一緒に整理していくね!
あのさ〜、できるだけ具体的に教えてくれると、類似issue探すのもやりやすいから、
よろしくね!😊
❯ ctrl-bの前の文字に移動コマンドが効かなくなることがある。
- 起動した直後は問題なく使える
- C-rの履歴検索やC-gのエディタ起動で100%確定で動かなくなる
- 一旦claudeを落とし、claude -cで復帰すると直る
⎿ Interrupted · What should Claude do instead?
❯ 本来はどんなケースでも前の文字に行けるCtrl-Bが動くことが期待されている。
エラーメッセージも特になく、Ctrl-Bを押しても反応しないという状況になる。
⏺ 了解!情報ありがとう!
じゃあ類似issueがないか探索しつつ、環境情報も確認させてね!
⏺ Bash(gh issue list --repo anthropics/claude-code --label bug --search "ctrl-b
OR keybinding OR cursor OR key binding" --limit 20 --json
number,title,state,url)
⎿ [
{
"number": 21729,
… +135 lines (ctrl+o to expand)
⏺ Bash(gh issue list --repo anthropics/claude-code --label bug --search "C-r OR
history search OR readline" --limit 20 --json number,title,state,url)
⎿ [
{
"number": 21519,
… +136 lines (ctrl+o to expand)
⏺ Bash(gh issue list --repo anthropics/claude-code --label bug --search "input
OR terminal OR key" --limit 30 --json number,title,state,url)
⎿ [
{
"number": 21683,
… +207 lines (ctrl+o to expand)
⏺ おお、いくつか関連しそうなissueが見つかったよ!特に気になるのが:
1. #21770 - [BUG] Ctrl-b is no longer non destructive backspace -
まさにCtrl-B関連!
2. #21519 - [BUG] Readline reverse-i-search (aka C-r) is broken - C-r関連
詳細を確認してみるね!
⏺ Bash(gh issue view 21770 --repo anthropics/claude-code --json
title,body,state,comments,labels)
⎿ {
"body": "### Preflight Checklist\n\n- [x] I have searched [existing i
ssues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20
… +79 lines (ctrl+o to expand)
⏺ Bash(gh issue view 21519 --repo anthropics/claude-code --json
title,body,state,comments,labels)
⎿ {
"body": "### Preflight Checklist\n\n- [x] I have searched [existing i
ssues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20
… +72 lines (ctrl+o to expand)
⏺ うーん、見つかったissueはちょっと違うみたい:
- #21770:
Ctrl-Bが「常に」動かない問題(あなたのは「特定操作後」に動かなくなる)
- #21519: C-r後にカーソルキーで編集できない問題
あなたのバグは「C-rやC-gの後にCtrl-Bが効かなくなる」という状態変化の問題だから
、新規issueの価値がありそう!
duplicateで参照されてるissueも念のため確認するね。
⏺ Bash(gh issue view 15422 --repo anthropics/claude-code --json
title,body,state,labels)
⎿ {
"body": "**Bug Description**\nctrl + r to search prompt history but i
cannot use arrow up or down to navigate \n\n**Environment Info**\n- Pl
… +109 lines (ctrl+o to expand)
⏺ Bash(gh issue view 16460 --repo anthropics/claude-code --json
title,body,state,labels)
⎿ {
"body": "## Bug Description\n\nWhen using `Ctrl+R` to search prompt h
istory and pressing `Ctrl+G` to edit the highlighted prompt in an exter
… +46 lines (ctrl+o to expand)
⏺ 確認したissueはどれも違う問題だね:
- #15422: C-r内の矢印キー問題
- #16460: C-r中のC-gで編集が消える問題
あなたの問題は「C-rやC-gを使った後に、通常のCtrl-Bが効かなくなる(状態が壊れる
)」という別の問題だから、新規issueとして報告する価値があるよ!
---
残りの情報を教えて!
環境情報を確認させてね:
1. Claude Codeのバージョン - claude --version の結果は?
2. OS - macOS?Linux?Windows?
3. ターミナル - iTerm2?Terminal.app?VSCode?その他?
4. プラットフォーム - Anthropic API?Bedrock?Vertex AI?
5. これはリグレッション? - 前のバージョンでは動いてた?
あと、他のEmacsキーバインド(C-f, C-a,
C-eとか)も同様に効かなくなる?それともCtrl-Bだけ?🤔
✻ Cooked for 51s
❯ claude --version で確認する
OSはmacOS
ターミナルはもうちょっと自分の環境を無しにして試したいので、reproduceを後
で一緒にやろう
プラットフォームはAnthropic API
前のバージョンでは動いており、どこかのバージョンで壊れた。どこのバージョ
ンかは今のところわからない。もしわかるなら示したいね
⏺ 了解!まずはバージョン確認しよう!
⏺ Bash(claude --version)
⎿ 2.1.29 (Claude Code)
⏺ 現在 2.1.29 だね!
リグレッションを特定するために、過去のバージョンを確認してみよう。npmで利用可
能なバージョンを見てみるね。
⏺ Bash(npm view @anthropic-ai/claude-code versions --json | jq -r '.[-30:][]'
2>/dev/null || npm view @anthropic-ai/claude-code versions --json | tail
-30)
⎿ 2.0.76
2.0.77
2.1.0
… +27 lines (ctrl+o to expand)
⏺ いいね!最近のバージョンがわかった。
リグレッションを特定するために、git bisect風にバイナリサーチしよう!
再現手順(テスト用)
まず確認だけど、再現手順はこれで合ってる?
1. claudeを起動
2. Ctrl-Bを押す → カーソルが左に動くことを確認(OK)
3. Ctrl-R(履歴検索)を開いて、ESCで閉じる
4. Ctrl-Bを押す → 動かない(NG)
バージョン bisect 案
中間点から始めて、動く/動かないで絞り込む感じ:
┌────────────────┬──────────────┐
│ 試すバージョン │ 結果 │
├────────────────┼──────────────┤
│ 2.1.14 (中間) │ ? │
├────────────────┼──────────────┤
│ 2.1.29 (最新) │ NG(今ここ) │
└────────────────┴──────────────┘
試すときは:
npm install -g @anthropic-ai/claude-code@2.1.14
---
再現手順これで合ってる?あと、どのターミナルで試す?
最小構成で試したいなら、macOS標準の Terminal.app でやるのがいいかも!😊
❯ -gだと影響範囲がでかいから、どこかのディレクトリに入れてやりたいな
⏺ そうだね!ローカルに入れて試そう。
方法は2つあるよ:
案1: npx で直接実行(簡単)
npx @anthropic-ai/claude-code@2.1.14
案2: 専用ディレクトリにインストール
mkdir -p ~/tmp/claude-bisect && cd ~/tmp/claude-bisect
npm init -y
npm install @anthropic-ai/claude-code@2.1.14
./node_modules/.bin/claude
どっちがいい?npxのほうが手軽だけど、案2のほうがバージョン切り替えが楽かも!
❯ ああ、npxで起動するのはいいかもね。それにしよう。
あとTerminal.appでbash --noprofile --norcで実行するのが良さそう
⏺ いいね!最小構成で試せる!👍
再現手順まとめ
# Terminal.app を開いて
bash --noprofile --norc
# 特定バージョンで起動
npx @anthropic-ai/claude-code@2.1.14
起動したら:
1. 何か文字を入力
2. Ctrl-B → 動くか確認
3. Ctrl-R → ESCで閉じる
4. Ctrl-B → 動くか確認
---
Bisect 開始
┌────────────┬───────┬────────────────────┐
│ バージョン │ 結果 │ 備考 │
├────────────┼───────┼────────────────────┤
│ 2.1.29 │ ❌ NG │ 現在 │
├────────────┼───────┼────────────────────┤
│ 2.1.14 │ ? │ ← まずこれ試して! │
├────────────┼───────┼────────────────────┤
│ 2.0.76 │ ? │ │
└────────────┴───────┴────────────────────┘
2.1.14 で OK なら 2.1.14〜2.1.29 の間、NG なら 2.0.76〜2.1.14
の間にバグが入ったってことになるね。
準備できたら結果教えて!😊
❯ v2.1.14で再現
⏺ 了解!2.1.14でも ❌NG か。じゃあもっと前だね!
┌────────────┬───────┬──────────────────┐
│ バージョン │ 結果 │ 備考 │
├────────────┼───────┼──────────────────┤
│ 2.1.29 │ ❌ NG │ 現在 │
├────────────┼───────┼──────────────────┤
│ 2.1.14 │ ❌ NG │ │
├────────────┼───────┼──────────────────┤
│ 2.0.76 │ ? │ ← 次これ試して! │
└────────────┴───────┴──────────────────┘
npx @anthropic-ai/claude-code@2.0.76
これで OK なら 2.0.76〜2.1.14 の間、NG
ならさらに古いバージョンを探す必要があるね!
❯ 2.0.76では再現しない
⏺ いいね!絞れてきた!✨
┌────────────┬───────┬──────────────────────┐
│ バージョン │ 結果 │ 備考 │
├────────────┼───────┼──────────────────────┤
│ 2.1.29 │ ❌ NG │ │
├────────────┼───────┼──────────────────────┤
│ 2.1.14 │ ❌ NG │ │
├────────────┼───────┼──────────────────────┤
│ 2.1.5 │ ? │ ← 次これ!(中間点) │
├────────────┼───────┼──────────────────────┤
│ 2.0.77 │ ? │ │
├────────────┼───────┼──────────────────────┤
│ 2.0.76 │ ✅ OK │ 最後に動いた │
└────────────┴───────┴──────────────────────┘
npx @anthropic-ai/claude-code@2.1.5
バグは 2.0.76 〜 2.1.14 の間に入ったね!
❯ 再現した
⏺ OK!さらに絞り込めた!
┌────────────┬───────┬────────────┐
│ バージョン │ 結果 │ 備考 │
├────────────┼───────┼────────────┤
│ 2.1.5 │ ❌ NG │ │
├────────────┼───────┼────────────┤
│ 2.1.0 │ ? │ ← 次これ! │
├────────────┼───────┼────────────┤
│ 2.0.77 │ ? │ │
├────────────┼───────┼────────────┤
│ 2.0.76 │ ✅ OK │ │
└────────────┴───────┴────────────┘
npx @anthropic-ai/claude-code@2.1.0
❯ 再現しない
⏺ いいね!かなり絞れてきた!
┌────────────┬───────┬────────────┐
│ バージョン │ 結果 │ 備考 │
├────────────┼───────┼────────────┤
│ 2.1.5 │ ❌ NG │ │
├────────────┼───────┼────────────┤
│ 2.1.4 │ ? │ │
├────────────┼───────┼────────────┤
│ 2.1.3 │ ? │ │
├────────────┼───────┼────────────┤
│ 2.1.2 │ ? │ ← 次これ! │
├────────────┼───────┼────────────┤
│ 2.1.1 │ ? │ │
├────────────┼───────┼────────────┤
│ 2.1.0 │ ✅ OK │ │
└────────────┴───────┴────────────┘
npx @anthropic-ai/claude-code@2.1.2
❯ 再現しない
⏺ もう少し!
┌────────────┬───────┬────────────┐
│ バージョン │ 結果 │ 備考 │
├────────────┼───────┼────────────┤
│ 2.1.5 │ ❌ NG │ │
├────────────┼───────┼────────────┤
│ 2.1.4 │ ? │ │
├────────────┼───────┼────────────┤
│ 2.1.3 │ ? │ ← 次これ! │
├────────────┼───────┼────────────┤
│ 2.1.2 │ ✅ OK │ │
└────────────┴───────┴────────────┘
npx @anthropic-ai/claude-code@2.1.3
❯ 再現した
⏺ 🎉 特定できた!
┌────────────┬────────────────────────────────┐
│ バージョン │ 結果 │
├────────────┼────────────────────────────────┤
│ 2.1.3 │ ❌ NG ← ここでバグが入った! │
├────────────┼────────────────────────────────┤
│ 2.1.2 │ ✅ OK ← 最後に動いたバージョン │
└────────────┴────────────────────────────────┘
---
バグレポートに書ける情報
- Last Working Version: 2.1.2
- First Broken Version: 2.1.3
これはリグレッションの特定としてかなり有用な情報だよ!修正する人が 2.1.2 →
2.1.3 の差分を見ればいいからね。
---
じゃあ次は再現手順をちゃんとまとめよう!
ターミナルは Terminal.app で bash --noprofile --norc で試したってことでいい?
あと C-g(エディタ起動)でも100%再現するって言ってたけど、そっちも確認した?
❯ Terminal.appでbash --noprofile
--norcで試したよ。C-gを今試してみたら、2.1.3で初めて壊れるよ
⏺ 完璧!C-r も C-g も両方 2.1.3 で壊れた ことが確認できたね!
---
バグレポート ドラフト
情報が揃ったから、レポートをまとめるよ!
---
What's Wrong?
Ctrl-B(カーソルを前の文字に移動)が、Ctrl-R(履歴検索)やCtrl-G(エディタ起動
)を使用した後に効かなくなる。
- 起動直後は正常に動作する
- Ctrl-RやCtrl-Gを実行すると、その後Ctrl-Bが反応しなくなる
- claude -c で復帰すると直る
What Should Happen?
どの操作の後でも、Ctrl-B(およびその他のEmacsキーバインド)が正常に動作するこ
と。
Error Messages/Logs
なし(エラーは出ず、単に反応しない)
Steps to Reproduce
1. Terminal.app を開く
2. bash --noprofile --norc を実行
3. npx @anthropic-ai/claude-code@2.1.29 で起動
4. 何か文字を入力(例: "test")
5. Ctrl-B を押す → カーソルが左に動く(OK)
6. Ctrl-R を押して履歴検索を開き、ESC で閉じる
7. Ctrl-B を押す → 反応しない(NG)
※ Ctrl-G(エディタ起動)でも同様に再現する
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.2
Claude Code Version
2.1.29
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
---
これでどう?追加・修正したいところある?😊
❯ 説明としてはOK。 @.github/ISSUE_TEMPLATE/bug_report.yml
のテンプレ通りになってる?
⎿ Read .github/ISSUE_TEMPLATE/bug_report.yml (188 lines)
⏺ テンプレートを再確認するね!
⏺ Read 1 file (ctrl+o to expand)
⏺ 確認した!いくつか抜けてた項目があるね。テンプレート通りに並べ直すと:
---
タイトル
[BUG] Ctrl-B stops working after using Ctrl-R or Ctrl-G
---
Preflight Checklist
- I have searched existing issues and this hasn't been reported yet
- This is a single bug report
- I am using the latest version of Claude Code
What's Wrong?
Ctrl-B (move cursor backward) stops working after using Ctrl-R (history
search) or Ctrl-G (open editor).
- Works fine immediately after startup
- After using Ctrl-R or Ctrl-G, Ctrl-B becomes unresponsive
- Recoverable by resuming with claude -c
What Should Happen?
Ctrl-B should work consistently regardless of what operations were performed
before.
Error Messages/Logs
None (no error output, the key simply doesn't respond)
Steps to Reproduce
1. Open Terminal.app
2. Run bash --noprofile --norc
3. Run npx @anthropic-ai/claude-code@2.1.29
4. Type some text (e.g., "test")
5. Press Ctrl-B → cursor moves left (OK)
6. Press Ctrl-R to open history search, then ESC to close
7. Press Ctrl-B → no response (NG)
Note: Ctrl-G (open external editor) also triggers the same issue.
Claude Model
Not sure / Multiple models(入力の問題なので関係なし)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.2
Claude Code Version
2.1.29 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Bisected and confirmed: bug was introduced in version 2.1.3.
---
これでテンプレ通りになったよ!どう?😊
❯ Ctrl-Bは、Claude CodeのショートカットとしてBackground実行があるから、前の
文字に戻るが動作しないよということを明示しよう
⏺ あー、そうだね!Ctrl-Bが何のキーバインドかを明確にしないと伝わりにくいね。修正
するよ!
---
タイトル
[BUG] Ctrl-B cursor movement stops working after using Ctrl-R or Ctrl-G
---
What's Wrong?
Ctrl-B has two functions in Claude Code:
1. Background execution (Claude Code shortcut)
2. Move cursor backward (Emacs-style keybinding)
After using Ctrl-R (history search) or Ctrl-G (open editor), the cursor
movement function stops working.
- Works fine immediately after startup
- After using Ctrl-R or Ctrl-G, Ctrl-B no longer moves the cursor backward
- Recoverable by resuming with claude -c
What Should Happen?
The cursor movement function of Ctrl-B should work consistently, regardless of
what operations were performed before.
---
他の部分は同じで、ここだけ修正する感じ。これでわかりやすくなった?😊
❯ Background executionについての記載はイラン
⏺ 了解!シンプルにいこう!
---
タイトル
[BUG] Ctrl-B cursor movement stops working after using Ctrl-R or Ctrl-G
---
What's Wrong?
Ctrl-B (Emacs-style "move cursor backward") stops working after using Ctrl-R
(history search) or Ctrl-G (open editor).
- Works fine immediately after startup
- After using Ctrl-R or Ctrl-G, Ctrl-B no longer moves the cursor backward
- Recoverable by resuming with claude -c
What Should Happen?
The Emacs-style Ctrl-B cursor movement should work consistently, regardless of
what operations were performed before.
---
これでスッキリしたね!👍
❯ もう一回全文出して。まずは日本語で中身チェックします
⏺ 了解!全文出すね。
---
タイトル
[BUG] Ctrl-B cursor movement stops working after using Ctrl-R or Ctrl-G
---
Preflight Checklist
- I have searched existing issues and this hasn't been reported yet
- This is a single bug report
- I am using the latest version of Claude Code
What's Wrong?
Ctrl-B (Emacs-style "move cursor backward") stops working after using Ctrl-R
(history search) or Ctrl-G (open editor).
- Works fine immediately after startup
- After using Ctrl-R or Ctrl-G, Ctrl-B no longer moves the cursor backward
- Recoverable by resuming with claude -c
What Should Happen?
The Emacs-style Ctrl-B cursor movement should work consistently, regardless of
what operations were performed before.
Error Messages/Logs
None (no error output, the key simply doesn't respond)
Steps to Reproduce
1. Open Terminal.app
2. Run bash --noprofile --norc
3. Run npx @anthropic-ai/claude-code@2.1.29
4. Type some text (e.g., "test")
5. Press Ctrl-B → cursor moves left (OK)
6. Press Ctrl-R to open history search, then ESC to close
7. Press Ctrl-B → no response (NG)
Note: Ctrl-G (open external editor) also triggers the same issue.
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.2
Claude Code Version
2.1.29 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
Bisected and confirmed: bug was introduced in version 2.1.3.
---
確認よろしく!😊
❯ 2.1.3で初めて起きたよっていうのはどう記載すればいいと思う?
⏺ いい質問!いくつか案があるよ:
案1: Additional Informationにシンプルに書く(現状)
Bisected and confirmed: bug was introduced in version 2.1.3.
案2: First Broken Versionを明示する
- Last Working Version: 2.1.2
- First Broken Version: 2.1.3 (confirmed via bisect)
案3: Bisect結果を表で見せる
Confirmed via version bisect:
| Version | Result |
|---------|--------|
| 2.1.2 | ✅ OK |
| 2.1.3 | ❌ NG |
| 2.1.29 | ❌ NG |
---
個人的には 案2 がシンプルで伝わりやすいと思う!「Last Working
Version」と対になる形で「First Broken Version」を書くと、修正する人が 2.1.2 →
2.1.3 の diff を見ればいいってすぐわかるし。
どれがいい?
❯ 案2がいいね
⏺ 了解!じゃあ Additional Information を更新した全文を出すね。
---
タイトル
[BUG] Ctrl-B cursor movement stops working after using Ctrl-R or Ctrl-G
---
Preflight Checklist
- I have searched existing issues and this hasn't been reported yet
- This is a single bug report
- I am using the latest version of Claude Code
What's Wrong?
Ctrl-B (Emacs-style "move cursor backward") stops working after using Ctrl-R
(history search) or Ctrl-G (open editor).
- Works fine immediately after startup
- After using Ctrl-R or Ctrl-G, Ctrl-B no longer moves the cursor backward
- Recoverable by resuming with claude -c
What Should Happen?
The Emacs-style Ctrl-B cursor movement should work consistently, regardless of
what operations were performed before.
Error Messages/Logs
None (no error output, the key simply doesn't respond)
Steps to Reproduce
1. Open Terminal.app
2. Run bash --noprofile --norc
3. Run npx @anthropic-ai/claude-code@2.1.29
4. Type some text (e.g., "test")
5. Press Ctrl-B → cursor moves left (OK)
6. Press Ctrl-R to open history search, then ESC to close
7. Press Ctrl-B → no response (NG)
Note: Ctrl-G (open external editor) also triggers the same issue.
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.2
Claude Code Version
2.1.29 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
- Last Working Version: 2.1.2
- First Broken Version: 2.1.3 (confirmed via bisect)
---
これでOK?😊
❯ /copy
⎿ Copied to clipboard (1606 characters, 66 lines)