From 5bf661138b1524fdbfafa82fd8cde1918cf05f73 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Fri, 13 Nov 2026 03:34:24 -0600 Subject: [PATCH] feat(core): tell the model its session ID is in OPENCODE_SESSION_ID (#63718) --- packages/core/src/tool/plugin/shell.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/tool/plugin/shell.ts b/packages/core/src/tool/plugin/shell.ts index 9357b09e8a7..0fa456f60a6 100644 --- a/packages/core/src/tool/plugin/shell.ts +++ b/packages/core/src/tool/plugin/shell.ts @@ -46,6 +46,7 @@ const description = (shell?: string) => "Rely on automatic truncation unless filtering the output is more useful.", "Commands still running after their timeout move to the background.", "Background commands return immediately, and you will be notified when they complete.", + "The current session ID is available in the OPENCODE_SESSION_ID environment variable.", ].join(" ") export const Input = Schema.Struct({