events: LiveEvent::Note becomes struct variant so serde can actually serialize it
This commit is contained in:
parent
aa24080f7b
commit
b60774a66c
5 changed files with 46 additions and 29 deletions
|
|
@ -136,7 +136,9 @@ async fn serve(
|
|||
} else {
|
||||
tracing::info!(%from, %body, "system message");
|
||||
}
|
||||
bus.emit(LiveEvent::Note(format!("[system] {body}")));
|
||||
bus.emit(LiveEvent::Note {
|
||||
text: format!("[system] {body}"),
|
||||
});
|
||||
// Fall through: drive a turn with the event in the wake
|
||||
// prompt body so claude sees it. Sender stays "system"
|
||||
// so the wake prompt can label it as such.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue