diff --git a/SalmonEgg/SalmonEgg/Presentation/Diagnostics/AcpSetupRuntimePathProbeDriver.cs b/SalmonEgg/SalmonEgg/Presentation/Diagnostics/AcpSetupRuntimePathProbeDriver.cs index c25337c0..93296618 100644 --- a/SalmonEgg/SalmonEgg/Presentation/Diagnostics/AcpSetupRuntimePathProbeDriver.cs +++ b/SalmonEgg/SalmonEgg/Presentation/Diagnostics/AcpSetupRuntimePathProbeDriver.cs @@ -75,17 +75,16 @@ private static async Task RunAsync( var agentId = Environment.GetEnvironmentVariable("SALMONEGG_ACP_SETUP_PATH_AGENT") ?? "qwen-code"; var row = wizard.Agents.Single(candidate => candidate.AgentId == agentId); wizard.SelectedAgent = row; + // Selecting a missing-runtime agent advances to the component step, whose runtime section now + // owns the path editor. The selection step no longer carries it. await wizard.GoNextCommand.ExecuteAsync(null).WaitAsync(token).ConfigureAwait(true); - var list = (ListView)page.FindName("AcpSetupAgentsList"); - list.ScrollIntoView(row); - // This gate's preconditions are read from the rendered wizard: the selection step's - // panel is the visible step surface, the row wears its missing verdict, and the busy - // affordance is idle. The view-model flags behind those surfaces are not consulted. - // Scrolling happens first because a virtualized row renders nothing while off-screen. - await WaitForAsync(() => Find(shellRoot, element => element.Name == "AgentSelectionPanel" + // This gate's preconditions are read from the rendered wizard: the component step's panel is + // the visible step surface, the runtime wears its missing verdict, and the busy affordance is + // idle. The view-model flags behind those surfaces are not consulted. + await WaitForAsync(() => Find(shellRoot, element => element.Name == "ComponentSetupPanel" && IsVisible(element)), token).ConfigureAwait(true); - await WaitForAsync(() => Find(shellRoot, element => - AutomationProperties.GetAutomationId(element) == "AcpSetup.Agents.Missing" && IsVisible(element)), + await WaitForAsync(() => Find(shellRoot, element => + AutomationProperties.GetAutomationId(element) == "AcpSetup.Runtime.MissingBar" && IsVisible(element)), token).ConfigureAwait(true); if (Find