fix(tui): handle SIGINT and SIGTERM for graceful shutdown#24659
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found several related PRs that address signal handling and graceful shutdown: Potentially Related PRs:
These PRs address similar concerns around signal handling (SIGTERM, SIGINT, SIGHUP) and graceful shutdown. The most relevant appears to be #12718 which specifically handles SIGHUP for process cleanup - exactly the mechanism PR #24659 aims to extend to SIGTERM and SIGINT. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #24658
Type of change
What does this PR do?
Handles
SIGTERMandSIGINTthe same waySIGHUPis handled, having the UI trigger a full cleanup.How did you verify your code works?
Ran it locally.
Screenshots / recordings
(Successful exit!)
Checklist
If you do not follow this template your PR will be automatically rejected. 👍