mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #264] [MERGED] feat(conversation): schedule generation preferences (relocated) #4535
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4535
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/264
Author: @LukaTheHero
Created: 4/27/2026
Status: ✅ Merged
Merged: 4/27/2026
Merged by: @LukaTheHero
Base:
main← Head:feat/schedule-prefs-relocated📝 Commits (4)
3b70aaefeat(conversation): add schedule generation preferences78cf524feat(conversation): add loading state to schedule regenerate button403f8f2fix(conversation): address CodeRabbit review on PR #22170a3edbfix(conversation): move schedule prefs textarea from General to chat settings📊 Changes
7 files changed (+110 additions, -8 deletions)
View changed files
📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+65 -4)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+6 -1)📝
packages/client/src/components/panels/SettingsPanel.tsx(+0 -1)📝
packages/client/src/hooks/use-autonomous-messaging.ts(+6 -1)📝
packages/client/src/stores/ui.store.ts(+9 -0)📝
packages/server/src/routes/conversation.routes.ts(+14 -1)📝
packages/server/src/services/conversation/schedule.service.ts(+10 -0)📄 Description
Why this change
Builds on @JorgeLTE's work in #221. The feature itself — global authorial guidance for character schedule generation, the active-preference indicator card in the chat settings drawer, the regenerate-button loading state, server-side validation, the per-call wiring across
ChatSetupWizard,useAutonomousMessaging, and the manual Regenerate button — all lands as Jorge wrote it. Only the input control's location has changed, per the discussion in #221 (comment).What moved
The "Schedule generation preferences" textarea was originally placed in
Settings → General. Three reasons that didn't fit:User preferences:block. That's the same kind of content as Author's Notes orcustomConversationPrompt, not the same kind as "messages per page" or "send on Enter".Marinara called for
Conversations → Chat Settings → Agents → Schedules. The functional equivalent in the codebase is the Autonomous Messaging section of the chat settings drawer, where all the schedule machinery already lives (Autonomous Messages toggle, Character Exchanges toggle, Selfie Connection, Schedule status, Regenerate button, ScheduleEditor).Where it is now
ChatSettingsDrawer.tsxAutonomous Messaging section, ordered top-to-bottom:The editor → indicator → regenerate → per-character editor flow now reads as one coherent column inside one section.
Implementation notes
scheduleGenerationPreferences), so it's the same global preference Jorge designed — not per-chat. TheHelpTooltiptext explicitly says "This setting is global — it applies to every conversation chat" so users don't get confused by the in-chat-settings location into expecting per-chat scope.ChatSetupWizard,useAutonomousMessaging, the manual Regenerate handler), the server route's body validation and prompt injection inschedule.service.ts— all preserved untouched.Validation
pnpm checkpasses (TS + ESLint + build, all three workspaces)POST /conversation/schedule/generateon the manual Regenerate path. Confirmed the textarea is gone fromSettings → General. Switching between conversation chats keeps the value (global store, not per-chat). Switching to a non-conversation chat hides the section entirely (existingisConversationgate still applies).Credit
Original feature work is @JorgeLTE's in #221 — those three commits (the feature, the loading state fix, the CodeRabbit follow-up) are preserved on this branch with their authorship intact. This PR only relocates the input control.
Summary by CodeRabbit
New Features
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.