You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
features.ndc_compression is documented but read nowhere — setting it false does nothing #159
features.ndc_compression is documented in the README as a supported option, but the string appears nowhere in the code. Setting it to false has no effect: NDC compression runs anyway.
Compression runs regardless. The only thing that actually holds it back is the tmp/last-ndc.ts cooldown marker together with cooldowns.ndc_seconds — scripts/save-session.sh Step 8 gates on the marker alone and never consults the feature flag.
Why it matters
Someone who wants their now.md left alone — to read it raw, to debug what the summarizer is producing, or because they run their own compression — sets the documented option, sees it ignored, and has no signal as to why. The workaround (a far-future ndc_seconds plus a hand-written marker file) is not discoverable from the docs.
It also makes tests around save output awkward: anything asserting on now.md contents has to defeat the background compression by hand, since the documented brake does nothing.
Suggested fix
Gate Step 8 on the flag alongside the cooldown, matching the existing config ".key" default pattern used elsewhere in the script:
if [ "$(config '.features.ndc_compression' true)"!="true" ];then
RUN_NDC=false
fi
Defaults to true, so nothing changes for anyone who has not set it.
Worth a test that sets the flag to false and asserts no [ndc] line is logged — the failure mode here is silence, which is how it went unnoticed.
Notes
Found while writing tests for #136: a test asserting a rejected entry never reached memory passed against unfixed code, because compression had already moved the junk out of now.md and into today-*.md. The flag was set to false in that fixture and did nothing.
Activity
fix(config): a false boolean is a value, not a missing key (#159) (#165)
fix(config): wire the option that did nothing, document the ones that…
fix(config): wire the option that did nothing, document the ones that…
fix(config): wire the option that did nothing, document the ones that…
fix(config): wire the option that did nothing, document the ones that…
perf(config): read the merged config once, not once per key (20 → 16 …
Bound the marker's range, not just its syntax — and let a check do th…