[FEATURE]: Attach CLI and ACP to the running local service

Ouverte
#65,376 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é
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript
Domaine
api, cli

Piste de recherche

Start from the CLI command definitions for opencode api and opencode acp, then trace the existing authenticated local-service registration helper they would need to query. Read the referenced #55098 and the ACP session-load path to see where directory grants and live permissions are decided; the first runnable check is that each command with --attach exits clearly when no registered service is running. Done means both commands connect only to an already-running service, never start/replace/stop it, and ACP keeps the running app's session permissions unchanged.

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

Description

area/ide-acp 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

I'd like a script or ACP client to reconnect to the exact session already open in OpenCode Desktop. A second server can see the same database but miss live events from the first server, as described in #55098.

Could opencode api and opencode acp each offer --attach? It would use the existing authenticated local service registration and exit clearly if no service is running. It would never start, replace or stop the service. For ACP, I propose keeping live session permissions with the running app so an editor cannot introduce extra directory grants when it loads a session.

If the design fits, I can send a small CLI PR first and a separate ACP PR after that.

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.