Under the hood
The tool-definition cache key now also reflects the query source and whether prompt trimming was applied.
The cache key used to reuse compiled tool definitions across turns now also factors in whether the query came from a particular source, adding a new "K:" prefix, and whether first-line pre-read or bash-first prompt trimming was applied. This joins the existing lean-prompt ("L:") and grep ("G:") bits already in the key.