diff --git a/src/SopHelper.Avalonia/VVMs/RecipeEditor/RecipeEditor.axaml b/src/SopHelper.Avalonia/VVMs/RecipeEditor/RecipeEditor.axaml
index f79a317..d5e884d 100644
--- a/src/SopHelper.Avalonia/VVMs/RecipeEditor/RecipeEditor.axaml
+++ b/src/SopHelper.Avalonia/VVMs/RecipeEditor/RecipeEditor.axaml
@@ -11,21 +11,25 @@
-
-
-
-
-
-
-
+
+
-
-
-
-
+
+
+
+
+
+
+
@@ -52,17 +56,14 @@
-
-
-
-
-
-
+
+
+
-
+
@@ -107,179 +108,138 @@
-
-
-
+
+
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
-
-
-
+
+
+
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/tests/VideoFlowTest.Smoke/Program.cs b/tests/VideoFlowTest.Smoke/Program.cs
index 64f1b7a..03a7fb4 100644
--- a/tests/VideoFlowTest.Smoke/Program.cs
+++ b/tests/VideoFlowTest.Smoke/Program.cs
@@ -165,6 +165,11 @@ internal static class Program
var view = new RecipeEditor { DataContext = vm };
var window = new Window { Content = view, Width = 1040, Height = 760 }; window.Show(); window.UpdateLayout();
var stepVideo = view.FindControl("StepVideoViewport")!;
+ var parameters = view.FindControl("StepParameters")!;
+ Check(parameters.Bounds.Width > window.Bounds.Width * .30 && parameters.Bounds.Width < window.Bounds.Width * .37
+ && parameters.Extent.Width <= parameters.Viewport.Width + 1,
+ "Parameters occupy 35 percent and fit without horizontal scrolling");
+
Check(stepVideo.Bounds.Width >= window.Bounds.Width * .44 && stepVideo.Bounds.Width <= window.Bounds.Width * .53,
"Step video occupies half the available editor width");
@@ -266,6 +271,13 @@ internal static class Program
"Video and frame detection continue while AI is still pending");
Until(() => playback.IsAtEnd);
Check(!fake.Result.Task.IsCompleted && !test.IsCompleted && ids.Last() > ids.First(), "Video reaches EOF without waiting for AI or reporting premature success");
+ // EOF可能发生在首次送检后不足500ms,明确等待请求过期后再模拟迟到结果。
+ var remainingDeadline = RealtimeDecisionPolicy.DeadlineMs - RealtimeDecisionPolicy.Elapsed(fake.Request!.StartedTimestamp);
+ if (remainingDeadline > 0)
+ {
+ using var deadlineWait = new CancellationTokenSource(TimeSpan.FromMilliseconds(remainingDeadline + 30));
+ Dispatcher.UIThread.MainLoop(deadlineWait.Token);
+ }
fake.Result.SetResult(new(true, .99, "盒内可见零件"));
Pump(test.FinishPendingDecisionAsync());
Check(!test.IsCompleted, "Late background result after EOF cannot bypass the 500ms deadline");