feat: Replay session output when a user re-enters a session so all output can be seen again

This commit is contained in:
2026-07-02 16:35:10 -06:00
parent 385bd3eda2
commit 605a9170b0
3 changed files with 121 additions and 4 deletions
+7
View File
@@ -133,6 +133,13 @@ impl MessageContent {
}
}
pub fn as_text(&self) -> Option<&str> {
match self {
MessageContent::Text(text) => Some(text),
_ => None,
}
}
pub fn merge_prompt(&mut self, replace_fn: impl Fn(&str) -> String) {
match self {
MessageContent::Text(text) => *text = replace_fn(text),