[FEATURE]: Desktop (V2): optional per-session prompt history
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- desktop
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- TypeScript
- スター
- 227k
- フォーク
- 30.7k
- 平均マージ
- 3時間 57分
- マージ済み PR(30日)
- 484
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
[Site] Active section detection should respect scroll-margin-top対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea/web reproduced type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
anomalyco/opencode#65384 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/cli type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#65379 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursオープンarea/core platform/linux type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anomalyco/opencode#65254 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
inference/go type/feature
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#65148 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/providers type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#64845 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offers対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンcatalog provider provider-compatibility
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
lidge-jun/opencodex#9037 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
メンテナーはふだん 1 日以内に返信
-
effort:S P3 refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nightscout/nocturne#3735 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
メンテナーはふだん 2 日以内に返信