diff --git a/crates/assistant2/src/history_store.rs b/crates/assistant2/src/history_store.rs index 169f7561a138ac2d1fb632338c64edd8ccaddf8f..49f935314dd673ad016e572e732e16a43fb15120 100644 --- a/crates/assistant2/src/history_store.rs +++ b/crates/assistant2/src/history_store.rs @@ -43,6 +43,11 @@ impl HistoryStore { pub fn entries(&self, cx: &mut Context) -> Vec { let mut history_entries = Vec::new(); + #[cfg(debug_assertions)] + if std::env::var("ZED_SIMULATE_NO_THREAD_HISTORY").is_ok() { + return history_entries; + } + for thread in self.thread_store.update(cx, |this, _cx| this.threads()) { history_entries.push(HistoryEntry::Thread(thread)); } diff --git a/crates/language_model/src/registry.rs b/crates/language_model/src/registry.rs index c3c6b3bb036a59bfc11d8f70aee5363da580558d..0c7d3f167f84f68e6e8470cb695d9c57d6389017 100644 --- a/crates/language_model/src/registry.rs +++ b/crates/language_model/src/registry.rs @@ -203,6 +203,11 @@ impl LanguageModelRegistry { } pub fn active_provider(&self) -> Option> { + #[cfg(debug_assertions)] + if std::env::var("ZED_SIMULATE_NO_LLM_PROVIDER").is_ok() { + return None; + } + Some(self.active_model.as_ref()?.provider.clone()) }