Skip to content

[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

Closed as not planned

Description

@mutageneral

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???
camel-ai/camel#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

Activity

  1. github-actions commented on Feb 8, 2026

    @github-actions
    Contributor

    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.

  2. 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
  3. dailyherold commented on Mar 15, 2026

    @dailyherold

    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.

  4. removed
    bugSomething isn't working
    on May 3, 2026
  5. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions