-
fix(llm-cli): raise KeyboardInterrupt for exit code 130 (SIGINT) in CLI runner (#1999)
发布于
2026-05-16 18:20:35 +00:00 | 1939 次提交 在此版本后已推送到 main- fix(llm-cli): raise KeyboardInterrupt for exit code 130 (SIGINT) in CLI runner
When a CLI subprocess (e.g. gemini -p) is interrupted by Ctrl+C it exits
with code 130 (128+SIGINT). The runner previously fell through to the generic
RuntimeError path, causing spurious Sentry alerts for user-initiated
cancellations. Raise KeyboardInterrupt instead so the cancellation propagates
as expected and is not forwarded to Sentry.Closes #1996
https://claude.ai/code/session_01Us8V9GxZWLyBvBD7kwSrre
-
address greptile feedback
-
style(llm-cli): ruff-format runner for CI
- Collapse CLIInterruptedError raise to satisfy ruff format --check
Co-authored-by: Claude noreply@anthropic.com
Co-authored-by: davincios davincios@users.noreply.github.com
Co-authored-by: muddlebee anweshknayak@gmail.com下载附件