2644ed269e
Use agent.reset() instead of session.clear() when agent is available, ensuring tool fingerprint, usage counters, and agent history are all cleared properly alongside the session.