Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Graceful shutdown

Open
#1,074 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
java
Domain
cli

Research direction

Start at the SDK's sendAndWait entry point and trace how SIGINT is handled while a prompt is processing. Define graceful completion as allowing the prompt to finish before exit, while avoiding detached or zombie processes; the issue names no repository files or tests to run.

Written by the indexing model from the issue text.

Description

question

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.

Dominant language
Java
Stars
10.5k
Forks
1.5k
Avg merge
1d 9h
Merged PRs (30d)
130

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/copilot-sdk

All issues in github/copilot-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.