mirror of
https://github.com/open-webui/computer.git
synced 2026-11-05 01:17:24 +00:00
[GH-ISSUE #153] bug: chat_messages INSERT crashes when Open WebUI models array reaches the scalar model column — message rows silently dropped #76
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/computer#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @penradioGables on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/153
Version: cptr 0.9.8
Summary
Open WebUI sends
models: ["cptr/cptr"](a list). During achat_messagesINSERT, a list value is bound to a scalar TEXT column (schema:chats.py~L509,modelcolumn), raising:The INSERT rolls back and that message is not persisted.
Evidence (container stdout)
Impact
Silent loss of conversation turns; downstream history-reconstruction gaps.
Suggested fix
Coerce/validate non-scalar fields before bind (store
modelas a scalar, or JSON-encode); reject/normalize list-valuedmodelat the gateway boundary.@owui-terminator[bot] commented on GitHub (Jul 17, 2026):
⚠️ Missing Issue Title Prefix
@penradioGables, your issue title is missing a categorising prefix (e.g.
bug:,feat:,docs:).Please update the title to lead with one of:
Example:
bug: Login fails when the password contains special characters@tjbck commented on GitHub (Jul 18, 2026):
Should be addressed!