You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AI_APICallError: messages.1.content.2: tool_use ids must be unique #1279
@thdxr The files at ~/.local/share/opencode/storage/part/msg**/*.json are storing callId as an empty string (""). When converting to message, content.id also becomes an empty string (""), causing an error with the Anthropic message API’s ID validation regex.
Activity
kehanzhang commentedon Jul 24, 2025
bump on this, I also received a similar error when switching from groq kimik2 to claude sonnet 4:
AI_APICallError: messages.1.content.1.tool_use.id: String should match pattern '^[a-zA-Z0-9_-]+$'
Was using opencode serve.
learningbizz commentedon Oct 20, 2025
Hey everyone, any update on this?
rekram1-node commentedon Oct 20, 2025
@learningbizz which one are you getting? The two comments on this issue are 2 different issues
9j commentedon Nov 21, 2025
@thdxr The files at
~/.local/share/opencode/storage/part/msg**/*.jsonare storing callId as an empty string (""). When converting to message, content.id also becomes an empty string (""), causing an error with the Anthropic message API’s ID validation regex.