diff --git a/src/plugins/commands.ts b/src/plugins/commands.ts index 28cabc21f..8fedda351 100644 --- a/src/plugins/commands.ts +++ b/src/plugins/commands.ts @@ -23,10 +23,7 @@ let registryLockCount = 0; // Maximum allowed length for command arguments (defense in depth) const MAX_ARGS_LENGTH = 4096; -let cachedReservedCommands: Set | null = null; - function getReservedCommands(): Set { - if (cachedReservedCommands) return cachedReservedCommands; const reserved = new Set(); for (const command of listChatCommands()) { if (command.nativeName) { @@ -41,7 +38,6 @@ function getReservedCommands(): Set { if (normalized) reserved.add(normalized); } } - cachedReservedCommands = reserved; return reserved; }