From b59b47bc4b00fe67a93f19ffbd68cddd4ab3b30d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 16:57:07 +0000 Subject: [PATCH 1/2] Initial plan From 8d1528dddc9172d9219b2c846d17bf3d2957644d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 17:04:21 +0000 Subject: [PATCH 2/2] Fix empty ArrayList collapse when tracking precondition warnings per step Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com> --- .../Private/ConvertTo-IdleWorkflowSteps.ps1 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/IdLE.Core/Private/ConvertTo-IdleWorkflowSteps.ps1 b/src/IdLE.Core/Private/ConvertTo-IdleWorkflowSteps.ps1 index 218f7a70..2248e0e8 100644 --- a/src/IdLE.Core/Private/ConvertTo-IdleWorkflowSteps.ps1 +++ b/src/IdLE.Core/Private/ConvertTo-IdleWorkflowSteps.ps1 @@ -128,8 +128,17 @@ function ConvertTo-IdleWorkflowSteps { $null } - $planWarnings = Get-IdlePropertyValue -Object $PlanningContext.Plan -Name 'Warnings' - $planWarningsCanTrackCount = $null -ne $planWarnings -and $null -ne $planWarnings.PSObject.Properties['Count'] + $planWarnings = $null + $planObj = $PlanningContext.Plan + if ($null -ne $planObj) { + if ($planObj -is [System.Collections.IDictionary]) { + if ($planObj.Contains('Warnings')) { $planWarnings = $planObj['Warnings'] } + } else { + $wProp = $planObj.PSObject.Properties['Warnings'] + if ($null -ne $wProp) { $planWarnings = $wProp.Value } + } + } + $planWarningsCanTrackCount = $planWarnings -is [System.Collections.IList] $warningCountBefore = if ($planWarningsCanTrackCount) { [int]$planWarnings.Count } else { 0 } $preconditionSettings = ConvertTo-IdleWorkflowStepPreconditionSettings -Step $s -StepName $stepName -PlanningContext $PlanningContext