Skip to content

Handle closed TUI input stream as shutdown#17430

Merged
etraut-openai merged 1 commit into
mainfrom
etraut/tui-shutdown-approval
Apr 11, 2026
Merged

Handle closed TUI input stream as shutdown#17430
etraut-openai merged 1 commit into
mainfrom
etraut/tui-shutdown-approval

Conversation

@etraut-openai

Copy link
Copy Markdown
Collaborator

Addresses #17276

Problem: Closing the terminal while the TUI input stream is pending could leave the app outside the normal shutdown path, which is risky when an approval prompt is active.

Solution: Treat a closed TUI input stream as ShutdownFirst so existing thread shutdown behavior cancels pending work and approvals before exit.

@etraut-openai etraut-openai merged commit 51d58c5 into main Apr 11, 2026
22 checks passed
@etraut-openai etraut-openai deleted the etraut/tui-shutdown-approval branch April 11, 2026 16:02
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants