Check last message role instead of any message in history. This matches the original correct implementation from PR #200. fixes #209
Fixed Claude models via GitHub Copilot re-answering all previous prompts. fixes #209