You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show a user's own cancel as information, not as a "Query Error" #850
On http://localhost:1420/?mock=connected:
Run SELECT * FROM products, then SELECT SLEEP(5).
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.
Ctrl+. and Escape do nothing; only the Cancel button stops the query.
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.
Activity
fix(query): show a user's cancel as info, not error
release: 1.4.0 (#871)
fix(explain): clear the plan when an Explain is cancelled
fix(ux): editor, grid and results review fixes (#908)