Post

Log inSign up

Post

Log inSign up

Kaka Ruto on X: "@opencodeai @thdxr Confirmed, including tool_calls in message history crashes the go endpoint, but skipping them and converting tool results to user messages works 🤔 @thdxr"

Conversation

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email

Relevant people

Avatar
Kaka Ruto@kaka_rutoFollow
Building @AnywayeAI - agents that keep your codebase secure 24/7 🇰🇪🇬🇧

What’s happening

Show more
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • @kaka_ruto
    Kaka Ruto
    @kaka_ruto
    Jul 16
    Having a lot of trouble with api calls to @opencodeai Go Tool calls to `/zen/go/v1` keep failing Zen endpoint works fine, same models, same key. Seems like Console Go upstream can't handle tool_calls in conversation history @thdxr and team please check!
    4
  • @kaka_ruto
    Kaka Ruto
    @kaka_ruto
    Jul 16
    It seems that Opencode Go's middleware is trying to iterate over the tool_calls array using Object.entries() or similar, which only works on objects It's a JSON processing bug likely, failing before the request even reaches the upstream model provider
    1
  • @kaka_ruto
    Kaka Ruto
    @kaka_ruto
    Confirmed, including tool_calls in message history crashes the go endpoint, but skipping them and converting tool results to user messages works 🤔 @thdxr
    9:35 PM · Jul 16, 2026·
    185
    Views