fix: permitir robots sin llm.primary.provider + command_prefix vacio

- 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) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 20:33:43 +00:00
parent 235c5ff827
commit 184d7ca0ae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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