By season 7, he's a veteran officer with command experience under his belt, he's comfortable with who he is, and he's the one who makes that great speech in "Endgame"
He's like that through most of the series, quietly competent. He's only immature or gullible or clueless when circumstances require it.