[PR #3927] [MERGED] Fix open issue sweep regressions #6162

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3927
Author: @SpicyMarinara
Created: 7/21/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/fix-issues-3921-3923


📝 Commits (5)

  • 36fd0f8 Start fixes for issues 3921-3923
  • d812152 Merge branch 'staging' into agent/fix-issues-3921-3923
  • 5e51791 Fix open issue sweep regressions
  • d8564d1 Merge remote-tracking branch 'origin/agent/fix-issues-3921-3923' into agent/fix-issues-3921-3923
  • ab73389 Address CodeRabbit review feedback

📊 Changes

10 files changed (+301 additions, -35 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+117 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+3 -1)
📝 packages/client/src/components/panels/settings/SettingControls.tsx (+17 -5)
📝 packages/client/src/lib/local-notifications.ts (+6 -3)
📝 packages/client/src/styles/globals.css (+17 -0)
📝 packages/server/src/db/seed-backgrounds.ts (+38 -19)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+12 -6)
📝 scripts/regressions/open-issues.regression.ts (+40 -0)
📝 scripts/regressions/prompt.regression.ts (+2 -1)
📝 scripts/regressions/provider-compat.regression.ts (+49 -0)

📄 Description

Linked issues

Closes #3897
Closes #3919
Closes #3921
Closes #3922
Closes #3923
Closes #3928

Why this change

The remaining open issue sweep exposed six small regressions across otherwise-supported paths:

  • mobile inline and fenced code could still retain unbroken, viewport-widening text;
  • the public-agent documentation regression assumed LF line endings;
  • the default Roleplay background referenced a Black.jpg that was never installed;
  • Conversation mode supported custom agents at runtime but omitted their existing controls;
  • custom OpenAI-compatible requests could strip an explicitly supplied min_p;
  • notification permission failures on insecure browser origins produced misleading generic denial feedback.

What changed

  • wrap inline and fenced code on mobile while retaining the existing desktop code-block behavior;
  • compare documented agent headings independently of LF/CRLF line endings;
  • restore a tiny built-in black fallback on startup without replacing user backgrounds;
  • reuse the existing custom-agent picker and settings card in Conversation Chat Settings;
  • preserve explicitly supplied custom sampler parameters while still stripping unsupported inferred samplers;
  • identify insecure browser contexts and show actionable HTTPS/localhost or blocked-permission guidance.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated proof completed by Codex:

  • pnpm check — passed after integrating the latest staging merge.
  • pnpm regression:providers — passed, including explicit min_p on gpt-5.6-local.
  • pnpm regression:issues — passed, including fallback-background restoration, notification guidance, and mobile markdown rules.
  • pnpm regression:prompt — passed, including the CRLF-safe public-agent reference check.
  • Targeted desktop Playwright flow — passed: attach a custom agent in Conversation settings and retain it after reload.
  • Targeted mobile Playwright flow — passed: long inline and fenced Roleplay code remains inside a 390px viewport.
  • git diff --check — passed.

Manual verification notes

  • On an Android browser reached over plain HTTP, enable Browser notifications and verify the HTTPS/localhost guidance appears.
  • On an Android browser reached over valid HTTPS, reset site notification permission and verify the native prompt can appear.
  • On iOS Safari, verify long inline and fenced code wraps inside the message width.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No release metadata or user documentation changes are required.

UI evidence (if applicable)

Automated viewport and settings-flow coverage is included. Manual device verification remains listed above.

Summary by CodeRabbit

  • New Features

    • Added custom agent selection and active-agent settings to conversation chat settings.
    • Preserved custom agent settings after page reloads.
    • Added a bundled default black background while preserving custom backgrounds.
    • Custom model parameters are now respected for compatible providers.
  • Bug Fixes

    • Improved browser notification guidance for unsupported, denied, or insecure environments.
    • Prevented inline and fenced code from overflowing chat messages on mobile devices.
  • Tests

    • Added regression coverage for custom agents, notifications, backgrounds, provider parameters, and mobile code rendering.

🔄 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/3927 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/21/2026 **Status:** ✅ Merged **Merged:** 7/21/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-issues-3921-3923` --- ### 📝 Commits (5) - [`36fd0f8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/36fd0f8b714b936edd2b850abfffca09b3e6401d) Start fixes for issues 3921-3923 - [`d812152`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d81215260ecada656081731b3f24b8bd5cf5dcc0) Merge branch 'staging' into agent/fix-issues-3921-3923 - [`5e51791`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5e51791434bd729086d0c7a6f0891550bf513fc3) Fix open issue sweep regressions - [`d8564d1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d8564d1b9775cdbd3d6bc283d06694c8840b30b0) Merge remote-tracking branch 'origin/agent/fix-issues-3921-3923' into agent/fix-issues-3921-3923 - [`ab73389`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ab733899e9ff6313c875c81bc49d34a4165f3426) Address CodeRabbit review feedback ### 📊 Changes **10 files changed** (+301 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+117 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+3 -1) 📝 `packages/client/src/components/panels/settings/SettingControls.tsx` (+17 -5) 📝 `packages/client/src/lib/local-notifications.ts` (+6 -3) 📝 `packages/client/src/styles/globals.css` (+17 -0) 📝 `packages/server/src/db/seed-backgrounds.ts` (+38 -19) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+12 -6) 📝 `scripts/regressions/open-issues.regression.ts` (+40 -0) 📝 `scripts/regressions/prompt.regression.ts` (+2 -1) 📝 `scripts/regressions/provider-compat.regression.ts` (+49 -0) </details> ### 📄 Description ## Linked issues Closes #3897 Closes #3919 Closes #3921 Closes #3922 Closes #3923 Closes #3928 ## Why this change The remaining open issue sweep exposed six small regressions across otherwise-supported paths: - mobile inline and fenced code could still retain unbroken, viewport-widening text; - the public-agent documentation regression assumed LF line endings; - the default Roleplay background referenced a `Black.jpg` that was never installed; - Conversation mode supported custom agents at runtime but omitted their existing controls; - custom OpenAI-compatible requests could strip an explicitly supplied `min_p`; - notification permission failures on insecure browser origins produced misleading generic denial feedback. ## What changed - wrap inline and fenced code on mobile while retaining the existing desktop code-block behavior; - compare documented agent headings independently of LF/CRLF line endings; - restore a tiny built-in black fallback on startup without replacing user backgrounds; - reuse the existing custom-agent picker and settings card in Conversation Chat Settings; - preserve explicitly supplied custom sampler parameters while still stripping unsupported inferred samplers; - identify insecure browser contexts and show actionable HTTPS/localhost or blocked-permission guidance. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated proof completed by Codex: - `pnpm check` — passed after integrating the latest `staging` merge. - `pnpm regression:providers` — passed, including explicit `min_p` on `gpt-5.6-local`. - `pnpm regression:issues` — passed, including fallback-background restoration, notification guidance, and mobile markdown rules. - `pnpm regression:prompt` — passed, including the CRLF-safe public-agent reference check. - Targeted desktop Playwright flow — passed: attach a custom agent in Conversation settings and retain it after reload. - Targeted mobile Playwright flow — passed: long inline and fenced Roleplay code remains inside a 390px viewport. - `git diff --check` — passed. ### Manual verification notes - [ ] On an Android browser reached over plain HTTP, enable Browser notifications and verify the HTTPS/localhost guidance appears. - [ ] On an Android browser reached over valid HTTPS, reset site notification permission and verify the native prompt can appear. - [ ] On iOS Safari, verify long inline and fenced code wraps inside the message width. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No release metadata or user documentation changes are required. ## UI evidence (if applicable) Automated viewport and settings-flow coverage is included. Manual device verification remains listed above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added custom agent selection and active-agent settings to conversation chat settings. * Preserved custom agent settings after page reloads. * Added a bundled default black background while preserving custom backgrounds. * Custom model parameters are now respected for compatible providers. * **Bug Fixes** * Improved browser notification guidance for unsupported, denied, or insecure environments. * Prevented inline and fenced code from overflowing chat messages on mobile devices. * **Tests** * Added regression coverage for custom agents, notifications, backgrounds, provider parameters, and mobile code rendering. <!-- 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:07:41 +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#6162
No description provided.