From 1aa18c6cd64412db89ccfb58c2641ab3e49233e4 Mon Sep 17 00:00:00 2001 From: Helge Tesdal Date: Wed, 18 Feb 2026 21:14:18 +0100 Subject: feat(plugin): pass sessionID and callID to shell.env hook input (#13662) --- packages/plugin/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/plugin') diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index bd4ba5304..76370d1d5 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -185,7 +185,10 @@ export interface Hooks { input: { tool: string; sessionID: string; callID: string }, output: { args: any }, ) => Promise - "shell.env"?: (input: { cwd: string }, output: { env: Record }) => Promise + "shell.env"?: ( + input: { cwd: string; sessionID?: string; callID?: string }, + output: { env: Record }, + ) => Promise "tool.execute.after"?: ( input: { tool: string; sessionID: string; callID: string; args: any }, output: { -- cgit v1.2.3