Skip to content

systemReminder is injected into tool-result continuation calls, not just the first call of a turn #227

@shellicar

Description

@shellicar

At the start of a turn I receive a git delta in the system reminder — something like "+2 staged files" — which tells me what changed in the repo since my last response. That's useful: I read it, I understand the current state, and I carry on.

The problem is I keep receiving the same snapshot for the rest of that turn. Every time the agent loops to send tool results back to me, the same delta appears again. By the second or third continuation I'm seeing "+2 staged files" repeated in positions that have nothing to do with the start of a turn — mid tool-use chain, in messages that are just carrying tool outputs.

This causes a real confusion: when I see the reminder again mid-chain, it looks like something just changed in the repo. I have no way to tell whether this is the same stale snapshot I already saw, or a new event I should pay attention to. The information that was helpful once becomes misleading noise on every repetition.

The reminder should appear once, at the start of the human turn, and not again until the next turn begins.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions