[GH-ISSUE #6363] Feature Request: Avoid hardcoded timeouts or make them configurable #3558

Closed
opened 2026-10-21 06:04:16 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @scavru on GitHub (Sep 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6363

Please avoid using strict, hardcoded timeouts for generation and backend operations, or provide a centralized place in the settings where users can configure them.

Different users have very different hardware, backends, network conditions, and generation speeds. A timeout that works well for one setup may be far too short for another.

For example, with my KoboldCpp backend, the backend can become busy while generating a complex scene. The application may hit a timeout and report that the operation failed or was cancelled, even though the backend is still working and would have completed successfully if given more time.

The same issue can occasionally happen with media generation: media generation may fail due to a timeout and ask the user to regenerate, while in reality the backend was simply still processing the request.

Ideally:

avoid unnecessary hardcoded timeouts where possible;
allow operations to wait for the backend instead of treating a slow response as an immediate failure;
if timeouts are necessary, provide centralized timeout settings in the UI;
preferably allow different timeout values for different operations (text generation, media generation, API requests, etc.).

This would make the application much more reliable across different hardware and backend configurations.

Originally created by @scavru on GitHub (Sep 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6363 Please avoid using strict, hardcoded timeouts for generation and backend operations, or provide a centralized place in the settings where users can configure them. Different users have very different hardware, backends, network conditions, and generation speeds. A timeout that works well for one setup may be far too short for another. For example, with my KoboldCpp backend, the backend can become busy while generating a complex scene. The application may hit a timeout and report that the operation failed or was cancelled, even though the backend is still working and would have completed successfully if given more time. The same issue can occasionally happen with media generation: media generation may fail due to a timeout and ask the user to regenerate, while in reality the backend was simply still processing the request. Ideally: avoid unnecessary hardcoded timeouts where possible; allow operations to wait for the backend instead of treating a slow response as an immediate failure; if timeouts are necessary, provide centralized timeout settings in the UI; preferably allow different timeout values for different operations (text generation, media generation, API requests, etc.). This would make the application much more reliable across different hardware and backend configurations.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 19, 2026):

I am taking this in #6359. Owner: @SpicyMarinara, assisted by Codex. I will reuse the existing runtime timeout configuration and Settings controls to provide a central place to adjust text and media generation deadlines.

<!-- gh-comment-id:5741975240 --> @SpicyMarinara commented on GitHub (Sep 19, 2026): I am taking this in #6359. Owner: @SpicyMarinara, assisted by Codex. I will reuse the existing runtime timeout configuration and Settings controls to provide a central place to adjust text and media generation deadlines.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 19, 2026):

Merged to staging in #6359. Advanced Settings now exposes the existing request timeout limits in seconds. Admin-gated, rate-limited writes persist validated values beside the active .env without rewriting it. Text-related limits apply to new requests; media and installed packages require the restart disclosed in the UI. API, restart-persistence, and desktop/mobile browser proofs pass. All ten translated guides were merged through #6365.

<!-- gh-comment-id:5742479478 --> @SpicyMarinara commented on GitHub (Sep 19, 2026): Merged to staging in #6359. Advanced Settings now exposes the existing request timeout limits in seconds. Admin-gated, rate-limited writes persist validated values beside the active .env without rewriting it. Text-related limits apply to new requests; media and installed packages require the restart disclosed in the UI. API, restart-persistence, and desktop/mobile browser proofs pass. All ten translated guides were merged through #6365.
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#3558
No description provided.