Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(config): reword the unregistered-key refusal so the remediation scanner does not read a command in it (#5956)
time-attackf95477ff0fce
diff --git a/src/commands/config/enumerated-keys.ts b/src/commands/config/enumerated-keys.tsindex 8ac2c191b3..8edc8ac6f5 100644--- a/src/commands/config/enumerated-keys.ts+++ b/src/commands/config/enumerated-keys.ts@@ -39,8 +39,8 @@ export function refuseUnregisteredEnumeratedKey(key: string, force: boolean): voexitCliError(usageError(`Unknown config key "${shown}".${didYouMean} Nothing was written.`,suggestion- ? `Set the registered key instead: gbrain config set ${suggestion} <value>. To write "${shown}" anyway (a key a newer gbrain reads), re-run with --force.`- : `Set a registered ${prefix}* key instead. To write "${shown}" anyway (a key a newer gbrain reads), re-run with --force.`,+ ? `Set the registered key instead: gbrain config set ${suggestion} <value>. To write "${shown}" anyway (a key that a newer release reads), re-run with --force.`+ : `Set a registered ${prefix}* key instead. To write "${shown}" anyway (a key that a newer release reads), re-run with --force.`,{why: `Every ${prefix}* key gbrain reads is registered, so nothing would read this one.`,fix: {