zed-industries/zed · error
this cloud model does not support explicit compaction
Error message
this cloud model does not support explicit compaction
What it means
Guard in the cloud model's compaction path: supports_server_side_compaction was consulted for a model whose provider is not OpenAi/Anthropic or which lacks the server-side compaction flag, so explicit compaction is refused for this cloud model.
Source
Thrown at crates/language_models_cloud/src/language_models_cloud.rs:602
fn supports_images(&self) -> bool {
self.model.supports_images
}
fn supports_thinking(&self) -> bool {
self.model.supports_thinking
}
fn supports_disabling_thinking(&self) -> bool {
self.model.supports_disabling_thinking
}
fn supports_fast_mode(&self) -> bool {
self.model.supports_fast_mode
}
fn supports_server_side_compaction(&self) -> bool {
self.model.supports_server_side_compaction
}
fn supports_explicit_compaction(&self) -> bool {
matches!(
self.model.provider,
cloud_llm_client::LanguageModelProvider::OpenAi
| cloud_llm_client::LanguageModelProvider::Anthropic
) && self.model.supports_server_side_compaction
}
fn minimum_explicit_compaction_input_tokens(&self) -> Option<u64> {
(self.model.provider == cloud_llm_client::LanguageModelProvider::Anthropic
&& self.supports_explicit_compaction())
.then_some(anthropic::MIN_COMPACTION_TRIGGER_TOKENS)
}
fn compact(
&self,
request: LanguageModelRequest,View on GitHub (pinned to 5a9b9558db)
Solutions
- Select a Zed Cloud model (OpenAI/Anthropic) that supports server-side compaction
- Use client-side context management for other cloud models
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/language_models_cloud/src/language_models_cloud.rs:601 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@5a9b9558db (2026-08-20).
Data as JSON: /api/errors/bb2b0344f6e21f8d.
Report an issue: GitHub.