mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 16:21:34 +00:00
* [AI] fix(session-memory): forward hook config model to LLM slug generator When llmSlug is enabled with a model override in the session-memory hook config, that model was ignored — slug generation always resolved the agent default model via resolveDefaultModelForAgent. Add an optional model parameter to generateSlugViaLLM and pass hookConfig.model from the session-memory handler. When a hook model is provided, only the model is forwarded (provider is omitted) so runEmbeddedAgent's built-in resolveInitialEmbeddedRunModel chain handles alias, provider-qualified ref, and bare-name resolution through a single source of truth — avoiding the routing drift that blocked prior PRs. Fixes #89551 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(session-memory): centralize slug model resolution Honor the session-memory slug model override while keeping default, alias, and provider-qualified model selection in the embedded runner. Co-authored-by: SunnyShu <shu.zongyu@xydigit.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>