mind: zero UiMessages from Mind's run loop
UserInput display moved to UI diff — when MindState.input goes from populated to empty (consumed by a turn), the UI displays it. Mind no longer sends any UiMessage from its event loop. Remaining UiMessages are only in the startup function (one-time init info). Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
84fe757260
commit
3ee1aa69b0
2 changed files with 5 additions and 3 deletions
|
|
@ -246,9 +246,6 @@ impl Mind {
|
|||
);
|
||||
}
|
||||
MindCommand::Turn(input, target) => {
|
||||
if target == StreamTarget::Conversation {
|
||||
let _ = self.ui_tx.send(UiMessage::UserInput(input.clone()));
|
||||
}
|
||||
self.shared.lock().unwrap().turn_active = true;
|
||||
let _ = self.turn_watch.send(true);
|
||||
let agent = self.agent.clone();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue