fix(plugin): repair event dispatch parse error

Remove duplicated dispatchToHooks declaration that broke TypeScript parsing, and isolate chat-headers tests from marker cache collisions with unique message IDs.
This commit is contained in:
YeonGyu-Kim
2026-02-21 03:32:50 +09:00
parent b48804e3cb
commit e21bbed3ab
2 changed files with 2 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ describe("createChatHeadersHandler", () => {
sessionID: "ses_1",
provider: { id: "openai" },
message: {
id: "msg_1",
id: "msg_2",
role: "user",
},
},

View File

@@ -130,6 +130,7 @@ export function createEventHandler(args: {
await Promise.resolve(hooks.ralphLoop?.event?.(input))
await Promise.resolve(hooks.stopContinuationGuard?.event?.(input))
await Promise.resolve(hooks.compactionTodoPreserver?.event?.(input))
await Promise.resolve(hooks.writeExistingFileGuard?.event?.(input))
await Promise.resolve(hooks.atlasHook?.handler?.(input))
}