[PR #766] [MERGED] Add NovelAI prompt controls for selfies and Illustrator #4765

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/766
Author: @cha1latte
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @cha1latte

Base: main ← Head: feat/issue-688-novelai-prompts


📝 Commits (3)

  • ceeef1b Add NovelAI prompt controls
  • 7c78bdf Add issue 688 UI evidence
  • 8c635ef Address NovelAI prompt review feedback

📊 Changes

7 files changed (+147 additions, -64 deletions)

View changed files

➕ docs/pr-evidence/issue-688/illustrator-prompt-controls.png (+0 -0)
➕ docs/pr-evidence/issue-688/selfie-prompt-controls.png (+0 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+45 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+67 -53)
📝 packages/server/src/routes/generate.routes.ts (+22 -10)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+9 -1)
📝 packages/shared/src/types/chat.ts (+4 -0)

📄 Description

Linked issue

Closes #688

Why this change

  • NovelAI users need a discoverable place to enter positive and negative prompt tags for both conversation selfies and normal Illustrator image generation, without guessing whether editing the Illustrator prompt affects Selfie Mode.

What changed

  • Added chat-level Selfie positive and negative prompt fields in the Commands settings.
  • Replaced the old Selfie tag chip editor with textareas that support direct NovelAI tag syntax, while preserving existing selfieTags as the initial positive prompt fallback.
  • Added Illustrator agent positive and negative prompt fields saved with the agent settings.
  • Appended saved positive prompts to generated image prompts and forwarded saved negative prompts through generateImage for Selfie, Illustrator, and retry-agent image generation.

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

  • Codex ran pnpm check successfully on the code commit (ceeef1b).
  • Codex ran git diff --check successfully after adding screenshot evidence (7c78bdf).
  • Codex verified the changed server files do not add console.*.
  • Codex ran the app locally on May 13, 2026 with the server at 127.0.0.1:7890 and Vite at localhost:5175, seeded an image-generation connection and conversation chat, opened the real browser UI, expanded the conversation chat Commands settings, and verified the Selfie Connection plus positive/negative prompt fields render with persisted values.
  • Codex opened the real browser UI to the Illustrator agent settings and verified the Image Generation Connection Override plus positive/negative prompt fields render with persisted values.
  • Codex re-read the seeded chat and Illustrator agent through the API and confirmed selfiePositivePrompt, selfieNegativePrompt, settings.imageConnectionId, settings.imagePositivePrompt, and settings.imageNegativePrompt persisted.
  • Not run: live NovelAI provider generation, because this environment does not have NovelAI credentials. The UI/config plumbing and build/type validation are verified; one credentialed provider smoke test remains a human-only check.

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 docs or release/version files changed.

UI evidence (if applicable)

Conversation Selfie prompt controls:

Conversation Selfie prompt controls

Illustrator prompt controls:

Illustrator prompt controls

Summary by CodeRabbit

  • New Features
    • Illustrator agents now support per-agent customization of positive and negative image prompts for enhanced control over image generation
    • Selfie chat mode now includes custom positive and negative prompt editing capabilities
    • Custom prompts are merged with provider defaults during image generation

Review Change Stack


🔄 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/766 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/12/2026 **Status:** ✅ Merged **Merged:** 5/13/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `feat/issue-688-novelai-prompts` --- ### 📝 Commits (3) - [`ceeef1b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ceeef1bb5bfb352463d2cc97a65baa93392f4621) Add NovelAI prompt controls - [`7c78bdf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7c78bdf1c07b1dc541265ac6d92974b681d3475e) Add issue 688 UI evidence - [`8c635ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8c635efd918618c12844011b2377dea00f010a28) Address NovelAI prompt review feedback ### 📊 Changes **7 files changed** (+147 additions, -64 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-688/illustrator-prompt-controls.png` (+0 -0) ➕ `docs/pr-evidence/issue-688/selfie-prompt-controls.png` (+0 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+45 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+67 -53) 📝 `packages/server/src/routes/generate.routes.ts` (+22 -10) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+9 -1) 📝 `packages/shared/src/types/chat.ts` (+4 -0) </details> ### 📄 Description ## Linked issue Closes #688 ## Why this change - NovelAI users need a discoverable place to enter positive and negative prompt tags for both conversation selfies and normal Illustrator image generation, without guessing whether editing the Illustrator prompt affects Selfie Mode. ## What changed - Added chat-level Selfie positive and negative prompt fields in the Commands settings. - Replaced the old Selfie tag chip editor with textareas that support direct NovelAI tag syntax, while preserving existing `selfieTags` as the initial positive prompt fallback. - Added Illustrator agent positive and negative prompt fields saved with the agent settings. - Appended saved positive prompts to generated image prompts and forwarded saved negative prompts through `generateImage` for Selfie, Illustrator, and retry-agent image generation. ## 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 - Codex ran `pnpm check` successfully on the code commit (`ceeef1b`). - Codex ran `git diff --check` successfully after adding screenshot evidence (`7c78bdf`). - Codex verified the changed server files do not add `console.*`. - Codex ran the app locally on May 13, 2026 with the server at `127.0.0.1:7890` and Vite at `localhost:5175`, seeded an image-generation connection and conversation chat, opened the real browser UI, expanded the conversation chat Commands settings, and verified the Selfie Connection plus positive/negative prompt fields render with persisted values. - Codex opened the real browser UI to the Illustrator agent settings and verified the Image Generation Connection Override plus positive/negative prompt fields render with persisted values. - Codex re-read the seeded chat and Illustrator agent through the API and confirmed `selfiePositivePrompt`, `selfieNegativePrompt`, `settings.imageConnectionId`, `settings.imagePositivePrompt`, and `settings.imageNegativePrompt` persisted. - Not run: live NovelAI provider generation, because this environment does not have NovelAI credentials. The UI/config plumbing and build/type validation are verified; one credentialed provider smoke test remains a human-only check. ## 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 docs or release/version files changed. ## UI evidence (if applicable) Conversation Selfie prompt controls: ![Conversation Selfie prompt controls](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/7c78bdf1c07b1dc541265ac6d92974b681d3475e/docs/pr-evidence/issue-688/selfie-prompt-controls.png) Illustrator prompt controls: ![Illustrator prompt controls](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/7c78bdf1c07b1dc541265ac6d92974b681d3475e/docs/pr-evidence/issue-688/illustrator-prompt-controls.png) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Illustrator agents now support per-agent customization of positive and negative image prompts for enhanced control over image generation * Selfie chat mode now includes custom positive and negative prompt editing capabilities * Custom prompts are merged with provider defaults during image generation <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/766) <!-- review_stack_entry_end --> <!-- 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-22 04:10:27 +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#4765
No description provided.