github / github/copilot-sdk

Graceful shutdown

Open
#1,074 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
10.5k
Forks
1.5k
Avg merge
1d 11h
Merged PRs (30d)
127

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.