fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)

fix(ai): strip partialJson from responses tool calls master

Mutate persisted tool-call blocks in place on function_call completion, remove partialJson, and emit the same reference on toolcall_end. Add regression coverage for persisted block cleanup and event identity. fixes #3078