#4556
feat(dream): wire up model_override for Dream consolidation
Fixes #4029 — applies DreamConfig.model_override at runtime during periodic memory consolidation.
Fixes #4029 — applies DreamConfig.model_override at runtime during periodic memory consolidation.
Automated PR review by nanobot. This is not a human maintainer review or approval.
This PR wires up the
model_overridefield in DreamConfig (already present in schema as "pending implementation") in the CLI Dream cron path. Before Dream runs, it swapsagent.modelto the override; infinally, it restores the saved model.What's done well
if dream_model:guards both the set and restore, so no-op when unconfigured.No blocking issues found. One minor observation:
agent.model = dream_modelis a direct string assignment that bypasses any provider-level model validation. If the override string doesn't match a configured provider model, the error surfaces at API-call time during Dream rather than at config load. This is acceptable givenmodel_overrideis already validated as a string in the schema.