Skip to content

Commit 38d8048

Browse files
committed
fix: deduplicate openai-compatible tool call ids #40996 thanks @xaeon2026
1 parent 11efa73 commit 38d8048

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Docs: https://docs.openclaw.ai
3232
- Models/openai-completions: default non-native OpenAI-compatible providers to omit tool-definition `strict` fields unless users explicitly opt back in, so tool calling keeps working on providers that reject that option. (#45497) Thanks @sahancava.
3333
- WhatsApp/reconnect: restore the append recency filter in the extension inbox monitor and handle protobuf `Long` timestamps correctly, so fresh post-reconnect append messages are processed while stale history sync stays suppressed. (#42588) thanks @MonkeyLeeT.
3434
- WhatsApp/login: wait for pending creds writes before reopening after Baileys `515` pairing restarts in both QR login and `channels login` flows, and keep the restart coverage pinned to the real wrapped error shape plus per-account creds queues. (#27910) Thanks @asyncjason.
35+
- Agents/openai-compatible tool calls: deduplicate repeated tool call ids across live assistant messages and replayed history so OpenAI-compatible backends no longer reject duplicate `tool_call_id` values with HTTP 400. (#40996) Thanks @xaeon2026.
3536

3637
### Fixes
3738

src/agents/pi-embedded-runner.sanitize-session-history.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { AssistantMessage, UserMessage, Usage } from "@mariozechner/pi-ai";
33
import { beforeEach, describe, expect, it, vi } from "vitest";
44
import {
55
expectOpenAIResponsesStrictSanitizeCall,
6-
expectGoogleModelApiFullSanitizeCall,
76
loadSanitizeSessionHistoryWithCleanMocks,
87
makeMockSessionManager,
98
makeInMemorySessionManager,

0 commit comments

Comments
 (0)