[GH-ISSUE #7928] [Issue]: Severe UI freezes during button rearrangement and Quick Connection Switching #4356

Closed
opened 2026-10-22 04:05:58 +07:00 by bsakaguchi · 2 comments
Owner

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:

  • Button arrangement should be predictable, consistent, and easy to configure.
  • Resizing the browser window should not cause buttons to move unpredictably.
  • Switching connections should be nearly instantaneous.
  • Loading and refreshing available models should not block the UI or delay connection switching.

Actual behavior

1. Button arrangement and drag-and-drop

The current implementation of draggable UI buttons is problematic:

  • Attempting to drag and rearrange buttons can freeze the browser for up to 30 seconds, during which it becomes completely unresponsive.
  • Buttons appear scattered throughout the UI rather than maintaining a consistent, predictable arrangement.
  • Resizing the browser window causes buttons to shift around unpredictably (see screenshot).
  • Rearranging buttons directly in the main UI feels unreliable and unnecessarily complicated.

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:

  • Make connection switching as close to instantaneous as possible.
  • Avoid blocking the browser UI while loading or refreshing model information.
  • Introduce an option to disable model listing and automatic model refreshing when opening the Quick Connection Switcher.
  • Allow users to prioritize fast connection switching over dynamically populated model lists.

Ideally, switching connections should not depend on fetching or refreshing the available models.

Steps to reproduce

Issue 1 — Button arrangement:

  1. Open the Marinara Engine UI in a desktop browser.
  2. Attempt to rearrange buttons using drag-and-drop.
  3. Observe intermittent browser freezes, sometimes lasting up to 30 seconds.
  4. Resize the browser window and observe how the button positions change unpredictably.

Issue 2 — Quick Connection Switcher:

  1. Open the Marinara Engine UI with multiple connections configured.
  2. Open the Quick Connection Switcher.
  3. Switch between available connections.
  4. Observe significant delays and temporary browser unresponsiveness during the operation.

Environment

  • Marinara Engine version: 2.5.1
  • Install type: Docker
  • OS + version: Debian 13 (Docker host)
  • Browser or app shell: Desktop Google Chrome and Mozilla Firefox

Logs, screenshots, or video

Screenshots demonstrating the button layout issues

Image

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

  • I DID NOT read this template and provide the requested details.
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: - Button arrangement should be predictable, consistent, and easy to configure. - Resizing the browser window should not cause buttons to move unpredictably. - Switching connections should be nearly instantaneous. - Loading and refreshing available models should not block the UI or delay connection switching. ## Actual behavior **1. Button arrangement and drag-and-drop** The current implementation of draggable UI buttons is problematic: - Attempting to drag and rearrange buttons can freeze the browser for up to **30 seconds**, during which it becomes completely unresponsive. - Buttons appear scattered throughout the UI rather than maintaining a consistent, predictable arrangement. - Resizing the browser window causes buttons to shift around unpredictably (see screenshot). - Rearranging buttons directly in the main UI feels unreliable and unnecessarily complicated. **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:** - Make connection switching as close to instantaneous as possible. - Avoid blocking the browser UI while loading or refreshing model information. - Introduce an option to disable model listing and automatic model refreshing when opening the Quick Connection Switcher. - Allow users to prioritize fast connection switching over dynamically populated model lists. Ideally, switching connections should not depend on fetching or refreshing the available models. ## Steps to reproduce **Issue 1 — Button arrangement:** 1. Open the Marinara Engine UI in a desktop browser. 2. Attempt to rearrange buttons using drag-and-drop. 3. Observe intermittent browser freezes, sometimes lasting up to 30 seconds. 4. Resize the browser window and observe how the button positions change unpredictably. **Issue 2 — Quick Connection Switcher:** 1. Open the Marinara Engine UI with multiple connections configured. 2. Open the Quick Connection Switcher. 3. Switch between available connections. 4. Observe significant delays and temporary browser unresponsiveness during the operation. ## Environment - **Marinara Engine version:** 2.5.1 - **Install type:** Docker - **OS + version:** Debian 13 (Docker host) - **Browser or app shell:** Desktop Google Chrome and Mozilla Firefox ## Logs, screenshots, or video Screenshots demonstrating the button layout issues <img width="730" height="155" alt="Image" src="https://github.com/user-attachments/assets/48fdb605-0f43-48ff-965c-4b5647fa37fd" /> ## 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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-22 04:05:58 +07:00
Author
Owner

@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.

<!-- gh-comment-id:6312648597 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:6316149754 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4356
No description provided.