feat(tui): implement agent turn engine for background processing and enhance input handling

This commit is contained in:
asepharyana
2026-07-20 10:55:09 +07:00
parent da2ed6da25
commit 792695b65a
31 changed files with 603 additions and 153 deletions
+10 -3
View File
@@ -240,7 +240,9 @@ impl LlmClient {
StreamEvent::Token(_) | StreamEvent::Reasoning(_) => {
captured_content = true;
}
_ => {}
_ => {
tracing::debug!("unhandled stream event type in wrapped closure");
}
}
on_event(event)
};
@@ -373,7 +375,9 @@ impl LlmClient {
);
}
}
_ => {}
_ => {
tracing::debug!("unhandled stream event in apply_event: {event:?}");
}
}
}
@@ -441,7 +445,10 @@ impl LlmClient {
turn.done_received = true;
return Ok((turn.build_assistant_message(), usage));
}
_ => turn.apply_event(&event),
other => {
tracing::debug!("unhandled stream event type: {other:?}");
turn.apply_event(other);
}
}
}
}