Skip to content

Fix LLM error by cleaning up CONSCIOUSLY message history#55

Merged
lxowalle merged 1 commit intosipeed:mainfrom
Diegox-17:patch-1
Feb 12, 2026
Merged

Fix LLM error by cleaning up CONSCIOUSLY message history#55
lxowalle merged 1 commit intosipeed:mainfrom
Diegox-17:patch-1

Conversation

@Diegox-17
Copy link
Contributor

@Diegox-17 Diegox-17 commented Feb 12, 2026

Added logic to remove orphaned tool messages from history to prevent LLM errors.

I´ve been experiencing a BUG using Anthropic LLMs. Whenever the task is long enough, the session summarizes, this cause trouble with the LLM Memory, cause its looking for a Toolu_ID that now can not be foun in history.

Added logic to remove orphaned tool messages from history to prevent LLM errors.
@lxowalle lxowalle merged commit 5b6ad3f into sipeed:main Feb 12, 2026
@lxowalle
Copy link
Collaborator

Thanks for the pr

@Zepan
Copy link
Contributor

Zepan commented Feb 13, 2026

Thanks for your contribution! We are forming the PicoClaw Dev Group to accelerate the evolution of the project. Any developer with more than one merged PR is invited to join.

Would you like to join the PicoClaw Dev Group? If so, please send an email to support@sipeed.com with the subject line: [Join PicoClaw Dev Group] + Your GitHub account. We will send the Discord invite link to your inbox.

emadomedher pushed a commit to emadomedher/picoclaw that referenced this pull request Feb 17, 2026
Fix LLM error by cleaning up CONSCIOUSLY message history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants