In a large skillet, heat the olive oil. Add the onion and cook over moderate heat, stirring occasionally, until golden, about 20 minutes. Add the green beans, chicken broth and thyme, cover and simmer over moderately low heat until tender, about 15 minutes. Add the butter and cook, stirring until melted. Discard the thyme sprig. Season with salt and pepper and serve.