Skip to content

fix(pi): handle ctrl-c as overlay cancel#16

Merged
benvinegar merged 2 commits intomainfrom
fix/pi-ctrl-c-cancel
Apr 26, 2026
Merged

fix(pi): handle ctrl-c as overlay cancel#16
benvinegar merged 2 commits intomainfrom
fix/pi-ctrl-c-cancel

Conversation

@benvinegar
Copy link
Copy Markdown
Owner

Summary

  • handle Ctrl+C in the Pi termDRAW overlay as an explicit cancel action
  • update the overlay footer and ready status text to mention Ctrl+C
  • prevent Ctrl+C from bubbling out and leaving opentui-island waiting on a dead sidecar

Details

Previously, the overlay only treated Ctrl+Q as the normal cancel shortcut during steady-state use. Pressing Ctrl+C could escape to the host instead of closing the overlay cleanly, which could leave the sidecar client reporting errors like:

  • OpenTUI sidecar exited unexpectedly while waiting for resize

This change makes the Pi overlay intercept Ctrl+C the same way it already handles Ctrl+Q, so canceling termDRAW closes the surface deterministically.

Testing

  • cd packages/pi && bun run typecheck
  • cd packages/pi && bun run smoke:pi

This PR description was generated by Pi using OpenAI o3

@benvinegar benvinegar merged commit 14d8dcb into main Apr 26, 2026
1 check passed
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