From 184d7ca0aed134fd5e22f98ffe3ee409a56b5bd9 Mon Sep 17 00:00:00 2001 From: Enmanuel Date: Thu, 9 Apr 2026 20:33:43 +0000 Subject: [PATCH] fix: permitir robots sin llm.primary.provider + command_prefix vacio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - internal/config/loader.go: skip validacion de LLM provider cuando agent.type es "robot" — los robots no usan LLM - agents/test-bot/config.yaml: usar command_prefix: "" para que acepte comandos sin prefijo ! (feature del issue 0033) Co-Authored-By: Claude Opus 4.6 (1M context) --- agents/test-bot/config.yaml | 2 +- internal/config/loader.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agents/test-bot/config.yaml b/agents/test-bot/config.yaml index 827bca2..cc4ad7e 100644 --- a/agents/test-bot/config.yaml +++ b/agents/test-bot/config.yaml @@ -43,7 +43,7 @@ matrix: admin: [] filters: - command_prefix: "!" + command_prefix: "" # sin prefijo — todo mensaje es un posible comando mention_respond: false dm_respond: false ignore_bots: true diff --git a/internal/config/loader.go b/internal/config/loader.go index 0f2275a..4bf891f 100644 --- a/internal/config/loader.go +++ b/internal/config/loader.go @@ -94,7 +94,7 @@ func validate(cfg *AgentConfig) error { if cfg.Matrix.UserID == "" { return fmt.Errorf("matrix.user_id is required") } - if cfg.LLM.Primary.Provider == "" { + if cfg.Agent.Type != "robot" && cfg.LLM.Primary.Provider == "" { return fmt.Errorf("llm.primary.provider is required") } return nil