Dashboard › opencode › Distillation
6cd2fe0c-5c92-4a7d-8388-3e8bde5b9f30["lore_tm_v1_cHQO4IO5f4yzBVGYAWwnqdqFn49hW-3NWbx6LVyGXNY"]
/home/byk/Code/opencode-v2-pilot/packages/core/src/config/normalize.ts lines 320-359 normalize compaction: absent compaction returns immediately; non-record values call invalid(["compaction"], diagnostics); tail_turns and prune are rejected via unsupportedIfPresent(...)./home/byk/Code/opencode-v2-pilot/packages/core/src/config/normalize.ts lines 330-339 decode compaction.auto with decodeEncoded(ConfigCompaction.Info.fields.auto, input.compaction.auto, ["compaction", "auto"], diagnostics) and add result.auto only when the decoded value is not undefined./home/byk/Code/opencode-v2-pilot/packages/core/src/config/normalize.ts lines 340-359 support legacy compaction.preserve_recent_tokens and native compaction.keep.tokens, decoding both against ConfigCompaction.Keep.fields.tokens; a present non-record compaction.keep is invalid, and prefer(legacyTokens, nativeTokens, ["compaction", "keep", "tokens"], diagnostics) resolves the token value.