We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d4d8d0 commit e6d7c3fCopy full SHA for e6d7c3f
1 file changed
tests/e2e/test-host.ts
@@ -70,14 +70,16 @@ const mockCtx = {
70
getContextUsage: () => null,
71
sessionManager: null,
72
modelRegistry: null,
73
+ // Required by spawn tool which checks ctx.model existence before using it
74
+ model: undefined,
75
isIdle: () => true,
76
signal: new AbortController().signal,
77
abort: () => {},
78
hasPendingMessages: () => false,
79
shutdown: () => process.exit(0),
80
compact: () => {},
81
getSystemPrompt: () => "",
-};
82
+} as any; // Type assertion needed: mock intentionally omits some interface fields
83
84
// ── REPL loop ────────────────────────────────────────────────────
85
0 commit comments