Skip to content

Allow unlimited (or higher) prompt history via commandHistoryMaxSize #5159

Description

@casanova-21

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.

Activity

  1. added
    area:configurationConfig files, instruction files, settings, and environment variables
    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input
    and removed on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationConfig files, instruction files, settings, and environment variablesarea:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions