agent: /model with no args shows current model

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Levi Neely 2026-04-12 20:20:43 +02:00
parent c1e5fceda6
commit c47c1ea84c
1 changed files with 2 additions and 2 deletions

View File

@ -703,7 +703,7 @@ func (s *agentCore) handleCommand(ctx context.Context, input string, handler Eve
case "/model":
if len(args) == 0 {
handler(infoEvent("error: /model requires an argument (e.g., /model qwen3:8b)"))
handler(infoEvent(s.loopcfg.Backend.Model()))
return true
}
s.loopcfg.Backend.SetModel(args[0])
@ -910,7 +910,7 @@ func (s *agentCore) handleCommand(ctx context.Context, input string, handler Eve
" /sessions - list saved sessions",
" /agent [name] - show or switch active agent",
" /backend <type> - switch backend (ollama, openai)",
" /model <name> - switch model",
" /model [name] - show current model, or switch to <name>",
" /models - list available models",
" /mcp - list registered tool servers and their tools",
" /cwd [path] - show or change working directory",