fix(hooks): pass shared hook context to llm_input

This commit is contained in:
Vincent Koc
2026-03-02 17:30:21 -08:00
parent 4bceb21452
commit 104c6e460d

View File

@@ -1466,13 +1466,7 @@ export async function runEmbeddedAttempt(
historyMessages: activeSession.messages,
imagesCount: imageResult.images.length,
},
{
agentId: hookAgentId,
sessionKey: params.sessionKey,
sessionId: params.sessionId,
workspaceDir: params.workspaceDir,
messageProvider: params.messageProvider ?? undefined,
},
hookCtx,
)
.catch((err) => {
log.warn(`llm_input hook failed: ${String(err)}`);