mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 07:05:57 +03:00
[GH-ISSUE #119] Bug: Memory injection causes 'tool_use ids must be unique' API error #48
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @slavochek2 on GitHub (Jan 26, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/119
Description
When
.agent/memories.mdexists with valid content, Ralph fails immediately with an API error indicating duplicate tool_use IDs.Version
Error
Steps to Reproduce
.agent/memories.mdfile:Logs
Workaround
Remove or rename
.agent/memories.md:Analysis
The error
messages.1.content.1: tool_use ids must be uniquesuggests that when Ralph constructs the API request with memory injection, it's generating duplicate tool_use block IDs. The issue is in the message construction code path that handles memory injection.@mikeyobrien commented on GitHub (Jan 26, 2026):
What's your claude version?
@LuoAndOrder commented on GitHub (Jan 27, 2026):
Hey I ran into this. It was an issue with Claude and not with ralph-orchestrator.
Rolling back to 2.1.7 worked. I believe the issue was introduced in Claude 2.1.8