mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-29 20:30:00 +08:00
When the user switches model via the model picker, hermes_update_model rewrites model.default and model.provider in config.yaml but historically left model.context_length untouched. The Hermes kernel (8ac351407, May 2026) now actively clears that field on model switch because the previous model's context window almost never matches the new model — leaving the stale value caused 'context too large' errors and silently truncated output. Mirror the upstream behavior by dropping the context_length line as we walk the model: block, so Hermes falls back to the new model's default window.