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

@@ -36,7 +36,13 @@ impl Tool for LspDiagnostics {
let language = crate::tools::arg_str(args, "language")?;
let path = crate::tools::arg_str(args, "path")?;
let manager = ctx.lsp_manager.lock().unwrap();
let manager = match ctx.lsp_manager.lock() {
Ok(g) => g,
Err(poisoned) => {
tracing::error!("LSP manager mutex poisoned, recovering");
poisoned.into_inner()
}
};
if let Some(client) = manager.get_client(&language) {
let result = client.send_request("textDocument/diagnostic", &json!({
"textDocument": { "uri": format!("file://{}", path) }