Skip to content

[Bug]: Agents for some reason now prioritize more on previous messages than current ones #76875

@Deskehs

Description

@Deskehs

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Upgrading from 4.23 to 5.2, a behavior I found on agents is that the agents somehow focused more on previous messages rather than latest user message.

Steps to reproduce

  1. Start with 4.23 and try to have a session with the agent with specific questions like learning a subject like Math and have it quiz on you
  2. Reset the session and then upgrade to 5.2
  3. Now try talking to it for a while, eventually it prioritized previous user messages than the current model + user messages.

Expected behavior

Conversations should happen naturally, prioritizing latest user messages and having previous messages as context.

Actual behavior

It somehow prioritized previous messages as more important than current user messages.

OpenClaw version

2026.5.2

Operating system

Ubuntu 24.04

Install method

No response

Model

gpt-5.5

Provider / routing chain

openclaw -> cliproxyapi -> gpt-5.5

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

Severity: annoying
Frequency: always
Consequence: not much, need behavior conditioning via prompting.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions