Skip to content

Conversation

@scottnemes
Copy link
Contributor

@scottnemes scottnemes commented Dec 21, 2025

Description

Updates the prompt display logic to handle an edge case where a socket is used without a host being parsed from any other method.

Current behavior when a socket is used and host is None:

MySQL root@none:(none)>

Updated behavior:

MySQL root@localhost:(none)>

Resolves #707

Checklist

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

@rolandwalker rolandwalker merged commit b9cf34d into dbcli:main Dec 23, 2025
8 checks passed
@scottnemes scottnemes deleted the bug/707/prompt-host-none-with-sudo-socket branch December 24, 2025 16:13
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.

localhost is displayed as 'none'

2 participants