Skip to content

Bug: summaryModel config override is ignored when resolving LCM summarizer #67

@uf-hy

Description

@uf-hy

When running lossless-claw via OpenClaw, setting a summarizer model override in config does not currently affect which model is used for LCM compaction summaries.

Repro

  1. Configure a summary model override, e.g.:
  • plugins.entries.lossless-claw.config.summaryModel = "openai-resp/gpt-5.1-codex-max" (runtime config)
    or
  • legacyParams.config.summaryModel = "openai-resp/gpt-5.1-codex-max"
  1. Trigger compaction (manual /compact or automatic compaction).
  2. Observe the summarizer still resolves to legacyParams.model (often the session/chat model).

Expected

If summaryModel is provided via config, it should take precedence over legacy provider/model hints.

Root cause

createLcmSummarizeFromLegacyParams currently only considers legacyParams.provider + legacyParams.model when calling deps.resolveModel(...), and ignores summaryModel from config.

Notes

When an explicit summaryModel override is provided, passing providerHint to resolveModel can also clobber a cross-provider model ref. In that case, providerHint should be omitted.

Related: #65

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions