Allow unlimited (or higher) prompt history via `commandHistoryMaxSize`
還沒有人認領這個 Issue。
評估
研究方向
負載中沒有指定原始碼檔案,因此請先找到 commandHistoryMaxSize 在設定檔中從何處讀取,以及在何處被限制為 1,000。檢查刪除較早提示詞的歷史修剪邏輯,並確認 Ctrl+R 以及上下方向鍵如何讀取已儲存的清單。完成標準是:值為 0 時保留所有提示詞,或提高上限,並附帶涵蓋新行為的測試。
由索引模型根據 Issue 內容生成。
描述
Describe the feature or problem you'd like to solve
Copilot CLI keeps only the last 50 prompts for Ctrl+R and Up/Down history by default. The commandHistoryMaxSize setting can raise this, but only to 1,000 (docs). Once the limit is reached, older prompts are permanently dropped. For heavy users, 1,000 prompts only covers a short period.
Proposed solution
Raise the maximum allowed value for commandHistoryMaxSize, or support an unlimited option (for example, 0), so users can retain their full prompt history.
Example prompts or workflows
- Set
"commandHistoryMaxSize": 0in~/.copilot/config.jsonto keep all prompts indefinitely. - Use Ctrl+R to find a prompt written weeks or months ago.
- Recall long, carefully crafted prompts without rewriting them.
Additional context
Requested by an enterprise customer. Other agentic CLIs (e.g. Claude Code) don't impose a comparable cap on prompt history.
- 主要語言
- Shell
- 星號
- 11.3k
- 分支
- 2k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/copilot-cli 的其他 Issue
-
area:sessions
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#5147 · 1 則留言 ·
-
area:input-keyboard
難度 2/5 1-3 小時 新手友好度 66/100
github/copilot-cli#5113 ·
-
area:sessions
難度 2/5 1-3 小時 新手友好度 72/100
github/copilot-cli#4996 ·
-
triage
難度 1/5 1 小時以內 新手友好度 88/100
github/copilot-cli#4963 · 1 則留言 ·
-
triage
難度 2/5 1-3 小時 新手友好度 75/100
github/copilot-cli#4932 ·
查看 github/copilot-cli 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 95/100
collabnix/awesome-mcp-lists#225 ·
維護者通常 9 天內回覆
-
good first issue
難度 2/5 半天 新手友好度 88/100
-
documentation needs-triage priority:medium
難度 2/5 1-3 小時 新手友好度 85/100
yeongseon/azure-functions-validation-python#546 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 94/100
edoardottt/awesome-hacker-search-engines#371 ·
維護者通常 3 天內回覆
-
bug cli libc sev-5
難度 2/5 1-3 小時 新手友好度 78/100