This repository was archived by the owner on Jan 29, 2026. It is now read-only.
Fix Ollama model and preset command help text formatting #385
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the issue where
/modeland/presetcommand help text displayed all available models/presets in an unreadable single line format, making the output cluttered when multiple options are available.Problem
When users ran
/modelor/presetcommands without arguments, the help text would show all available models/presets concatenated on a single line:This became unreadable with multiple models/presets installed.
Solution
Removed the
AddCompletions()calls from command arguments that were causing completion values to appear in help text. Users can still access properly formatted model/preset lists using:/model list- shows all available models in a clean table format/preset list- shows all available presets in a clean table formatChanges Made
.AddCompletions()calls fromModelCommandandPresetCommandargumentsModelNameCompletermethod (15 lines) as it was no longer referencedPresetNameCompletermethod since it's still used for error message functionalityAfter the Fix
Help text is now clean and readable:
Impact
/modeland/presetcommands/model list,/preset list,/model use,/preset use)Total changes: 4 lines added, 19 lines removed - minimal and surgical fix.
Fixes #376.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
7tjvsblobprodcus341.vsblob.vsassets.iodotnet build AIShell.Abstraction/AIShell.Abstraction.csproj(dns block)c78vsblobprodcus322.vsblob.vsassets.iodotnet build AIShell.Abstraction/AIShell.Abstraction.csproj(dns block)d0svsblobprodcus381.vsblob.vsassets.iodotnet build AIShell.Abstraction/AIShell.Abstraction.csproj(dns block)h6tvsblobprodcus346.vsblob.vsassets.iodotnet build AIShell.Abstraction/AIShell.Abstraction.csproj(dns block)dotnet restore agents/AIShell.Ollama.Agent/AIShell.Ollama.Agent.csproj(dns block)jd4vsblobprodcus366.vsblob.vsassets.iodotnet build AIShell.Abstraction/AIShell.Abstraction.csproj(dns block)l49vsblobprodcus358.vsblob.vsassets.iodotnet build AIShell.Abstraction/AIShell.Abstraction.csproj(dns block)u3hvsblobprodcus371.vsblob.vsassets.iodotnet restore agents/AIShell.Ollama.Agent/AIShell.Ollama.Agent.csproj(dns block)uy6vsblobprodcus34.vsblob.vsassets.iodotnet build AIShell.Abstraction/AIShell.Abstraction.csproj(dns block)vb4vsblobprodcus33.vsblob.vsassets.iodotnet build AIShell.Abstraction/AIShell.Abstraction.csproj(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.