fix(cli): remove unused mouse support and fix settings autocomplete (#10329)

This commit is contained in:
llamantino 2025-08-14 20:59:41 +02:00 committed by GitHub
parent 426350224b
commit fd805eb835
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -241,7 +241,7 @@ async def modify_llm_settings_basic(
provider_list = [p for p in provider_list if p not in verified_providers]
provider_list = verified_providers + provider_list
provider_completer = FuzzyWordCompleter(provider_list)
provider_completer = FuzzyWordCompleter(provider_list, WORD=True)
session = PromptSession(key_bindings=kb_cancel())
current_provider, current_model, current_api_key = (
@ -392,7 +392,7 @@ async def modify_llm_settings_basic(
)
if change_model:
model_completer = FuzzyWordCompleter(provider_models)
model_completer = FuzzyWordCompleter(provider_models, WORD=True)
# Define a validator function that allows custom models but shows a warning
def model_validator(x):
@ -528,7 +528,7 @@ async def modify_llm_settings_advanced(
)
agent_list = Agent.list_agents()
agent_completer = FuzzyWordCompleter(agent_list)
agent_completer = FuzzyWordCompleter(agent_list, WORD=True)
agent = await get_validated_input(
session,
'(Step 4/6) Agent (TAB for options, CTRL-c to cancel): ',

View File

@ -906,7 +906,6 @@ def cli_confirm(
layout=layout,
key_bindings=kb,
style=style,
mouse_support=True,
full_screen=False,
)