[PR #5936] [MERGED] Issue Sweep: prompt and connection controls #6998

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

📋 Pull Request Information

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

Base: staging ← Head: feat/issue-sweep-prompt-controls-sep7


📝 Commits (7)

  • aa82956 chore: claim assigned prompt and connection controls
  • 7ab48d7 feat: add prompt history, provider and illustration controls
  • d53ef1d Merge remote-tracking branch 'origin/staging' into feat/issue-sweep-prompt-controls-sep7
  • 21ce279 Merge remote-tracking branch 'origin/staging' into feat/issue-sweep-prompt-controls-sep7
  • f61bed4 fix: preserve prompt review and inherited history defaults
  • 560cc06 Merge remote-tracking branch 'origin/staging' into feat/issue-sweep-prompt-controls-sep7
  • 2a2560c fix: share Illustrator review across chat surfaces

📊 Changes

30 files changed (+816 additions, -133 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
➕ e2e/prompt-controls.e2e.ts (+295 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+42 -17)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatInput.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+5 -9)
📝 packages/client/src/components/chat/ConversationInput.tsx (+1 -1)
📝 packages/client/src/components/chat/ConversationView.tsx (+1 -1)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+5 -1)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+4 -1)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+83 -18)
📝 packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx (+12 -1)
📝 packages/client/src/hooks/use-generate.ts (+1 -0)
📝 packages/client/src/lib/slash-commands.ts (+4 -4)
📝 packages/client/src/localization/locales/en.json (+11 -1)
📝 packages/server/src/routes/generate.routes.ts (+7 -39)
📝 packages/server/src/routes/generate/dry-run-route.ts (+7 -6)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+41 -7)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+15 -9)

...and 10 more files

📄 Description

Linked issue

Closes #5909
Closes #5910
Closes #5914
Closes #5915

Why this change

Assigned issue sweep for @SpicyMarinara. Users need control over provider routing, non-secret provider headers and history formatting, and a way to illustrate a specific subject without importing the current scene. Existing open/draft PRs, including NanoGPT catalog work in #5771, are excluded.

What changed

  • Reuse the service-tier controls for NanoGPT and validate custom connection headers before binding them to existing HTTP providers. Credentials and transport headers remain managed by Engine; subscription providers are excluded.
  • Reuse the existing history-format flags for Apply / Don't Apply / Single User Message. Apply remains the default; leading system sections stay together, and final formatting runs after audience filtering and context fitting. Live tool exchanges and attachments are preserved.
  • Pass optional /illustrate text through the existing Illustrator override path; explicit subjects omit scene/character reference attachments. Honor the saved image-prompt review preference, including cancellation and editing before sending. Bare /illustrate is unchanged. Reuse the same review dialog in Conversation for its existing server review events.
  • Add canonical English labels, accessible mobile Save naming, changelog entries and focused regressions.

Automated evidence

  • pnpm check: passed.
  • pnpm regression:prompt: 3 passed.
  • node scripts/run-regressions.mjs --filter scripts/regressions/prompt-controls.regression.ts: passed. Covers all history shapes, leading systems, attachments, immutable inputs, audience filtering, tool exchanges, header validation and captured native-provider HTTP requests. No paid API calls.
  • pnpm exec playwright test e2e/prompt-controls.e2e.ts --workers=1: 6 passed (desktop Chromium, mobile Chromium, mobile WebKit). Uses the real settings UI and server storage/preview endpoints, reloads saved history settings, saves connection headers and routing, checks explicit/bare slash-command dispatch, and verifies typed image-prompt review sends nothing on cancel and only the edited subject on confirmation.

The final browser run also covers Conversation review-event visibility/cancellation. Resource creation is enclosed in cleanup, and every owned fixture deletion is started even if another deletion fails. Polling waits for asynchronous metadata persistence without dereferencing absent parameters.

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

Manual verification notes

Manually verify custom headers and service tier against the intended live provider, all three history formats against its chat template, and paid Illustrator output for explicit versus bare /illustrate. Physical iPhone and live paid generation are not claimed; WebKit coverage is browser automation. Checkboxes remain the human contributor's TO-DO list.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

No release version changes. Canonical UI localization and changelog are included; existing controls/styling are reused.

UI evidence (if applicable)

The browser regression attaches screenshots of post-processing and connection controls for all three projects.

Summary by CodeRabbit

  • New Features

    • Added Advanced Parameters controls for strict role formatting and sending chat history as a single user message.
    • Added service-tier selection for NanoGPT connections.
    • Added validated custom request headers for supported language connections.
    • /illustrate now accepts an optional prompt and supports subject-only image generation during prompt review.
  • Bug Fixes

    • Improved message formatting and preservation of media and tool exchanges across generated requests.
    • Standardized prompt review behavior in conversation and roleplay modes.

🔄 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/5936 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/7/2026 **Status:** ✅ Merged **Merged:** 9/8/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/issue-sweep-prompt-controls-sep7` --- ### 📝 Commits (7) - [`aa82956`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aa82956af4207aad6f0489e28cc2d372dd7daeb5) chore: claim assigned prompt and connection controls - [`7ab48d7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7ab48d76ee87f822836fbcd67516318d6ff81c6a) feat: add prompt history, provider and illustration controls - [`d53ef1d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d53ef1d3d7620cd912924b3c363bf6c248f1be25) Merge remote-tracking branch 'origin/staging' into feat/issue-sweep-prompt-controls-sep7 - [`21ce279`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21ce27974d314a170f76b1fd3fec68c252fb951d) Merge remote-tracking branch 'origin/staging' into feat/issue-sweep-prompt-controls-sep7 - [`f61bed4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f61bed490fb8cf9e98a87456e7bdef28c061ecc3) fix: preserve prompt review and inherited history defaults - [`560cc06`](https://github.com/Pasta-Devs/Marinara-Engine/commit/560cc06745157c6cb05e7c7ab7c4baf610eebace) Merge remote-tracking branch 'origin/staging' into feat/issue-sweep-prompt-controls-sep7 - [`2a2560c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2a2560cf2231e0d05e5b41ed20f166aa497ee8ca) fix: share Illustrator review across chat surfaces ### 📊 Changes **30 files changed** (+816 additions, -133 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) ➕ `e2e/prompt-controls.e2e.ts` (+295 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+42 -17) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+5 -9) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+1 -1) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+5 -1) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+4 -1) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+83 -18) 📝 `packages/client/src/features/chat-settings/sections/AdvancedParametersSection.tsx` (+12 -1) 📝 `packages/client/src/hooks/use-generate.ts` (+1 -0) 📝 `packages/client/src/lib/slash-commands.ts` (+4 -4) 📝 `packages/client/src/localization/locales/en.json` (+11 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+7 -39) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+7 -6) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+41 -7) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+15 -9) _...and 10 more files_ </details> ### 📄 Description ## Linked issue Closes #5909 Closes #5910 Closes #5914 Closes #5915 ## Why this change Assigned issue sweep for @SpicyMarinara. Users need control over provider routing, non-secret provider headers and history formatting, and a way to illustrate a specific subject without importing the current scene. Existing open/draft PRs, including NanoGPT catalog work in #5771, are excluded. ## What changed - Reuse the service-tier controls for NanoGPT and validate custom connection headers before binding them to existing HTTP providers. Credentials and transport headers remain managed by Engine; subscription providers are excluded. - Reuse the existing history-format flags for Apply / Don't Apply / Single User Message. Apply remains the default; leading system sections stay together, and final formatting runs after audience filtering and context fitting. Live tool exchanges and attachments are preserved. - Pass optional `/illustrate` text through the existing Illustrator override path; explicit subjects omit scene/character reference attachments. Honor the saved image-prompt review preference, including cancellation and editing before sending. Bare `/illustrate` is unchanged. Reuse the same review dialog in Conversation for its existing server review events. - Add canonical English labels, accessible mobile Save naming, changelog entries and focused regressions. ## Automated evidence - `pnpm check`: passed. - `pnpm regression:prompt`: 3 passed. - `node scripts/run-regressions.mjs --filter scripts/regressions/prompt-controls.regression.ts`: passed. Covers all history shapes, leading systems, attachments, immutable inputs, audience filtering, tool exchanges, header validation and captured native-provider HTTP requests. No paid API calls. - `pnpm exec playwright test e2e/prompt-controls.e2e.ts --workers=1`: 6 passed (desktop Chromium, mobile Chromium, mobile WebKit). Uses the real settings UI and server storage/preview endpoints, reloads saved history settings, saves connection headers and routing, checks explicit/bare slash-command dispatch, and verifies typed image-prompt review sends nothing on cancel and only the edited subject on confirmation. The final browser run also covers Conversation review-event visibility/cancellation. Resource creation is enclosed in cleanup, and every owned fixture deletion is started even if another deletion fails. Polling waits for asynchronous metadata persistence without dereferencing absent parameters. ## 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` ### Manual verification notes Manually verify custom headers and service tier against the intended live provider, all three history formats against its chat template, and paid Illustrator output for explicit versus bare `/illustrate`. Physical iPhone and live paid generation are not claimed; WebKit coverage is browser automation. Checkboxes remain the human contributor's TO-DO list. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) No release version changes. Canonical UI localization and changelog are included; existing controls/styling are reused. ## UI evidence (if applicable) The browser regression attaches screenshots of post-processing and connection controls for all three projects. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Advanced Parameters controls for strict role formatting and sending chat history as a single user message. * Added service-tier selection for NanoGPT connections. * Added validated custom request headers for supported language connections. * `/illustrate` now accepts an optional prompt and supports subject-only image generation during prompt review. * **Bug Fixes** * Improved message formatting and preservation of media and tool exchanges across generated requests. * Standardized prompt review behavior in conversation and roleplay modes. <!-- 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:15:36 +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#6998
No description provided.