Send a head start of the response immediately before dripping

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
TomandClaude Sonnet 5.5 committed 2026-11-16 22:54:03 +01:00
1 parent 13a78f4268
commit e48b6bb832
17 files changed
+120 -8

No files matched your search

@@ -89,12 +89,13 @@ public sealed class SettingsOverrideTests : IDisposable
var store = host.Services.GetRequiredService<RuntimeSettingsStore>();
string[] holdKeys = [.. SettingKeys.HoldMethod];
await store.SaveAsync(new HoldMethodSettings(DripContent.Text, TimeSpan.FromMilliseconds(200), TimeSpan.FromSeconds(2), 8, 16, TimeSpan.FromMinutes(5)));
await store.SaveAsync(new HoldMethodSettings(DripContent.Text, TimeSpan.FromMilliseconds(200), TimeSpan.FromSeconds(2), 8, 16, 256, TimeSpan.FromMinutes(5)));
await store.SaveAsync(new RuntimeSettings(50, 4, 90, true));
drip.CurrentValue.Content.ShouldBe(DripContent.Text);
drip.CurrentValue.MinDelay.ShouldBe(TimeSpan.FromMilliseconds(200));
drip.CurrentValue.MaxChunkSize.ShouldBe(16);
drip.CurrentValue.HeadStartSize.ShouldBe(256);
core.CurrentValue.MaxHoldDuration.ShouldBe(TimeSpan.FromMinutes(5));
core.CurrentValue.MaxConnections.ShouldBe(50);
(await store.HasOverridesAsync(holdKeys)).ShouldBeTrue();