MiMo-Code
MiMo-Code copied to clipboard
distill.auto/dream.auto silently ignored when configured as enabled/intervalDays — auto-dream & auto-distill never run
Summary
Setting "dream": { "enabled": true, "intervalDays": 7 } and "distill": { "enabled": true, "intervalDays": 30 } (camelCase, intuitive names) has no effect: auto-dream and auto-distill never trigger, with zero warnings or log output. The extra keys are rejected silently.
Root cause (verified against the published schema and the bundled binary)
- Schema (
https://mimo.xiaomi.com/mimocode/config.json):dreamanddistillaccept exactly two keys each —auto(boolean, default false) andinterval_days(integer, defaults 7 / 30) — withadditionalProperties: false. - Runtime (v0.1.12, extracted from the shipped binary): both gates read only
config.distill?.auto === trueandconfig.distill?.interval_days ?? 30(same fordream). There is no default fallback forauto, and no log line when it is absent/false. - Therefore
enabled/intervalDaysare dropped by schema validation,autoisundefined, and both workflows are permanently skipped at every new session.
Why this bites
- The wrong key names look natural:
enabled/intervalDays(camelCase) are guessable-but-wrong for anyone coming from other tools or from thedream/distillmarkdown docs defaults. Nothing validates or warns at startup. - Because the gate is a silent
auto === truecheck with a falsy default, it is easy to believe the feature is on while it is permanently off.
Suggested fixes
- Backward-compatible aliases (preferred): accept
enabled→autoand/or camelCaseintervalDays→interval_daysas legacy spellings. - Warn on unknown keys: when
distill.*/dream.*contains an unrecognized key, emit a visible warning (config validation or/status). - Log when auto workflows are disabled: a one-line info log at session start when
autois false would make this diagnosable.
Environment
mimov0.1.12 (Windows x64, installed via@mimo-ai/cli)- Config file:
mimocode.jsonc(behaviour identical regardless ofMIMOCODE_HOME/XDG location)
Repro
{
"dream": { "enabled": true, "intervalDays": 7 },
"distill": { "enabled": true, "intervalDays": 30 }
}
Expected: auto-dream / auto-distill run per interval. Actual: never scheduled, no warning anywhere. Renaming the keys to auto + interval_days fixes it — the config keys are silently ignored in v0.1.12.