Skip to content

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

Description

@screen-gd

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequested improvement or new capability.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions