fix(ci): satisfy strict agent model types

This commit is contained in:
Peter Steinberger
2026-04-11 01:58:42 +01:00
parent bef2fde77f
commit 4c74c0db18
2 changed files with 3 additions and 3 deletions

View File

@@ -390,7 +390,7 @@ export const handleModelsCommand: CommandHandler = async (params, allowTextComma
config: params.cfg,
})
: params.agentId;
const modelsAgentDir = resolveAgentDir(params.cfg, modelsAgentId);
const modelsAgentDir = modelsAgentId ? resolveAgentDir(params.cfg, modelsAgentId) : undefined;
const reply = await resolveModelsCommandReply({
cfg: params.cfg,

View File

@@ -208,7 +208,7 @@ describe("agents helpers", () => {
agentId: "main",
match: {
channel: "discord",
peer: { kind: "user", id: "a|b" },
peer: { kind: "direct", id: "a|b" },
accountId: "default",
},
},
@@ -216,7 +216,7 @@ describe("agents helpers", () => {
agentId: "main",
match: {
channel: "discord",
peer: { kind: "user", id: "a" },
peer: { kind: "direct", id: "a" },
guildId: "b",
accountId: "|default",
},