From cb1d939750f8ee8741a0bff9c25be4b21a1d656c Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Sun, 7 Dec 2025 17:25:29 -0500 Subject: [PATCH] refactor: Append runtime information to context hook output --- src/hooks/context-hook.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/context-hook.ts b/src/hooks/context-hook.ts index dacf7bdf..dc3a25b7 100644 --- a/src/hooks/context-hook.ts +++ b/src/hooks/context-hook.ts @@ -26,7 +26,8 @@ async function contextHook(input?: SessionStartInput): Promise { const port = getWorkerPort(); const url = `http://127.0.0.1:${port}/api/context/inject?project=${encodeURIComponent(project)}`; const result = execSync(`curl -s "${url}"`, { encoding: "utf-8", timeout: 5000 }); - return result; + const runtime = process.title.includes('bun') ? 'bun' : 'node'; + return result + "\n\n [Executed with " + runtime + " runtime]"; } // Entry Point - handle stdin/stdout