[PR #6359] [MERGED] fix: address desktop, mobile, and agent issue reports #7147

Closed
opened 2026-10-23 04:16:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6359
Author: @SpicyMarinara
Created: 9/19/2026
Status: ✅ Merged
Merged: 9/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/sept19-afternoon-sweep


📝 Commits (3)

  • 77294d0 chore: start September 19 afternoon issue sweep
  • 1f7fa53 fix: address September issue sweep and request timeout settings
  • 11e1fd1 fix: address review feedback on context, streams and timeout access

📊 Changes

36 files changed (+1216 additions, -104 deletions)

View changed files

📝 .gitignore (+3 -1)
📝 CHANGELOG.md (+12 -0)
📝 docs/CONFIGURATION.md (+4 -0)
📝 docs/connections/subscription-clis.md (+1 -1)
➕ e2e/afternoon-sweep.e2e.ts (+261 -0)
📝 e2e/core-flows.e2e.ts (+11 -2)
📝 e2e/issue-sweep-defaults.e2e.ts (+4 -4)
➕ e2e/translation-notifications.e2e.ts (+210 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+30 -32)
📝 packages/client/src/components/agents/AgentModeFilter.tsx (+3 -3)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+11 -3)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+10 -0)
📝 packages/client/src/components/game/GameNarration.tsx (+3 -3)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+17 -0)
➕ packages/client/src/components/panels/settings/RequestTimeoutSettings.tsx (+62 -0)
📝 packages/client/src/hooks/use-generate.ts (+41 -20)
📝 packages/client/src/lib/chat-wizard-defaults.ts (+0 -2)
📝 packages/client/src/localization/locales/en.json (+20 -2)
📝 packages/server/src/config/runtime-config.ts (+51 -1)
📝 packages/server/src/middleware/rate-limit.ts (+13 -0)

...and 16 more files

📄 Description

Linked issue

Closes #6349
Closes #6350
Closes #6351
Closes #6352
Closes #6353
Closes #6354
Closes #6355
Closes #6356
Closes #6357
Closes #6358
Closes #6360
Closes #6363

Calls/iOS #6346 is fixed in Pasta-Devs/Marinara-Agents#945 (Calls 1.0.17). Documentation translations are in #6364 and #6365, targeting docs-i18n.

Why this change

Resolve the current UI, agent-generation and media reports using the existing controls, provider paths and persistence formats. Slow backends also need an accessible place to adjust the limits already supported by the server.

What changed

  • Built-in agents expose the existing context-source switches and preserve them through save/export/reload; grouped prompts still use the selected-source union. Previous output is loaded for built-ins; vector-memory controls still require their existing capability.
  • OpenAI-compatible calls stop at [DONE], preserving text, reasoning, tools and usage even if the upstream HTTP response stays open.
  • Completion sounds and browser/native notifications wait for translation and its metadata save, with notification fallback when translation fails.
  • Native SwarmUI requests include configured LoRAs/weights and reference images. The connection editor offers an opt-in backend-save checkbox; custom workflows retain their existing path and debug logs redact reference data.
  • Saved chat defaults omit names and ignore names in legacy templates. Agent categories fit their labels; the Personas empty state is shortened. Mobile wizard footers stay within the chat area and long Game narration uses up to 45% of the small viewport.
  • Advanced Settings groups existing text, agent, Game image-prompt, media, ComfyUI and embedding limits. The allowlisted, validated values are stored atomically beside the active .env, without rewriting it. Admin access and a dedicated 30-per-minute rate-limit bucket protect writes. Text-related values affect new requests; media and installed packages require the explicitly documented restart.
  • Home heap checks use a proportional allowance while keeping structural leak checks. Storage shutdown tests use production logging and verify every store releases its exit hook, including failed closes.

#6361 remains a design proposal assigned to @kolacheee. It explicitly requires a maintainer architecture decision before implementation and overlaps the contributor's ongoing ruleset work.

Validation

  • pnpm check passes locally
  • Container built and ran without issue
  • Manually verify the changed flows in the browser
  • Check light/dark mode, mobile, empty and error states
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-run checks completed:

  • pnpm install --frozen-lockfile and pnpm check passed; final E2E type check passed.
  • Complete Node regression lane: 320/320 passed, including prompt, provider, storage, media and security checks. Provider and wizard-name proofs fail before the changes and pass afterward. Native SwarmUI wire-format tests use an HTTP/WebSocket fixture.
  • 24/24 targeted browser cases passed across desktop Chromium, Android-sized Chromium and iPhone-sized WebKit. They cover save/export/reload, bounds, timeout Settings, and all three modes' translation notifications (held translation, held persistence, failure, and disabled translation).
  • Three consecutive Home lifecycle runs passed. Ten existing chat-default/output-option browser cases also passed in light/dark desktop views.
  • Built the production Docker image; it serves the client and health API. Timeout settings saved through the real API and survived a container restart.
  • Local CodeRabbit completed. Its cancellation-test concern was addressed with an explicit watchdog assertion: the provider intentionally permits a cancelled reader to return a partial response or throw AbortError. Its request for hot-reloading media timeouts was declined to preserve existing startup-bound behavior, explicitly disclosed in Settings and docs, and avoid broadening this fix.

Proof limits: no physical iOS 18.7/Termux device, real OpenRouter DeepSeek session, or GPU-backed SwarmUI server was available. The original intermittent storage-test hang did not reproduce in 125 stress runs; the change removes the unrelated pretty-logger worker and adds cleanup assertions instead of force-exiting the process.

  • Manually retest the reported Termux/OpenRouter agent stall and Stop button with the affected model.
  • Manually verify native SwarmUI LoRAs, references and backend files against the installed backend.
  • After changing media timeouts, restart the server and verify a slow real backend completes.

Docs and release impact

CHANGELOG.md records the product and test-workflow changes. Configuration docs describe timeout persistence, units, precedence and restart behavior; Claude-cache docs clarify the default TTL scope. All ten language packs are updated by #6364/#6365. The follow-up review checks passed: pnpm check, E2E type checking, provider/agent/timeout regressions and 21 browser cases. CodeRabbit’s four hosted findings are addressed. No Engine version bump.

  • Manually verify translated guides after refreshing their packs.

UI evidence

Browser evidence gallery contains downloadable HTML files with embedded original screenshots: baseline/fixed category buttons and narration, both category themes, built-in context controls, SwarmUI saving, wizard footer, and desktop/mobile timeout controls. The original mobile wizard clipping was not reproduced by the fixture; the revised panel is verified to fit its overlay and the short viewport.

Owner: @SpicyMarinara, assisted by Codex.

Summary by CodeRabbit

  • New Features
    • Added Advanced settings for configuring and saving request timeouts.
    • Added context-source controls for built-in and custom agents.
    • Added a SwarmUI option to save generated images to the backend.
    • Added support for SwarmUI LoRA settings and reference images.
  • Bug Fixes
    • Notifications now appear after automatic translation finishes saving.
    • Improved mobile game narration sizing and agent filter layouts.
    • New chats no longer reuse saved chat names.
    • Improved OpenAI streaming completion handling and cleanup.
  • Documentation
    • Expanded timeout and Claude cache-duration guidance.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6359 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/19/2026 **Status:** ✅ Merged **Merged:** 9/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept19-afternoon-sweep` --- ### 📝 Commits (3) - [`77294d0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/77294d0770de79cd698e4acfbdeaaee43e840430) chore: start September 19 afternoon issue sweep - [`1f7fa53`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1f7fa53e535b96969d9b8641a7bdcd591ff888ef) fix: address September issue sweep and request timeout settings - [`11e1fd1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/11e1fd11694cc2aa59363f8efaf5d92fd9ecfa43) fix: address review feedback on context, streams and timeout access ### 📊 Changes **36 files changed** (+1216 additions, -104 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+3 -1) 📝 `CHANGELOG.md` (+12 -0) 📝 `docs/CONFIGURATION.md` (+4 -0) 📝 `docs/connections/subscription-clis.md` (+1 -1) ➕ `e2e/afternoon-sweep.e2e.ts` (+261 -0) 📝 `e2e/core-flows.e2e.ts` (+11 -2) 📝 `e2e/issue-sweep-defaults.e2e.ts` (+4 -4) ➕ `e2e/translation-notifications.e2e.ts` (+210 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+30 -32) 📝 `packages/client/src/components/agents/AgentModeFilter.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+11 -3) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+10 -0) 📝 `packages/client/src/components/game/GameNarration.tsx` (+3 -3) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+17 -0) ➕ `packages/client/src/components/panels/settings/RequestTimeoutSettings.tsx` (+62 -0) 📝 `packages/client/src/hooks/use-generate.ts` (+41 -20) 📝 `packages/client/src/lib/chat-wizard-defaults.ts` (+0 -2) 📝 `packages/client/src/localization/locales/en.json` (+20 -2) 📝 `packages/server/src/config/runtime-config.ts` (+51 -1) 📝 `packages/server/src/middleware/rate-limit.ts` (+13 -0) _...and 16 more files_ </details> ### 📄 Description ## Linked issue Closes #6349 Closes #6350 Closes #6351 Closes #6352 Closes #6353 Closes #6354 Closes #6355 Closes #6356 Closes #6357 Closes #6358 Closes #6360 Closes #6363 Calls/iOS #6346 is fixed in Pasta-Devs/Marinara-Agents#945 (Calls 1.0.17). Documentation translations are in #6364 and #6365, targeting `docs-i18n`. ## Why this change Resolve the current UI, agent-generation and media reports using the existing controls, provider paths and persistence formats. Slow backends also need an accessible place to adjust the limits already supported by the server. ## What changed - Built-in agents expose the existing context-source switches and preserve them through save/export/reload; grouped prompts still use the selected-source union. Previous output is loaded for built-ins; vector-memory controls still require their existing capability. - OpenAI-compatible calls stop at `[DONE]`, preserving text, reasoning, tools and usage even if the upstream HTTP response stays open. - Completion sounds and browser/native notifications wait for translation and its metadata save, with notification fallback when translation fails. - Native SwarmUI requests include configured LoRAs/weights and reference images. The connection editor offers an opt-in backend-save checkbox; custom workflows retain their existing path and debug logs redact reference data. - Saved chat defaults omit names and ignore names in legacy templates. Agent categories fit their labels; the Personas empty state is shortened. Mobile wizard footers stay within the chat area and long Game narration uses up to 45% of the small viewport. - Advanced Settings groups existing text, agent, Game image-prompt, media, ComfyUI and embedding limits. The allowlisted, validated values are stored atomically beside the active `.env`, without rewriting it. Admin access and a dedicated 30-per-minute rate-limit bucket protect writes. Text-related values affect new requests; media and installed packages require the explicitly documented restart. - Home heap checks use a proportional allowance while keeping structural leak checks. Storage shutdown tests use production logging and verify every store releases its exit hook, including failed closes. #6361 remains a design proposal assigned to @kolacheee. It explicitly requires a maintainer architecture decision before implementation and overlaps the contributor's ongoing ruleset work. ## Validation - [ ] `pnpm check` passes locally - [ ] Container built and ran without issue - [ ] Manually verify the changed flows in the browser - [ ] Check light/dark mode, mobile, empty and error states - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-run checks completed: - `pnpm install --frozen-lockfile` and `pnpm check` passed; final E2E type check passed. - Complete Node regression lane: **320/320 passed**, including prompt, provider, storage, media and security checks. Provider and wizard-name proofs fail before the changes and pass afterward. Native SwarmUI wire-format tests use an HTTP/WebSocket fixture. - **24/24 targeted browser cases passed** across desktop Chromium, Android-sized Chromium and iPhone-sized WebKit. They cover save/export/reload, bounds, timeout Settings, and all three modes' translation notifications (held translation, held persistence, failure, and disabled translation). - **Three consecutive Home lifecycle runs passed**. Ten existing chat-default/output-option browser cases also passed in light/dark desktop views. - Built the production Docker image; it serves the client and health API. Timeout settings saved through the real API and survived a container restart. - Local CodeRabbit completed. Its cancellation-test concern was addressed with an explicit watchdog assertion: the provider intentionally permits a cancelled reader to return a partial response or throw AbortError. Its request for hot-reloading media timeouts was declined to preserve existing startup-bound behavior, explicitly disclosed in Settings and docs, and avoid broadening this fix. Proof limits: no physical iOS 18.7/Termux device, real OpenRouter DeepSeek session, or GPU-backed SwarmUI server was available. The original intermittent storage-test hang did not reproduce in 125 stress runs; the change removes the unrelated pretty-logger worker and adds cleanup assertions instead of force-exiting the process. - [ ] Manually retest the reported Termux/OpenRouter agent stall and Stop button with the affected model. - [ ] Manually verify native SwarmUI LoRAs, references and backend files against the installed backend. - [ ] After changing media timeouts, restart the server and verify a slow real backend completes. ## Docs and release impact `CHANGELOG.md` records the product and test-workflow changes. Configuration docs describe timeout persistence, units, precedence and restart behavior; Claude-cache docs clarify the default TTL scope. All ten language packs are updated by #6364/#6365. The follow-up review checks passed: `pnpm check`, E2E type checking, provider/agent/timeout regressions and 21 browser cases. CodeRabbit’s four hosted findings are addressed. No Engine version bump. - [ ] Manually verify translated guides after refreshing their packs. ## UI evidence [Browser evidence gallery](https://gist.github.com/SpicyMarinara/09985efe25a0886d67755d87171823b5) contains downloadable HTML files with embedded original screenshots: baseline/fixed category buttons and narration, both category themes, built-in context controls, SwarmUI saving, wizard footer, and desktop/mobile timeout controls. The original mobile wizard clipping was not reproduced by the fixture; the revised panel is verified to fit its overlay and the short viewport. Owner: @SpicyMarinara, assisted by Codex. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Advanced settings for configuring and saving request timeouts. * Added context-source controls for built-in and custom agents. * Added a SwarmUI option to save generated images to the backend. * Added support for SwarmUI LoRA settings and reference images. * **Bug Fixes** * Notifications now appear after automatic translation finishes saving. * Improved mobile game narration sizing and agent filter layouts. * New chats no longer reuse saved chat names. * Improved OpenAI streaming completion handling and cleanup. * **Documentation** * Expanded timeout and Claude cache-duration guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:16:57 +07:00
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#7147
No description provided.