BaseFlow rebuilds FlowResponse(**cached), but JsonlCache.load unwrapped rows to the answer string, so every flow cache hit raised 'argument after ** must be a mapping, not str'. Flows now use FlowJsonlCache, which returns the whole row. FlowJsonlCache.save also skips responses with success=False or an error string in answer, so a failed tool call (e.g. Serper 'Not enough credits') is not replayed until expiry. Op-level JsonlCache behaviour is unchanged.
Entries from a local server's sqlite cache, converted to the flow cache format (sha256 key over the flow request params, data = {answer, success, metadata}, 6 results). Appended as a second gzip member; the existing bytes are unchanged.
Use one JSONL cache per tool and lock writes across machines