From ea5fa228925b08c22b7838d8d4fff1cdbbccaaa1 Mon Sep 17 00:00:00 2001 From: Sergio Date: Sun, 15 Mar 2026 16:58:14 -0500 Subject: [PATCH] fix: replace nonexistent allowlist CLI command with config set openclaw models allowlist add does not exist. Use openclaw config set to add models to agents.defaults.models, matching the existing config CLI convention used by other doctor hints. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/commands/doctor-synthetic-allowlist.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/doctor-synthetic-allowlist.ts b/src/commands/doctor-synthetic-allowlist.ts index f41eb6f17db..9c01a9b2a21 100644 --- a/src/commands/doctor-synthetic-allowlist.ts +++ b/src/commands/doctor-synthetic-allowlist.ts @@ -65,7 +65,8 @@ export async function noteSyntheticAllowlistGaps(cfg: OpenClawConfig): Promise")}`, + `To add: ${formatCliCommand("openclaw config set agents.defaults.models./ '{}'")}`, + `Or edit the config file directly: ${formatCliCommand("openclaw config file")}`, "(Models are functional but hidden from agents until allowlisted)", ); note(lines.join("\n"), "Synthetic model allowlist");