mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #935] [Issue]: Translation 'Connection' selector cannot be cleared back to unset #455
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#455
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 @Romuromylus on GitHub (May 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/935
Originally assigned to: @Romuromylus on GitHub.
Summary
Picking the placeholder option in the chat translation Connection dropdown does not actually clear the persisted
translationConnectionId. The previously-selected connection silently reappears after the drawer is closed and reopened. Same|| undefinedchain that #914 / #934 fixed for the Discord mirror URL, applied here to a<select>.Expected behavior
In Chat Settings → Translation → Provider: AI → Connection, choosing the empty "Select connection…" option should clear the chat's translation connection so no AI connection is bound to translation.
Actual behavior
The selector visually clears (the controlled-input state updates), but
translationConnectionIdis never actually overwritten on the server. Reopening the drawer shows the old connection still selected, and subsequent AI translation calls keep using it.Steps to reproduce
Environment
Logs, screenshots, or video
Reproduced via direct API probe against the deployed fork:
The PATCH handler at
packages/server/src/routes/chats.routes.ts:369does{ ...existing, ...incoming }. SinceJSON.stringifydropsundefinedkeys, the field is never present inincoming, so the existing value survives the merge. This is the same chain #914 / PR #934 fixed fordiscordWebhookUrl.Additional context
packages/client/src/components/chat/ChatSettingsDrawer.tsx:5000The|| undefinedrewrites""→undefined, whichJSON.stringifydrops.|| undefined, sende.target.valuedirectly). I'll open a follow-up PR.packages/server/src/routes/translate.routes.ts:59(if (!input.connectionId)) treats empty string the same as undefined, so sending""is safe.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (May 17, 2026):
Working on this
@SpicyMarinara commented on GitHub (May 17, 2026):
Awesome, closing for the clear-up process.