mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:50:44 +00:00
Fix maintenance test message typing
This commit is contained in:
@@ -204,7 +204,14 @@ describe("runContextEngineMaintenance", () => {
|
||||
const maintain = vi.fn(async (params?: unknown) => {
|
||||
await (params as { runtimeContext?: ContextEngineRuntimeContext } | undefined)?.runtimeContext?.rewriteTranscriptEntries?.({
|
||||
replacements: [
|
||||
{ entryId: "entry-1", message: { role: "assistant", content: "done", timestamp: 2 } },
|
||||
{
|
||||
entryId: "entry-1",
|
||||
message: {
|
||||
role: "assistant",
|
||||
content: [{ type: "text", text: "done" }],
|
||||
timestamp: 2,
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
return {
|
||||
@@ -242,7 +249,11 @@ describe("runContextEngineMaintenance", () => {
|
||||
replacements: [
|
||||
{
|
||||
entryId: "entry-1",
|
||||
message: { role: "assistant", content: "done", timestamp: 2 },
|
||||
message: {
|
||||
role: "assistant",
|
||||
content: [{ type: "text", text: "done" }],
|
||||
timestamp: 2,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user