Option to restrict prompt history navigation to the current session
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
The issue does not name relevant files or tests. Start by tracing how the CLI stores prompt history and handles up/down-arrow navigation, including session resume behavior. Done means a configurable session scope limits navigation to prompts from the current session, including resumed sessions; the proposed global-history shortcut is described as ideal rather than required.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the feature or problem you'd like to solve
Add option to restrict up/down-arrow prompt history navigation to current session, avoiding unrelated prompts from other sessions.
Proposed solution
Introduce a configuration option for the scope of prompt history navigation, e.g.:
promptHistoryScope: "global" — current behavior.
promptHistoryScope: "session" — restrict up/down-arrow navigation to prompts submitted in the current session, including when resuming an existing session.
Ideally, global history would remain accessible through a separate keyboard shortcut or Ctrl+R, even when session-specific navigation is enabled.
This would improve usability for developers working with multiple concurrent Copilot CLI sessions without changing the behavior for users who prefer global history.
Example prompts or workflows
Parallel sessions: Work on two different tasks in separate Copilot CLI sessions. Pressing the up-arrow recalls the previous prompt for the current task rather than a prompt from another session.
Resuming a session: Resume a session from yesterday and easily retrieve its previous prompts, regardless of how many other sessions have been used in the meantime.
Iterative prompt refinement: Retrieve and slightly modify a previous prompt without having to navigate through unrelated prompts submitted in other sessions.
Cross-project workflows: Run Copilot CLI in multiple repositories simultaneously while keeping prompt history navigation scoped to the respective session.
Additional context
This is similar to the distinction between local and shared command history in traditional shells.
Since Copilot CLI already maintains individual session histories, the relevant information appears to be available.
I find this particularly relevant when using Copilot CLI as a long-running development agent, with multiple concurrent sessions in separate terminal windows or tmux panes.
- Lingua principale
- Python
- Stelle
- 11.5k
- Fork
- 2k
- Merge medio
- 6h 34m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di github/copilot-cli
-
area:plugins
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
github/copilot-cli#5567 ·
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationApertaarea:tools
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
github/copilot-cli#5476 ·
-
triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
github/copilot-cli#5340 ·
Tutte le issue di github/copilot-cli
Issue simili
-
fidelity
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
backlog
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sagemathinc/sagebrush#3434 ·
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wuisabel-gif/MemWhale#576 ·
I maintainer di solito rispondono entro 1 giorno
-
Status: Triage Suggestion
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
I maintainer di solito rispondono entro 1 giorno