MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

distill.auto/dream.auto silently ignored when configured as enabled/intervalDays — auto-dream & auto-distill never run

Open NMDX0721 opened this issue 3 months ago • 0 comments

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): dream and distill accept exactly two keys each — auto (boolean, default false) and interval_days (integer, defaults 7 / 30) — with additionalProperties: false.
  • Runtime (v0.1.12, extracted from the shipped binary): both gates read only config.distill?.auto === true and config.distill?.interval_days ?? 30 (same for dream). There is no default fallback for auto, and no log line when it is absent/false.
  • Therefore enabled / intervalDays are dropped by schema validation, auto is undefined, 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 the dream/distill markdown docs defaults. Nothing validates or warns at startup.
  • Because the gate is a silent auto === true check with a falsy default, it is easy to believe the feature is on while it is permanently off.

Suggested fixes

  1. Backward-compatible aliases (preferred): accept enabled → auto and/or camelCase intervalDays → interval_days as legacy spellings.
  2. Warn on unknown keys: when distill.* / dream.* contains an unrecognized key, emit a visible warning (config validation or /status).
  3. Log when auto workflows are disabled: a one-line info log at session start when auto is false would make this diagnosable.

Environment

  • mimo v0.1.12 (Windows x64, installed via @mimo-ai/cli)
  • Config file: mimocode.jsonc (behaviour identical regardless of MIMOCODE_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.

NMDX0721 avatar Aug 15 '26 15:08 NMDX0721