Skip to content

v1.0.14 — statusline & hook reliability

Latest

Choose a tag to compare

@D2Strategy D2Strategy released this 27 Jun 03:56
· 26 commits to main since this release

Zikra v1.0.14 — statusline & hook reliability

Fixes the intermittent statusline (0 runs / 0 memories) and session-hook stalls.

Fixed

  • Atomic statusline cache writes — per-process temp file (.tmp.<pid>) + fsync + os.replace. The reader can never see a half-written cache, even if the Stop hook is killed mid-write, and concurrent Stop hooks no longer collide.
  • Bounded hook network calls — every stats-updater curl uses --max-time 3 / --connect-timeout 2 (GitHub check 3s); the autolog diary POST gains --max-time 20. A slow/unreachable server can no longer hang a hook.
  • Statusline self-heal — keeps a last-good .bak snapshot and falls back to it instead of rendering zeros on a corrupt or mid-write cache.
  • Duplicate Stop hook removed — the autolog diary no longer runs twice per session.

Changed

  • installer.py installs zikra-stats-update.sh and normalizes the statusLine + Stop + PreCompact wiring (idempotent, de-duplicating) — full-statusline parity with the GitHub setup prompt.

Upgrade

Existing users: re-run the Claude Code setup prompt. New users: automatic. No data migration.