fix(rules-injector): bound parsed rule cache

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-18 12:40:12 +09:00
parent 46b965b9da
commit 61890f0857
3 changed files with 60 additions and 6 deletions
+2 -1
View File
@@ -3,7 +3,7 @@ import { createDynamicTruncator } from "../../shared/dynamic-truncator";
import { resolveSessionEventID } from "../../shared/event-session-id";
import { getRuleInjectionFilePath } from "./output-path";
import { createSessionCacheStore, createSessionRuleScanCacheStore } from "./cache";
import { createRuleInjectionProcessor } from "./injector";
import { clearParsedRuleCache, createRuleInjectionProcessor } from "./injector";
import { clearProjectRootCache } from "./project-root-finder";
interface ToolExecuteInput {
@@ -53,6 +53,7 @@ export function createRulesInjectorHook(
function clearSessionState(sessionID: string): void {
clearSessionCache(sessionID);
clearSessionRuleScanCache(sessionID);
clearParsedRuleCache();
}
const toolExecuteAfter = async (