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

Aperta
#65,376 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api, cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
227k
Fork
30.7k
Merge medio
3h 57m
PR unite (30g)
484

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.