fix: add compaction model fallback (#74470)

* fix: add compaction model fallback

* docs: add compaction changelog pr reference

* docs: add compaction changelog author

* docs: satisfy compaction changelog attribution

* fix: preserve compaction fallback metadata

* fix: satisfy compaction fallback lint

* docs: move compaction fallback changelog entry
This commit is contained in:
Josh Lehman
2026-05-01 12:15:16 -07:00
committed by GitHub
parent b119cefae2
commit c098846148
14 changed files with 395 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ This works with local models too, for example a second Ollama model dedicated to
}
```
When unset, compaction uses the agent's primary model.
When unset, compaction starts with the active session model. If summarization fails with a model-fallback-eligible provider error, OpenClaw retries that compaction attempt through the session's existing model fallback chain. The fallback choice is temporary and is not written back to session state. An explicit `agents.defaults.compaction.model` override remains exact and does not inherit the session fallback chain.
### Identifier preservation