3d94a476bf
AgentFinalAnswer may carry Done:true more than once (e.g. finish chunk plus EOF). Guard AddEpisode with sync.Once so memory persists once per turn, consistent with qa.go completion handling. Co-authored-by: Cursor <cursoragent@cursor.com>