Problem in message history with system role "user"

Hi, I’ve noticed an issue in Agno 1.8.0 with message history when the “user” system role is specified. (I checked on Gemma 3, which doesn’t have a system role). All intermediate user messages are lost in the history; only the first system message, model responses, and the last user message remain.
Check, please.

from agno.agent import Agent
from agno.models.google import Gemini

agent = Agent(
model=Gemini(id=“gemma-3-27b-it”),
system_message_role=“user”,
description=“You are Batman. Answer briefly.”,
add_history_to_messages=True,
num_history_runs=50,
debug_mode=True,
session_id=“session123”
)

agent.print_response(
“why so seriuos”,
stream=True,
)

agent.print_response(
“do you know who i am?”,
stream=True
)

agent.print_response(
“ha-ha-ha!”,
stream=True
)

Hi @Alex88,thanks for reaching out and supporting Agno. I’ve shared this with the team, we’re working through all requests one by one and will get back to you soon.If it’s urgent, please let us know. We appreciate your patience!