So the practical workaround is to set model_auto_compact_token_limit very near, but still below, the model’s context window. This postpones compaction rather than disabling it.
config.toml
model_context_window = 27000 model_auto_compact_token_limit = 17000 model_auto_compact_token_limit_scope = "total"