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.
Use one JSONL cache per tool and lock writes across machines