Skip to content

Show a user's own cancel as information, not as a "Query Error" #850

Closed

Description

@EVWorth

Severity: P2.

What happens

On http://localhost:1420/?mock=connected:

  1. Run SELECT * FROM products, then SELECT SLEEP(5).
  2. While it runs, the pane shows a spinner and "Executing query..." with no elapsed time. Swapping Run for the wider Cancel pushes the rest of the toolbar about 18px to the right.
  3. Ctrl+. and Escape do nothing; only the Cancel button stops the query.
  4. Click Cancel. The pane shows a red Query Error box reading "Query cancelled by user", and the status bar shows the same text in red. The status bar also still reads "12 rows · 5ms", left over from the earlier products query.

The user did what they meant to do, but the screen reports a failure.

Cause

  • src/stores/resultStore.ts:246 (cancelActiveQuery) puts the cancel message into error and leaves results in place.
  • src/components/grid/GridPlaceholder.tsx:36-48 renders every error as "Query Error" in error styling.
  • The Run/Cancel button in src/components/editor/QueryToolbar.tsx:128-148 has no fixed width.

Fix

  • Add a distinct cancelled state, rendered neutrally ("Cancelled after 1.2 s"), and clear the stale row count.
  • Show an elapsed-time counter in the executing placeholder.
  • Give the Run/Cancel button a fixed width.

The Ctrl+. binding is already tracked in #282.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 23, 2026
    342bbd8
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions