Skip to content

Let slow query alert happen before paged output - #2338

Merged
rolandwalker merged 1 commit into
mainfrom
RW/beep-after-seconds-before-pager
Oct 7, 2026
Merged

rolandwalker merged 1 commit into
mainfrom
RW/beep-after-seconds-before-pager

Conversation

@rolandwalker

Copy link
Copy Markdown
Contributor

Description

beep_after_seconds sets a threshold time for the user to receive an alarm on the completion of a slow query. The idea behind the feature is that the user may have tabbed away from mycli while waiting and would like an alert to tab back.

But the implementation was sending the alarm after the output, meaning that if the output was long enough to be paged, the beep would not be heard on query-completion, but rather on pager-exit, defeating the purpose.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the mycli/AUTHORS.txt file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

beep_after_seconds sets a threshold time for the user to receive an
alarm on the completion of a slow query.  The idea behind the feature
is that the user may have tabbed away from mycli while waiting and
would like an alert to tab back.

But the implementation was sending the alarm _after_ the output,
meaning that if the output was long enough to be paged, the beep
would not be heard on query-completion, but rather on pager-exit,
defeating the purpose.
@rolandwalker rolandwalker self-assigned this Oct 7, 2026
@rolandwalker
rolandwalker merged commit 945db5c into main Oct 7, 2026
12 checks passed
@rolandwalker
rolandwalker deleted the RW/beep-after-seconds-before-pager branch October 7, 2026 11:24
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