bxcore: a turn's speaker, SessionUpdated's turn, the session-state messages
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
@@ -221,7 +221,7 @@ impl Index {
|
||||
return Ok(());
|
||||
}
|
||||
match record {
|
||||
LogRecord::User { time, content } if !content.trim().is_empty() => {
|
||||
LogRecord::User { time, content, .. } if !content.trim().is_empty() => {
|
||||
let src = Source {
|
||||
time: time.to_rfc3339(),
|
||||
role: "owner".to_string(),
|
||||
|
||||
@@ -143,6 +143,7 @@ fn recall_finds_old_sessions_updated_ones_and_notes() {
|
||||
append(&log, &user(2, "the launch is Thursday"));
|
||||
let update = Message::SessionUpdated(SessionUpdated {
|
||||
session: SessionId::new("mm-b").unwrap(),
|
||||
turn: 1,
|
||||
});
|
||||
assert_eq!(ask(&r.config.loop_socket(), update), Message::Ok(Empty {}));
|
||||
call(
|
||||
|
||||
@@ -14,6 +14,7 @@ pub fn user(minute: u32, content: &str) -> LogRecord {
|
||||
LogRecord::User {
|
||||
time: at(minute),
|
||||
content: content.to_string(),
|
||||
speaker: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user