From 1966e5222399c7f4b64d3c922244d71b3af83cd3 Mon Sep 17 00:00:00 2001 From: ericzakariasson Date: Tue, 3 Mar 2026 09:24:59 -0800 Subject: [PATCH] Remove --trial flag from continual-learning hook Made-with: Cursor --- continual-learning/hooks/continual-learning-stop.ts | 10 +++++----- continual-learning/hooks/hooks.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/continual-learning/hooks/continual-learning-stop.ts b/continual-learning/hooks/continual-learning-stop.ts index 0bfcc81..4555ddd 100644 --- a/continual-learning/hooks/continual-learning-stop.ts +++ b/continual-learning/hooks/continual-learning-stop.ts @@ -143,7 +143,7 @@ async function parseHookInput(): Promise { return JSON.parse(text) as T; } -async function main(args: string[]): Promise { +async function main(): Promise { try { const input = await parseHookInput(); const state = loadState(); @@ -159,9 +159,9 @@ async function main(args: string[]): Promise { const turnsSinceLastRun = state.turnsSinceLastRun + turnIncrement; const now = Date.now(); - const trialEnabled = - args.includes("--trial") || - parseBoolean(readEnvValue("CONTINUAL_LEARNING_TRIAL_MODE", "CONTINUOUS_LEARNING_TRIAL_MODE")); + const trialEnabled = parseBoolean( + readEnvValue("CONTINUAL_LEARNING_TRIAL_MODE", "CONTINUOUS_LEARNING_TRIAL_MODE") + ); if (trialEnabled && countedTurn && state.trialStartedAtMs === null) { state.trialStartedAtMs = now; } @@ -243,5 +243,5 @@ async function main(args: string[]): Promise { } } -const exitCode = await main(process.argv.slice(2)); +const exitCode = await main(); process.exit(exitCode); diff --git a/continual-learning/hooks/hooks.json b/continual-learning/hooks/hooks.json index 690c86c..6be2b9c 100644 --- a/continual-learning/hooks/hooks.json +++ b/continual-learning/hooks/hooks.json @@ -3,7 +3,7 @@ "hooks": { "stop": [ { - "command": "bun run ./hooks/continual-learning-stop.ts --trial" + "command": "bun run ./hooks/continual-learning-stop.ts" } ] }