Skip to content

v1.20.4 — review fixes and hardening

Choose a tag to compare

@carlslin carlslin released this 17 Nov 15:26
· 8 commits to main since this release

1.20.4 — review fixes and hardening

Review fixes

  • MCP tool advice names the tool in Chinese copy (gh/search).
  • Edit impact counts failed loads as failures (degraded, not improved).
  • The last step of a turn is flushed even when no skill window opened.
  • The dead-load noise gate resamples the same root/evicted base as abandonRate.
  • loadErrors is capped at five messages; the failed count is unchanged.
  • A cleared numeric setting is an error, not a silent zero; a saved settings.json is validated before it is applied.

Telemetry hardening

  • events.jsonl is bounded at 8 MB. Rotation keeps dropped-prefix edit records (up to a quarter of the cap) ahead of the newest suffix, and the trimmed file is at most half the cap.
  • Appends serialize across processes through events.jsonl.lock (a 10 s stale lock is a crash leftover), so two hosts sharing one data dir no longer lose records to a replaced inode.
  • New data directories are 0700, every file inside is 0600, and an existing directory keeps the mode the user gave it. Leftover .tmp files cannot leak a stale mode.
  • /data, the board and the config page return a fixed message on 500 and log the detail instead of echoing it.
  • view:"dev" reports rejected saved settings (settingsErrors + the settings-invalid finding).

Tests: 279 passing (npm test).