mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
d673d7337c
- Add chain.jsonl rotation at session start when exceeding 200 lines (configurable via AGENTOPS_CHAIN_MAX_LINES), archiving excess to .agents/ao/archive/. Prevents unbounded growth that slows O(n) grep in 5 consumer hooks. - Cache .agents file count in AGENTS_FILE_COUNT variable, eliminating a duplicate find call in the prune check. - Remove ao-agents-check.sh (redundant with session-start.sh prune block) and deregister from hooks.json. - Fix stop-auto-handoff test assertion (wrong glob path). - Add kill-switch + fail-open tests for 9 previously uncovered ao-* hooks, achieving 100% hook coverage.