Compact a waiting worker's session before its prompt cache expires #587
Reference in New Issue
Block a user
Delete Branch "item-310"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While an interrupt waits on the human, loop-claude starts a timer 10 minutes short of the worker's hour-long prompt cache. If no answer has come when it fires, it compacts the session with
claude -p /compact --resume, then keeps waiting. It skips the timer under 60k tokens of context, on a five-minute cache, and where claude opens on the terminal at once. A probe confirmed that a headless/compacton a resumed session compacts it (compact_result: success, acompact_boundaryin the same session).WIP: Compact a waiting worker's session shortly before its prompt cache expiresto Compact a waiting worker's session before its prompt cache expires