github / github/copilot-cli

Previous prompts lost after editing

オープン
#3,926 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area:input-keyboard
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

### Describe the bug

Previous prompts are lost when editing them.

### Affected version

1.0.65

### Steps to reproduce the behavior

1. Go to a previous prompt (for example, using the up arrow)
2. Edit the prompt (clear it completely, or edit it partially)
3. Press enter

Original prompt is now lost. This is specially painful when the line was cleared completely.

### Expected behavior

Original prompt remains in history.

### Additional context

Ubuntu 24.04.4.
x86_64.
GNOME Terminal 3.52.0.
zsh 5.9.

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

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

調査の方向性

ファイルやテストの名前は挙げられていません。まず、以前のプロンプトを呼び出し、編集して Enter を押すことで、zsh 上の Copilot CLI で問題を再現します。その後、プロンプト履歴の処理を追跡します。完了条件は、完全に消去したプロンプトを含め、編集したプロンプトが引き続き履歴から利用できることです。

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

評価

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

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

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