Skip to content

fix(workspace): the status bar does not keep 'Running query…' after a failed run - #1435

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/status-bar-after-query-error
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/status-bar-after-query-error

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Found while driving a build of `dev`.

Problem

`QueryaShellStatus.endBusy` kept the message `beginBusy` had set, so a failed query (and every Explain) left Running query… / Explaining query… in the status bar, next to the row / column counts of the previous result.

Change

  • A message set by `beginBusy` is dropped by `endBusy`.
  • New `reportQueryFailure`: `Query failed` / `Query timed out` / `Statement n of m failed` / `Explain failed`, with the run's duration and without the previous result's counts. Used by the SQL workspace error, timeout, multi-statement and explain paths.

Tests

`test/core/ui/querya_shell_status_test.dart`: busy message cleared, failure replaces it and drops old counts, `endBusy` after a failure keeps the failure message, a result message survives `endBusy`.

Not run locally; CI is the check.

… failed run

endBusy kept the message beginBusy had set, so a failed query (and every
explain) left 'Running query…' / 'Explaining query…' in the status bar, next to
the row counts of the previous result. A busy message now goes away with the
busy state, and failures report 'Query failed' / 'Query timed out' /
'Statement n of m failed' / 'Explain failed' without the stale counts.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit e3bb5f0 into dev Oct 11, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the fix/status-bar-after-query-error branch October 11, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant