mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7928] [Issue]: Severe UI freezes during button rearrangement and Quick Connection Switching #4356
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#4356
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 @JVsup on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7928
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Several UI interactions suffer from severe performance and usability issues. Dragging and rearranging buttons can freeze the browser for up to 30 seconds, while switching connections using the Quick Connection Switcher also causes noticeable delays and browser unresponsiveness.
Expected behavior
The UI should remain responsive and smooth during all interactions, without freezing or introducing unnecessary delays.
Specifically:
Actual behavior
1. Button arrangement and drag-and-drop
The current implementation of draggable UI buttons is problematic:
Suggested improvement:
Rather than supporting drag-and-drop directly in the main UI, consider introducing a dedicated configuration section under Settings.
Users could arrange buttons by dragging simple placeholder items into their preferred order, without interacting with the actual UI elements.
Additionally, a simplistic option to just automaticaly configure horizontal or vertical button layouts would be useful.
This would provide a more predictable, straightforward, and reliable way to customize the interface.
2. Quick Connection Switcher performance
Switching connections through the Quick Connection Switcher is noticeably slow and can cause the browser to become unresponsive during the process.
The recent improvement that displays individual models and allows switching directly between them is genuinely useful. However, the way models are fetched, refreshed, and displayed appears to introduce significant performance overhead.
Suggested improvement:
Ideally, switching connections should not depend on fetching or refreshing the available models.
Steps to reproduce
Issue 1 — Button arrangement:
Issue 2 — Quick Connection Switcher:
Environment
Logs, screenshots, or video
Screenshots demonstrating the button layout issues
Additional context
Both issues seem related to UI responsiveness and interaction design rather than missing functionality.
The ability to customize button layouts and switch directly between specific models is appreciated. However, the current implementations introduce performance problems that significantly affect everyday usability.
Providing dedicated layout configuration controls and making model fetching optional in the Quick Connection Switcher would improve both performance and user experience.
Template check
@SpicyMarinara commented on GitHub (Oct 21, 2026):
Codex is taking ownership of this issue for the maintainer-requested sweep. I am tracing the floating-button layout/drag path and Quick Connection Switcher model loading, using the supplied screenshot. The fix will target staging, preserve existing customization, and include focused responsiveness and desktop/mobile browser proof.
@SpicyMarinara commented on GitHub (Oct 21, 2026):
Implemented in #7943 and merged into
staging.Chat Settings now offers Horizontal rows and Vertical columns, with resize bounds and saved layouts. Free positioning preserves the existing saved positions. The desktop and mobile Quick Connection Switchers have a persistent Models toggle: turning it off skips catalog requests and model selection, so choosing a connection closes the menu directly. Drag calculations run at most once per animation frame. Delayed startup settings updates and focus restoration are covered too.
Validation includes
pnpm check, layout/persistence regressions, shell smoke checks and 18 switcher browser cases across desktop Chromium, mobile Chromium and mobile WebKit. Final-head hosted review and required checks completed before merging.The reported 30-second freeze was not independently reproduced; these are verified layout and switching improvements, not proof of that exact freeze's original cause. The reporter's Docker/Chrome/Firefox setup and physical touch devices remain manual verification. If a freeze persists on the updated staging build, please provide a browser performance recording and the affected layout/connection setup so it can be traced separately.