Uh oh!
There was an error while loading. Please reload this page.
Fix Ctrl+C handling for interactive commands launched from Python - #211
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
konstantinoscs
left a comment
There was a problem hiding this comment.
If we know it's os-portable, I'm good
| # in the interpreter instead of terminating the process immediately. | ||
| # Restore default SIGINT behavior so Ctrl+C reliably cancels interactive | ||
| # CLI flows (matching behavior of the standalone Rust binary). | ||
| signal.signal(signal.SIGINT, signal.SIG_DFL) |
There was a problem hiding this comment.
Does this work accross OSs?
Uh oh!
There was an error while loading. Please reload this page.
Summary
towerPython scriptSIG_DFLforSIGINTand still forwards argv to the native runnerNotes