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:
@@ -252,8 +252,13 @@ type Message struct {
|
||||
// ChatQueue is the session's server-held prompt queue: pushed as a
|
||||
// chat_queue frame when it changes and carried by the chat_subscribe and
|
||||
// chat_unqueue replies.
|
||||
ChatQueue *ChatQueueFrame `json:"chat_queue,omitempty"`
|
||||
ChatUnqueue *ChatUnqueueRequest `json:"chat_unqueue,omitempty"`
|
||||
ChatQueue *ChatQueueFrame `json:"chat_queue,omitempty"`
|
||||
// ChatTurnDiffList is the chat_turn_diffs push and the session's recent
|
||||
// turn summaries on a chat_messages reply; ChatTurnDiff is the
|
||||
// chat_turn_diff request and reply (see chat_turn_diff.go).
|
||||
ChatTurnDiffList *ChatTurnDiffList `json:"chat_turn_diffs,omitempty"`
|
||||
ChatTurnDiff *ChatTurnDiff `json:"chat_turn_diff,omitempty"`
|
||||
ChatUnqueue *ChatUnqueueRequest `json:"chat_unqueue,omitempty"`
|
||||
// ChatDirectories carries the operator's directory choices on a
|
||||
// chat_directories response (home first, then recent operator-session
|
||||
// directories, deduplicated and bounded). Additive/omitempty so older peers
|
||||
|
||||
Reference in New Issue
Block a user