[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. #8807

Open
opened 2026-02-16 18:10:54 -05:00 by yindo · 1 comment
Owner

Originally created by @mutageneral on GitHub (Feb 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

started an old chat with big pickle to plan and then switched to builid with github copilot pro gpt 5 mini and it said

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.

might be related???
https://github.com/camel-ai/camel/issues/2215

Plugins

none?

OpenCode version

updated to 1.1.53 from 1.1.36 and still same issue

Steps to reproduce

(i assume that is how you do it i havent tried this a second time it might more anoying to reproduce)

  1. start a chat with big pickle
  2. switch to gpt 5 mini

Screenshot and/or share link

Image

Operating System

arch btw

Terminal

st

Originally created by @mutageneral on GitHub (Feb 7, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description started an old chat with big pickle to plan and then switched to builid with github copilot pro gpt 5 mini and it said `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. ` might be related??? https://github.com/camel-ai/camel/issues/2215 ### Plugins none? ### OpenCode version updated to 1.1.53 from 1.1.36 and still same issue ### Steps to reproduce (i assume that is how you do it i havent tried this a second time it might more anoying to reproduce) 1. start a chat with big pickle 2. switch to gpt 5 mini ### Screenshot and/or share link <img width="1275" height="588" alt="Image" src="https://github.com/user-attachments/assets/d62a6378-1eda-4c24-b852-93093a6edb2a" /> ### Operating System arch btw ### Terminal st
yindo added the bug label 2026-02-16 18:10:54 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 7, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #3523: '[BUG] tools[21].function.name': string too long. Expected a string with maximum length 64... - Similar tool schema validation error related to string length limits
  • #11091: Bug Report: MiniMax Tool Call Compatibility Issue (Windows Only) - Tool call format and ID validation issues
  • #4255: OpenCode v1.0.25 Hangs Indefinitely with LM Studio + Qwen Models Due to Empty tool_calls Array - Tool call handling edge cases

Feel free to ignore if this specific case (switching between big pickle and gpt-4o mini) addresses a unique scenario.

@github-actions[bot] commented on GitHub (Feb 7, 2026): This issue might be a duplicate of existing issues. Please check: - #3523: '[BUG] tools[21].function.name': string too long. Expected a string with maximum length 64... - Similar tool schema validation error related to string length limits - #11091: Bug Report: MiniMax Tool Call Compatibility Issue (Windows Only) - Tool call format and ID validation issues - #4255: OpenCode v1.0.25 Hangs Indefinitely with LM Studio + Qwen Models Due to Empty tool_calls Array - Tool call handling edge cases Feel free to ignore if this specific case (switching between big pickle and gpt-4o mini) addresses a unique scenario.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8807