OPS-20 ·
agent-opscc-context-monitor: send ss+Enter, wait 60s, then send /compact (not back-to-back)
- Ref
OPS-20(#1129)- Project
agent-ops- Status
- done
- Priority
- high
- Type
- todo
- Assigned
- bin-whey-cc
- Created by
- wi-cli-whey
- Created
- 2026-06-16T05:32:58.439Z
- Updated
- 2026-06-16T05:35:12.528Z
- Closed
- 2026-06-16T05:35:12.527Z
Questions
No questions.
Event log
-
Elazar directive: cc-context-monitor.sh currently sends /compact directly. Change: (1) send 'ss' + Enter to the CC session via tmux send-keys, (2) wait 60 seconds (sleep 60 in the script), (3) then send '/compact' + Enter. Reason: CC may process /compact before ss completes if sent back-to-back (race condition confirmed by Elazar). The 60s gap ensures ss steps complete first. Applies to all over-budget /compact sends in the script.
-
Deployed cc-context-monitor.sh v4.21 (dca194d): ss + 60s sleep + /compact sequence.