We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46787fc + 0bcb072 commit 3982e61Copy full SHA for 3982e61
1 file changed
cecli/tui/worker.py
@@ -92,6 +92,8 @@ async def _async_run(self):
92
break # Normal exit
93
except asyncio.CancelledError:
94
break
95
+ except KeyboardInterrupt:
96
+ continue
97
except SwitchCoderSignal as switch:
98
# Handle chat mode switches (e.g., /chat-mode architect)
99
try:
@@ -179,7 +181,11 @@ def stop(self):
179
181
except RuntimeError:
180
182
# Loop may already be closed
183
pass
-
184
185
+ # An interrupt was not caught within the async run loop.
186
+ # We'll just pass to allow the thread to exit gracefully
187
+ # without a scary traceback.
188
+ pass
189
self.interrupt()
190
191
# Wait for thread to finish
0 commit comments