From c47c1ea84cbd8aaf0dfab326a495f7eadd863ed1 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Sun, 12 Apr 2026 20:20:43 +0200 Subject: [PATCH] agent: /model with no args shows current model Co-Authored-By: Claude Sonnet 4.6 --- pkg/agent/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/agent/core.go b/pkg/agent/core.go index 12e3f48..ecbb1d3 100644 --- a/pkg/agent/core.go +++ b/pkg/agent/core.go @@ -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 - switch backend (ollama, openai)", - " /model - switch model", + " /model [name] - show current model, or switch to ", " /models - list available models", " /mcp - list registered tool servers and their tools", " /cwd [path] - show or change working directory",