Record each chat turn's workspace changes for every harness

Snapshot the chat directory with internal/filediff when a turn starts and
compare it when the turn ends; store changed turns (newest 100 per chat),
push chat_turn_diffs summaries, attach them to chat_messages replies and
serve one turn's patches through chat_turn_diff.
This commit is contained in:
2026-11-09 16:08:35 +00:00
parent 57679d9591
commit 0696ab849a
12 changed files with 798 additions and 2 deletions
+3
View File
@@ -261,6 +261,9 @@ func handleChat(ctx context.Context, request protocol.Message, broker chatBroker
case protocol.ChatAutomations:
handleChatAutomations(ctx, request, broker, registry, write)
return true
case protocol.ChatTurnDiffRequest:
handleChatTurnDiff(ctx, request, hub, write)
return true
}
return false
}