Skip to content

fix(tui): Handle KeyboardInterrupt during worker shutdown (CLI-38)#528

Merged
dwash96 merged 1 commit into
cecli-dev:v0.100.1from
szmania:cli-38-handle-keyboardinterrupt-worker
May 26, 2026
Merged

fix(tui): Handle KeyboardInterrupt during worker shutdown (CLI-38)#528
dwash96 merged 1 commit into
cecli-dev:v0.100.1from
szmania:cli-38-handle-keyboardinterrupt-worker

Conversation

@szmania
Copy link
Copy Markdown

@szmania szmania commented May 26, 2026

This pull request resolves issue CLI-38.

It prevents a KeyboardInterrupt traceback that can occur during the shutdown of the Textual TUI, particularly when an interrupt is triggered while the CoderWorker is cleaning up its event loop.

Changes

  • Added a try...except KeyboardInterrupt block in _cleanup_loop within cecli/tui/worker.py to gracefully handle interrupts during task gathering.
  • Added a try...except KeyboardInterrupt block in the stop method of cecli/tui/worker.py to prevent unhandled exceptions when stopping the event loop.

These changes ensure a cleaner and more robust shutdown process for the TUI.

Co-authored-by: cecli (openai/gemini_cli_local/gemini-2.5-pro)
@dwash96 dwash96 changed the base branch from main to v0.100.1 May 26, 2026 23:16
@dwash96 dwash96 merged commit 2fc0780 into cecli-dev:v0.100.1 May 26, 2026
12 checks passed
@dwash96 dwash96 mentioned this pull request May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants