Skip to content

Ctrl+W right after typing closes a new tab without asking #861

Closed

Description

@EVWorth

Severity: P2.

The editor writes its text to the store after a 150 ms debounce. #843 (PR #856) asks before closing a tab that holds SQL. In a fresh tab, Ctrl+W within 150 ms of the first keystrokes reads the store's content as "", so the tab closes without asking and what was typed is lost.

Fix

Flush the editor's pending content into the store before requestClose (src/stores/editorStore.ts) checks the tab. Alternatively, read the live Monaco model for the active tab. Add a test that types, then presses Ctrl+W immediately.

Found in review of #856.

Activity

  1. added a commit that references this issue on Oct 29, 2026
    6cddbc4
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions