Expand description
Sticky CCR tool injection for provider prefix-cache stability.
Once a conversation has seen at least one CCR handle, the ctx_expand tool
definition stays in tools[] for the remainder of the session, even on turns
with no active markers. This prevents the tool-list change from busting the
provider prompt-cache prefix.
Functionsยง
- ensure_
tool_ present - Ensure
ctx_expandis present in thetoolsarray when CCR is active. Returnstrueif the tool was injected. - is_
ccr_ active - Returns
trueif this conversation has ever used CCR. - mark_
ccr_ active - Mark a conversation as having used CCR.