github / github/copilot-sdk

Graceful shutdown

オープン
#1,074 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
Java
スター
10.5k
フォーク
1.5k
平均マージ
1日 11時間
マージ済み PR(30日)
127

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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