Telegram tests: fix SessionEntry typing in bot callback override case

This commit is contained in:
joshavant
2026-03-18 22:11:21 -05:00
parent e8eb7f6dc1
commit 0f8cef9e6f

View File

@@ -2,6 +2,7 @@ import { rm } from "node:fs/promises";
import type { PluginInteractiveTelegramHandlerContext } from "openclaw/plugin-sdk/core";
import { afterAll, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { expectChannelInboundContextContract as expectInboundContextContract } from "../../../src/channels/plugins/contracts/suites.js";
import type { SessionEntry } from "../../../src/config/sessions.js";
import {
clearPluginInteractiveHandlers,
registerPluginInteractiveHandler,
@@ -572,7 +573,9 @@ describe("createTelegramBot", () => {
});
it("resets overrides when selecting the configured default model", () => {
const entry: Record<string, unknown> = {
const entry: SessionEntry = {
sessionId: "session-1",
updatedAt: Date.now(),
providerOverride: "anthropic",
modelOverride: "claude-opus-4-6",
};