pingdotgg / pingdotgg/t3code

[Feature]: Prompt for confirmation before closing window when agent tasks are running

Open
#10,697 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement via-triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.