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

Ouverte
#65,242 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
48/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript
Domaine
desktop, frontend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
TypeScript
Étoiles
227k
Forks
30.7k
Merge moyen
3 h 57 min
PR mergées (30 j)
484

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de anomalyco/opencode

Toutes les issues de anomalyco/opencode

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.