Fix trailing whitespace in message filtering logic

Co-authored-by: markwallace-microsoft <127216156+markwallace-microsoft@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-10 11:06:15 +00:00
Unverified
parent 3b9dc74aff
commit dc505af4cb
@@ -678,7 +678,7 @@ class RawOpenAIResponsesClient( # type: ignore[misc]
if last_assistant_idx >= 0:
# Collect system/developer messages from before the last assistant
system_messages = [
msg for msg in chat_messages[:last_assistant_idx]
msg for msg in chat_messages[:last_assistant_idx]
if msg.role in ("system", "developer")
]
# Get all messages after the last assistant (new user messages)