fix(central-ui,cli): Flow Debugger client waits derive from the method timeout / wait window instead of a fixed 2 minutes (arch-review F4)

Claude-Session: https://claude.ai/code/session_01NcMG6xXdsJbmD2wYAgkK29
This commit is contained in:
Joseph Doherty
2026-09-06 14:13:02 -04:00
parent cccef7b2f4
commit 97b0a4ba16
5 changed files with 111 additions and 17 deletions
@@ -318,6 +318,24 @@ public sealed class FlowDebugServiceTests : IDisposable
Assert.Contains("Deployer", envelope.User.Roles);
}
[Theory]
[InlineData(180, 205)]
[InlineData(1, 30)]
public void RunAskTimeoutFor_IsMethodTimeoutPlusRunGracePlusClientSlack_FlooredAtMinRunAskTimeout(int timeoutSeconds, int expectedSeconds)
{
var timeout = FlowDebugService.RunAskTimeoutFor(timeoutSeconds);
Assert.Equal(TimeSpan.FromSeconds(expectedSeconds), timeout);
}
[Fact]
public void ValueChangeAskTimeoutFor_IsWaitSecondsPlusClientSlack()
{
var timeout = FlowDebugService.ValueChangeAskTimeoutFor(45);
Assert.Equal(TimeSpan.FromSeconds(60), timeout);
}
[Fact]
public async Task RunValueChange_AndReplay_SendTheirCommands()
{