[Feature]: Prompt for confirmation before closing window when agent tasks are running
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 23k
- Forks
- 5.9k
- Avg merge
- 11h 14m
- Merged PRs (30d)
- 357
Description
Summary
Clicking the window close button (X) immediately terminates the desktop app without a confirmation prompt. If an agent run is active, the app exits immediately and aborts the ongoing work.
Problem
Accidental clicks on the close button kill running agent sessions in Codex and other providers. This causes the agent to stop the work and requires starting it again.
Proposed solution
Show a confirmation dialog before closing the window when an agent task is active:
- Warn that an active agent run will be stopped.
- Provide options to cancel or proceed with closing.
- Optionally add a setting to toggle close confirmation behavior.
Environment
- OS: Windows 11
- App: T3 Code Nightly (v0.0.41-nightly.20260908.1387)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the desktop app's window-close handling and the active agent-run state described in the issue. Confirm the dialog appears when a run is active, offers cancel and proceed options, and preserves current behavior otherwise; determine whether the optional setting belongs in scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100