fix(worker): sanitize report model arg, fix multi-repo summary attribution and standup-weekday sentinel
This commit is contained in:
@@ -27,6 +27,22 @@ public class ClaudeHistoryReaderTests : IDisposable
|
||||
|
||||
private static string Json(string s) => System.Text.Json.JsonSerializer.Serialize(s);
|
||||
|
||||
[Fact]
|
||||
public async Task SessionSpanningTwoRepos_KeepsLastSummaryPerRepo()
|
||||
{
|
||||
WriteSession("proj", "s.jsonl",
|
||||
AssistantLine(@"C:\Dev\Repos\A", "2026-06-01T08:00:00Z", "summary A"),
|
||||
AssistantLine(@"C:\Dev\Repos\B", "2026-06-01T09:00:00Z", "summary B"));
|
||||
|
||||
var reader = new ClaudeHistoryReader(_root);
|
||||
var result = await reader.ReadAsync(new DateOnly(2026, 6, 1), new DateOnly(2026, 6, 3),
|
||||
Array.Empty<string>());
|
||||
|
||||
Assert.Equal(2, result.Count);
|
||||
Assert.Equal(new[] { "summary A" }, result.Single(r => r.RepoPath.EndsWith("A")).Days.Single().Summaries);
|
||||
Assert.Equal(new[] { "summary B" }, result.Single(r => r.RepoPath.EndsWith("B")).Days.Single().Summaries);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Extracts_Prompts_And_Last_Assistant_Summary_GroupedByRepoAndDay()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user