Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Allow unlimited (or higher) prompt history via `commandHistoryMaxSize`

未關閉 適合新手
#5,159 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
62/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
shell
領域
cli

研究方向

負載中沒有指定原始碼檔案,因此請先找到 commandHistoryMaxSize 在設定檔中從何處讀取,以及在何處被限制為 1,000。檢查刪除較早提示詞的歷史修剪邏輯,並確認 Ctrl+R 以及上下方向鍵如何讀取已儲存的清單。完成標準是:值為 0 時保留所有提示詞,或提高上限,並附帶涵蓋新行為的測試。

由索引模型根據 Issue 內容生成。

描述

area:configuration area:input-keyboard
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": 0 in ~/.copilot/config.json to 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 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。