github / github/copilot-sdk

Graceful shutdown

Aperta
#1,074 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
Java
Stelle
10.5k
Fork
1.5k
Merge medio
1g 11h
PR unite (30g)
127

Descrizione

Hey,
So it seems at the moment if I trigger a prompt with `sendAndWait`, and then the process receives a `SIGINT` the processing of the prompt ends. Ideally, I want to wait for the prompt to complete before exiting.

In order to work around this i've ended up creating a wrapper script that `exec`'s the copilot-cli sdk script with a `detatched: true`, but then I end up with zombie processes.

So as it stands, I can't see a way to do graceful shutdown, allowing a prompt to complete. Am I down a rabbithole here, am I missing something? Or is there no way to gracefully finish processing.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.