Graceful shutdown
- 主要语言
- Java
- 星标
- 10.5k
- 派生
- 1.5k
- 平均合并
- 1 天 14 小时
- 30 天内合并 PR
- 129
描述
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.
贡献指南
调研方向
从 SDK 的 sendAndWait 入口点开始,跟踪 prompt 处理期间 SIGINT 的处理方式。将优雅完成定义为允许 prompt 在退出前完成,同时避免产生脱离的进程或僵尸进程;该 issue 未指明任何 repository 文件或要运行的测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 45/100