Skip to content

[P1][ux] EXPLAIN ANALYZE panel has no cancel button — running query can't be aborted from this panel #427

Closed

Description

@EVWorth

Context

EXPLAIN ANALYZE panel renders a long-running query.

Problem

When EXPLAIN ANALYZE is running, useResultStore.isExecuting is true. The toolbar has a Cancel button but the EXPLAIN ANALYZE panel doesn't surface it. The user is stuck watching the spinner with no abort affordance on the panel itself. (Cancel doesn't actually work per editor F1, but the affordance should exist on this panel.)

Files

  • src/components/explain/ExplainPanel.tsx:441-446 (AnalyzeView panel)

Repro

  1. EXPLAIN ANALYZE SELECT SLEEP(60)
  2. EXPLAIN panel shows no cancel button — must switch to the toolbar

Expected

Cancel button visible during EXPLAIN ANALYZE; click cancels (or surfaces "cancel is not yet implemented" depending on F1 status).

Proposed fix

Add a small Cancel button in the EXPLAIN ANALYZE panel header next to "EXPLAIN ANALYZE" label, calling useResultStore.cancelActiveQuery(). Scope: S.

Acceptance

Cancel button visible during EXPLAIN ANALYZE; click cancels (or surfaces "cancel is not yet implemented" depending on F1 status).

Needs human verify

no

Doc drift

no

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

    area/explainauditkind/uxseverity/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions