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

This commit is contained in:
asepharyana committed 2026-07-20 10:55:09 +07:00
1 parent da2ed6da25
commit 792695b65a
31 files changed
+603 -153

No files matched your search

@@ -55,8 +55,12 @@ impl LoopbackServer {
Missing authorization code."
}
};
let _ = stream.write_all(response.as_bytes());
let _ = stream.flush();
if let Err(e) = stream.write_all(response.as_bytes()) {
tracing::warn!("OAuth loopback write error: {e}");
}
if let Err(e) = stream.flush() {
tracing::warn!("OAuth loopback flush error: {e}");
}
if !state_ok {
return Err(std::io::Error::new(
std::io::ErrorKind::InvalidData,