[PR #22475] [CLOSED] fix: preserve tool_calls and output fields in temp chat messages #49767

Closed
opened 2026-04-30 02:04:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/22475
Author: @gambletan
Created: 3/9/2026
Status: Closed

Base: devHead: fix/temp-chat-tool-calling


📝 Commits (2)

  • 59f8e88 fix: preserve tool_calls and output fields in temp chat messages
  • 75a07fc style: fix prettier formatting for filter chain

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 src/lib/components/chat/Chat.svelte (+7 -1)

📄 Description

Description

The issue was that when sending messages to the backend for temp chats, the message mapping function was only preserving 'role' and 'content' fields, stripping out 'tool_calls' and 'output' fields which are essential for proper tool calling behavior.

This caused temp chats to collapse tool-role content into assistant-role content, breaking native tool calling with JSON schema.

Contributor License Agreement

  • By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.

Fixes #22470


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/22475 **Author:** [@gambletan](https://github.com/gambletan) **Created:** 3/9/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/temp-chat-tool-calling` --- ### 📝 Commits (2) - [`59f8e88`](https://github.com/open-webui/open-webui/commit/59f8e88778edd15b4367f6b0d49a313314610121) fix: preserve tool_calls and output fields in temp chat messages - [`75a07fc`](https://github.com/open-webui/open-webui/commit/75a07fca842175534a444dc152a1a862d30c7cfc) style: fix prettier formatting for filter chain ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Chat.svelte` (+7 -1) </details> ### 📄 Description ## Description The issue was that when sending messages to the backend for temp chats, the message mapping function was only preserving 'role' and 'content' fields, stripping out 'tool_calls' and 'output' fields which are essential for proper tool calling behavior. This caused temp chats to collapse tool-role content into assistant-role content, breaking native tool calling with JSON schema. ### Contributor License Agreement - [x] By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms. Fixes #22470 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-30 02:04:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#49767