From 57379cf693ea72d418f46818483299880b4d94f1 Mon Sep 17 00:00:00 2001 From: Terada Kousuke Date: Thu, 9 Apr 2026 01:05:59 +0900 Subject: [PATCH] =?UTF-8?q?fix(guardrails):=20bashData=20=E2=86=92=20data?= =?UTF-8?q?=20=E2=80=94=20ReferenceError=20in=20workflow=20phase=20transit?= =?UTF-8?q?ions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/guardrails/profile/plugins/guardrail.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/guardrails/profile/plugins/guardrail.ts b/packages/guardrails/profile/plugins/guardrail.ts index 2df56a87c122..1cb8f11ff233 100644 --- a/packages/guardrails/profile/plugins/guardrail.ts +++ b/packages/guardrails/profile/plugins/guardrail.ts @@ -1544,7 +1544,7 @@ export default async function guardrail(input: { if (item.tool === "bash") { const cmd = str(item.args?.command) const output = str(out.output) - const currentPhase = str(bashData.workflow_phase) + const currentPhase = str(data.workflow_phase) const pipelineActive = currentPhase && currentPhase !== "idle" && currentPhase !== "done" && currentPhase !== "blocked" // PR creation detection — only when implementing