This happened to me in Europe, flying on Ryanair with their obsessive visa checks for US passport holders. You'd think they might assume US persons have visa-free access to the UK, but no. I only managed to resolve the situation by showing them my UK residency card; I wonder what annoying bureaucratic mess would have ensued if I wasn't able to satisfy the gate agent with that.