github alexgreensh/token-optimizer v5.11.21

3 hours ago

v5.11.21 — Codex hooks survive version upgrades (#75)

Fixes a regression where upgrading the Codex plugin broke every tool call. The installer baked the marketplace's versioned install directory (.../token-optimizer/<X.Y.Z>/) straight into ~/.codex/hooks.json. When a newer version installed, that directory was removed, so the hook command pointed at a missing path and every Codex tool call failed.

The hook command now resolves the newest installed version at runtime from the stable parent directory (semver-filtered, sort -V), with the baked path as a fallback. Non-marketplace installs (dev / install.sh) are unchanged.

If you're already affected: run codex-install once after updating to pick up the self-healing hook. Future upgrades won't break.

Thanks to @amirfish1 for the precise root-cause report (#75).

Don't miss a new token-optimizer release

NewReleases is sending notifications on new releases.