[FEATURE]: Desktop (V2): optional per-session prompt history
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- desktop
Direção de pesquisa
Start with packages/app/src/composer/history/store.ts and packages/app/src/composer/model.ts, then trace the Desktop settings surface and how the active session reaches the composer. The issue describes the desired scope and default, but does not identify the settings files or tests. Done means an opt-in current-session setting scopes ↑/↓ and Shift+↑ while preserving global behavior by default, with the new-session behavior documented.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
What I'd like
Add an opt-in setting in OpenCode Desktop so prompt recall can be limited to the current session. Keep the current global behavior as the default.
Current behavior
In Desktop, the composer's ↑/↓ history and the Shift+↑ "Prompt history" picker are global. In an empty composer, ↑ recalls the last prompt sent in any session, and the picker lists prompts from every session and project.
With several sessions open, this makes recall unreliable and can pull text from an unrelated conversation into the current one. The global list is also capped, so a busy session can evict prompts from the session I'm actually working in.
Steps to reproduce
- Open two sessions in Desktop.
- Send
alphain session A. - Send
betain session B. - Go back to session A, focus the empty composer, and press ↑.
betais recalled instead ofalpha.- Press Shift+↑: the picker shows prompts from both sessions, and from other projects as well.
Environment
- OpenCode Desktop 2.3.2 (V2)
- Windows 10 22H2 (19045)
- Desktop app, not TUI
- No relevant plugins
Expected behavior
A Desktop setting, for example Prompt history scope:
- Global — current behavior, default.
- Current session — ↑/↓ and Shift+↑ only show prompts sent in the active session.
Scoping recall is enough; I'm not asking to change where history is stored. The new-session/home composer can keep global history or start empty, as long as the behavior is documented.
Notes
- This is the Desktop (
packages/app) counterpart of #52154, which tracks the TUI. Desktop has its own composer and settings surface and does not use the TUI'scli.json, so a TUI-onlyprompt.history_scopesetting would not cover it. I couldn't find an existing Desktop issue for this; if you'd rather track it in #52154, feel free to close this as a duplicate. - The current source stores this globally:
packages/app/src/composer/history/store.tsusesPersist.global("prompt-history")andPersist.global("prompt-history-shell");createComposerHistory()inpackages/app/src/composer/model.tsis called without session context. - Global history may be intentional — the TUI shipped per-session history and later reverted it (#43977 / #44416). I'm not asking to change the default; an opt-in Desktop setting is enough.
- Related: #52154 (open, TUI), #54505 / #63470 (closed duplicates), #55261 (closed TUI PR proposing an opt-in
prompt.history_scope).
- Linguagem predominante
- TypeScript
- Estrelas
- 227k
- Forks
- 30.7k
- Merge médio
- 3h 57min
- PRs com merge (30d)
- 484
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de anomalyco/opencode
-
[Site] Active section detection should respect scroll-margin-topTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaarea/web reproduced type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
anomalyco/opencode#65384 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area/cli type/feature version/v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
anomalyco/opencode#65379 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursAbertaarea/core platform/linux type/feature version/v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
anomalyco/opencode#65254 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
inference/go type/feature
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 72/100
anomalyco/opencode#65148 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
area/providers type/feature version/v2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
anomalyco/opencode#64845 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de anomalyco/opencode
Issues semelhantes
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertacatalog provider provider-compatibility
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
lidge-jun/opencodex#9037 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 60/100
Mantenedores costumam responder em até 1 dia
-
effort:S P3 refactor
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
nightscout/nocturne#3735 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
Mantenedores costumam responder em até 2 dias