Merge branch 'claudedo/b346a534f0fc4635bd7614a00ab2a20e'

This commit is contained in:
mika kuns
2026-09-02 20:55:43 +02:00
18 changed files with 840 additions and 10 deletions
@@ -74,14 +74,20 @@ public sealed class InteractiveLaunchSpecServiceTests : IDisposable
}
private InteractiveLaunchSpecService BuildService(
HandoffRoundTracker? handoffRounds = null, DateTime? now = null) =>
HandoffRoundTracker? handoffRounds = null, HandlerRoundState? roundState = null, DateTime? now = null) =>
new(_db.CreateFactory(), _seeder, _registry,
new WorktreeManager(new GitService(), _db.CreateFactory(), new WorkerConfig(), NullLogger<WorktreeManager>.Instance),
new GitService(),
new WorkerConfig { ClaudeBin = _claudeStubPath },
handoffRounds ?? new HandoffRoundTracker(),
roundState ?? NewRoundState(),
now is { } t ? () => t : null);
// Never the live ~/.claudeDo/handler-rounds.json -- a test run would otherwise write real
// handler rounds into the running app's state.
private HandlerRoundState NewRoundState() =>
new(Path.Combine(_tempDir, $"handler-rounds-{Guid.NewGuid():N}.json"));
private async Task<string> SeedListAsync(string? workingDir = null, string name = "L")
{
var listId = Guid.NewGuid().ToString();