Token Optimizer 5.11.31
Cross-platform hook reliability and Codex/Copilot polish.
- Portable bash resolution in hooks. Hook commands now resolve
bashacross a minimal or emptyPATH(falling back to standard absolute locations), so plugin hooks run reliably in stripped hook environments on macOS, Linux, WSL, and Windows git-bash. The user's own Bash commands degrade gracefully to plain execution when compression can't be applied. - Codex SessionStart emits valid JSON. SessionStart context (checkpoint continuity, health) is now wrapped in the Codex hook envelope on both the bundled-bridge and marketplace paths, so Codex accepts it cleanly.
- Copilot install recovers
COPILOT_HOMEunder WSL. When--copilotis run as root under WSL, the installer now recovers aCOPILOT_HOMEset in the Windows environment and targets the correct Windows profile, with atimeout-guarded probe and root-scoped behavior. - Tiered continuity relevance. Prior-session hints now surface the full recovered-context block only for high-relevance matches; lower-relevance matches show a single-line teaser instead, keeping prompts lean. Thresholds are configurable via
TOKEN_OPTIMIZER_RELEVANCE_THRESHOLDandTOKEN_OPTIMIZER_RELEVANCE_FULL_THRESHOLD.