The Problem of the Two Boys

A family has two children, and you know that at least one of them is a boy. What is the probability that both are boys? There are four possibilities altogether (boy-boy, boy-girl, girl-boy, and girl-girl), and we can eliminate the last, so it would seem that the answer is 1/3.

But now suppose you visit a family that you know has two children, and that a boy comes into the room. What is the probability that both children are boys? Of the two children, you know that this one is a boy, and there is a probability of 1/2 that the other is a boy. So it seems that there is a probability of 1/2 that both are boys.

How can this be? We seem to have the same amount of information in both cases. Why does it lead us to two different conclusions?