fix: address PR CI failures for Cortex integration
This commit is contained in:
parent
8629a13aba
commit
7aa8f7d9ec
@ -30,8 +30,13 @@ import type { createModelSelectionState } from "./model-selection.js";
|
||||
import { extractInlineSimpleCommand } from "./reply-inline.js";
|
||||
import type { TypingController } from "./typing.js";
|
||||
|
||||
const builtinSlashCommands = (() => {
|
||||
return listReservedChatSlashCommandNames([
|
||||
let builtinSlashCommands: Set<string> | null = null;
|
||||
|
||||
function getBuiltinSlashCommands(): Set<string> {
|
||||
if (builtinSlashCommands) {
|
||||
return builtinSlashCommands;
|
||||
}
|
||||
builtinSlashCommands = listReservedChatSlashCommandNames([
|
||||
"think",
|
||||
"verbose",
|
||||
"reasoning",
|
||||
@ -41,7 +46,8 @@ const builtinSlashCommands = (() => {
|
||||
"status",
|
||||
"queue",
|
||||
]);
|
||||
})();
|
||||
return builtinSlashCommands;
|
||||
}
|
||||
|
||||
function resolveSlashCommandName(commandBodyNormalized: string): string | null {
|
||||
const trimmed = commandBodyNormalized.trim();
|
||||
@ -163,7 +169,7 @@ export async function handleInlineActions(params: {
|
||||
allowTextCommands &&
|
||||
slashCommandName !== null &&
|
||||
// `/skill …` needs the full skill command list.
|
||||
(slashCommandName === "skill" || !builtinSlashCommands.has(slashCommandName));
|
||||
(slashCommandName === "skill" || !getBuiltinSlashCommands().has(slashCommandName));
|
||||
const skillCommands =
|
||||
shouldLoadSkillCommands && params.skillCommands
|
||||
? params.skillCommands
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user