Skip to content

Tool call IDs from GLM-5/Kimi models exceed OpenAI's 64-character limit #8997

@TheStingR

Description

@TheStingR

Pre-submit Checks

Describe the bug

When using GLM-5 or Kimi models, tool call IDs are generated that exceed
OpenAI's Responses API 64-character limit, causing HTTP 400 errors:

OpenAI API error: POST "https://api.openai.com/v1/responses": 400 Bad Request {
"message": "Invalid 'input[24].call_id': string too long.
Expected a string with maximum length 64, but got a string with
length 210 instead.",
"type": "invalid_request_error",
"param": "input[24].call_id",
"code": "string_above_max_length"
}

Debug information

Conversation ID: 406ae4eb-feb5-4aa3-800d-dd0f59a552a0

Warp's backend needs to add ID sanitization:

// In the request handler before sending to OpenAI
const MAX_CALL_ID_LENGTH = 64;

function sanitizeCallId(id: string): string {
if (id.length <= MAX_CALL_ID_LENGTH) {
return id;
}
// Option 1: Truncate
return id.slice(0, MAX_CALL_ID_LENGTH);

// Option 2: Hash (prevents collisions)
// const hash = crypto.createHash('sha256').update(id).digest('hex');
// return call_${hash.slice(0, 12)}; // 17 chars total
}

Does Not Reproduce in

Opencode or Claude code

To reproduce

Reproduction

  1. Start a conversation with GLM-5 or Kimi model
  2. Make multiple tool calls (read files, run commands, etc.)
  3. Continue conversation for several turns
  4. Error appears and session becomes unrecoverable

Expected behavior

Expected behavior

Warp should sanitize/truncate tool call IDs to 64 characters before
sending to OpenAI's Responses API, similar to how OpenClaw fixed this
in openclaw/openclaw#31934

Screenshots, videos, and logs

No response

Operating system (OS)

Select an OS

Operating system and version

Kali Linux 2026.1, Windows 11 Pro, Windows Server 2022, Ubuntu 24.04 LTS, ,Ubuntu 22.04 LTS

Shell Version

No response

Current Warp version

v0.2026.03.25.08.24.stable_05

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

Noticed issue 2 weeks ago and has become more prevalent

Additional context

Our Linux Workstations of Ubuntu run GNOME

Company Kali Linux workstations run:
• Desktop Environment: XFCE 4.20 (xfce4-session 4.20.4)
• Display Server: X11
• Display Manager: LightDM (/usr/sbin/lightdm)
• Session: lightdm-xsession

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGBugs, Hangs, Crash, and Freezes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions