pieces-app / cli-agent

Pieces CLI for interacting with Pieces OS
https://docs.pieces.app/extensions-plugins/cli
MIT License
46 stars 15 forks source link

Keyboard interrupt exception #137

Closed mdex-geek closed 2 months ago

mdex-geek commented 2 months ago

fixes : #136 Issue: When attempting to interrupt the program using Ctrl + C, the system raised a KeyboardInterrupt exception. This caused the program to freeze, requiring the user to kill the terminal session to regain control.

Solution: I have added an exception handling mechanism for KeyboardInterrupt to prevent the program from freezing. This allows the program to continue running smoothly without needing to kill the terminal.

User Guidance: To exit the program gracefully, users should follow the provided instructions instead of using Ctrl + C. Here is the suggested command for exiting the program:

To exit the loop gracefully, please type exit Avoid using Ctrl + C as it is now handled to maintain the program's stability and avoid freezing.

mdex-geek commented 2 months ago

video of the solution https://github.com/pieces-app/cli-agent/assets/107706485/33a61fbb-63a3-4760-bd3a-1a0d17456a92