Lately I’ve been siding with the first stance, but I can understand both. It comes down to the strength of your faith that Science understands (for the most part) all of the essential features of reality, and also your trust in your immediate experience.
It’s a tough question.
Which is not what the other comment was saying I don't think, but the parent comment was.
Edit to add: and even if human behavior was actually a deterministic function of their history it'd surely be a chaotic system. I can't say I really see much difference in that case.
That said, I do believe that people are more or less the sum of their parts and I accept that genetics are especially important. However, there are always people who defy expectations. I just don't except that it is a totally deterministic connection.
What else affects agency? I think you have to look to religion, rather than science, to come to any conclusion other than human actions being essentially deterministic.