From 4ef38c966c365785910d0a4797ad7e03ef027cf9 Mon Sep 17 00:00:00 2001 From: Akhilesh Kumar Date: Mon, 2 Mar 2026 23:14:05 +0000 Subject: [PATCH] fix(core): properly store and expose checkerRunner in Config --- packages/core/src/config/config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/config/config.ts b/packages/core/src/config/config.ts index 569d96c169..b11e56c69d 100644 --- a/packages/core/src/config/config.ts +++ b/packages/core/src/config/config.ts @@ -727,6 +727,7 @@ export class Config implements McpContext { private readonly useWriteTodos: boolean; private readonly messageBus: MessageBus; private readonly policyEngine: PolicyEngine; + private readonly checkerRunner: CheckerRunner; private _scopedPolicyEngine?: PolicyEngine; private policyUpdateConfirmationRequest: | PolicyUpdateConfirmationRequest @@ -964,6 +965,7 @@ export class Config implements McpContext { checkersPath, timeout: 30000, // 30 seconds to allow for LLM-based checkers }); + this.checkerRunner = checkerRunner; this.policyUpdateConfirmationRequest = params.policyUpdateConfirmationRequest; @@ -1327,7 +1329,7 @@ export class Config implements McpContext { } getCheckerRunner(): CheckerRunner | undefined { - return (this as any).checkerRunner; + return this.checkerRunner; } setTerminalBackground(terminalBackground: string | undefined): void {