[FEATURE]: Desktop: add Undo to Archive current session

オープン
#65,242 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
desktop, frontend

調査の方向性

Start at the Desktop command palette action for Archive current session and the toast layer that can host Undo; read #62601 for the shortcut context and the reference plugin for intended behavior. Confirm where the target session id and running/waiting state are available before committing the archive. Done means the session stays open with a ~5s Undo toast, expiry archives the originally targeted session and closes its tab, tab switches do not retarget, and running or waiting sessions are skipped.

索引モデルが issue の本文から書いたものです。

説明

area/desktop platform/macos type/feature version/v2
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

Give OpenCode Desktop’s Archive current session command a short undo window. I use the keyboard to clear finished conversations as I work, and I want to be able to catch an accidental press without opening the archive or confirming every time.

  1. Invoke Archive current session from the command palette or a configurable shortcut. I use ⌘⇧M on Mac, including while the composer has focus.
  2. Keep the session open and show a toast with Undo for about five seconds. Undo cancels the pending archive; nothing has been changed on the server.
  3. If the timer expires, archive the session that was originally targeted and close its tab. Switching tabs shouldn’t change the target. If the session has started running or is waiting for input, skip the archive.

#62601 tracks restoring the Desktop shortcut. This request is for the undo window and what happens before the archive is committed.

I built this as a small reference plugin for OpenCode Desktop 2.3.2 on macOS. I’d like to switch to the built-in command once this behavior is available.


Drafted by OpenCode and posted with my approval.

主要言語
TypeScript
スター
227k
フォーク
30.7k
平均マージ
3時間 57分
マージ済み PR(30日)
484

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。