Skip to content

Graceful interrupt in the rendering pseudo-state - #2347

Merged
rolandwalker merged 1 commit into
mainfrom
RW/do-not-kill-nonexistent-remote-queries
Oct 10, 2026
Merged

rolandwalker merged 1 commit into
mainfrom
RW/do-not-kill-nonexistent-remote-queries

Conversation

@rolandwalker

@rolandwalker rolandwalker commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Description

Previously, mycli attempted to kill a remote thread on interrupt even in the rendering pseudo-state, at which point the remote thread is finished and nonexistent. That led to a cryptic failure error whenever Ctrl-C was pressed during the rendering state.

This issue predates the background runner; at least, this particular cryptic error message does.

Instead we should simply stop rendering on interrupt.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the mycli/AUTHORS.txt file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

@rolandwalker rolandwalker self-assigned this Oct 10, 2026
Previously, mycli attempted to kill a remote thread on interrupt even
in the "rendering" pseudo-state, at which point the remote thread is
finished and nonexistent.  That led to a cryptic failure error whenever
Ctrl-C was pressed during the "rendering" state.

This issue predates the background runner; at least, this particular
cryptic error message does.

Instead we should simply stop rendering on interrupt.
@rolandwalker
rolandwalker force-pushed the RW/do-not-kill-nonexistent-remote-queries branch from 3e6a8be to 2bda459 Compare October 10, 2026 10:56
@rolandwalker
rolandwalker merged commit a0636ec into main Oct 10, 2026
12 checks passed
@rolandwalker
rolandwalker deleted the RW/do-not-kill-nonexistent-remote-queries branch October 10, 2026 11:00
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.

1 participant