fix(worker): sanitize report model arg, fix multi-repo summary attribution and standup-weekday sentinel

This commit is contained in:
mika kuns
2026-06-03 10:22:06 +02:00
parent 0bc3d2a6c4
commit a8d8a8bd65
5 changed files with 31 additions and 3 deletions

View File

@@ -79,6 +79,14 @@ public sealed class ClaudeHistoryReader : IClaudeHistoryReader
}
else
{
// Keep only the closing summary per (repo, day). If this turn moved to a
// different repo/day (e.g. the session cd'd), flush the previous one first.
if (lastAssistantText is not null &&
(cwd != lastAssistantRepo || date != lastAssistantDate))
{
Bucket(buckets, lastAssistantRepo!, lastAssistantDate).Summaries.Add(lastAssistantText);
lastAssistantText = null;
}
lastAssistantText = text.Trim();
lastAssistantRepo = cwd;
lastAssistantDate = date;