huskies: merge 1186 story compact chat command: distill session context deterministically, then reset with a seed
This commit is contained in:
@@ -134,6 +134,7 @@ pub(super) async fn handle_llm_message(
|
||||
Ok(ClaudeCodeResult {
|
||||
messages,
|
||||
session_id,
|
||||
..
|
||||
}) => {
|
||||
let reply = if !remaining.is_empty() {
|
||||
let _ = msg_tx.send(remaining.clone());
|
||||
|
||||
@@ -416,6 +416,7 @@ mod tests {
|
||||
sender: sender.to_string(),
|
||||
content: "previous message".to_string(),
|
||||
}],
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
m
|
||||
|
||||
@@ -153,6 +153,7 @@ mod tests {
|
||||
content: "hi there!".to_string(),
|
||||
},
|
||||
],
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
|
||||
@@ -200,6 +201,7 @@ mod tests {
|
||||
sender: "111".to_string(),
|
||||
content: "msg1".to_string(),
|
||||
}],
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
history.insert(
|
||||
@@ -211,6 +213,7 @@ mod tests {
|
||||
sender: "222".to_string(),
|
||||
content: "msg2".to_string(),
|
||||
}],
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user