Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

agent: Log thread title generation errors (#50504)

Ben Kunklebb6c52bd5e90
diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs
index a63437e9e48..9a259ecf6a9 100644
--- a/crates/agent/src/thread.rs
+++ b/crates/agent/src/thread.rs
@@ -2390,7 +2390,12 @@ impl Thread {
anyhow::Ok(())
};
- if generate.await.context("failed to generate title").is_ok() {
+ if generate
+ .await
+ .context("failed to generate thread title")
+ .log_err()
+ .is_some()
+ {
_ = this.update(cx, |this, cx| this.set_title(title.into(), cx));
}
_ = this.update(cx, |this, _| this.pending_title_generation = None);