From 104c6e460d1d3ac383432e148aa2fb02d756a8bd Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Mon, 2 Mar 2026 17:30:21 -0800 Subject: [PATCH] fix(hooks): pass shared hook context to llm_input --- src/agents/pi-embedded-runner/run/attempt.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/agents/pi-embedded-runner/run/attempt.ts b/src/agents/pi-embedded-runner/run/attempt.ts index d1b158eee9f..a84896f8b26 100644 --- a/src/agents/pi-embedded-runner/run/attempt.ts +++ b/src/agents/pi-embedded-runner/run/attempt.ts @@ -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)}`);