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
[BUG]: Invalid 'messages[68].tool_calls[0].id': string too long. Expected a string with maximum length 40, but got a string with length 46 instead. #12653
changed the title [-]Invalid 'messages[68].tool_calls[0].id': string too long. Expected a string with maximum length 40, but got a string with length 46 instead.[/-][+][BUG]: Invalid 'messages[68].tool_calls[0].id': string too long. Expected a string with maximum length 40, but got a string with length 46 instead.[/+]on Feb 8, 2026
I'm hitting this issue when using OpenAI models via Portkey provider, but not when using the OpenAI provider directly in opencode. Haven't tested other gateways yet.
Activity
github-actions commentedon Feb 8, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if this specific case (switching between big pickle and gpt-4o mini) addresses a unique scenario.
Fix Apply on Invalid 'messages[68].tool_calls[0].id': string too long…
[-]Invalid 'messages[68].tool_calls[0].id': string too long. Expected a string with maximum length 40, but got a string with length 46 instead.[/-][+][BUG]: Invalid 'messages[68].tool_calls[0].id': string too long. Expected a string with maximum length 40, but got a string with length 46 instead.[/+]dailyherold commentedon Mar 15, 2026
I'm hitting this issue when using OpenAI models via Portkey provider, but not when using the OpenAI provider directly in opencode. Haven't tested other gateways yet.
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.