Skip to content

Cleaner shutdown for completion_refresher - #2131

Merged
rolandwalker merged 1 commit into
mainfrom
RW/completion-refresher-stop
Aug 12, 2026
Merged

Cleaner shutdown for completion_refresher#2131
rolandwalker merged 1 commit into
mainfrom
RW/completion-refresher-stop

Conversation

@rolandwalker

Copy link
Copy Markdown
Contributor

Description

We were definitely missing

try:
    self.completion_refresher.stop()
except Exception:
    pass

in close() in mycli/client.py, and can also do a bit more to ensure safety for the completion refresher, such as preventing completion callbacks after shutdown starts.

Fixes #2130.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS 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 .

@rolandwalker rolandwalker self-assigned this Aug 12, 2026
we were definitely missing

    try:
        self.completion_refresher.stop()
    except Exception:
        pass

in close() in mycli/client.py, and can also do a bit more to ensure
safety for the completion refresher, such as preventing completion
callbacks after shutdown starts.
@rolandwalker
rolandwalker force-pushed the RW/completion-refresher-stop branch from 160155d to 93a2bd8 Compare August 12, 2026 09:54
@rolandwalker
rolandwalker merged commit 39468b6 into main Aug 12, 2026
11 checks passed
@rolandwalker
rolandwalker deleted the RW/completion-refresher-stop branch August 12, 2026 09:59
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.

Exception when exiting soon after start

1 participant