fix(tui): graceful exit on Ctrl+C and resolve multiline paste corruption#14440
fix(tui): graceful exit on Ctrl+C and resolve multiline paste corruption#14440n24q02m wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: #13848 - This PR appears to address a similar issue with graceful process cleanup and preventing orphaned/zombie processes on terminal close. It may overlap with the Ctrl+C graceful exit handling in PR #14440. All other search results either returned PR #14440 itself or addressed different concerns (MCP server processes, ANSI color codes, memory leaks, etc.). |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Issue for this PR
Closes #11826
Closes #10975
Type of change
What does this PR do?
process.exit(0)after standard renderer and event loop cleanup, the application will forcefully exit if background processes (like file watchers or MCP servers) are blocking a clean exit.[Pasted ~X lines]but didn't actually insert the text into the internal buffer. Now, the raw text is directly inserted viainput.insertText().How did you verify your code works?
Pasted >150 lines of text successfully without UI corruption. Pressed
Ctrl+Cand confirmed the terminal exits immediately without leaving orphaned processes. Ranbun run typecheckandbun run test.Screenshots / recordings
N/A
Checklist