[PR #221] [CLOSED] feat(conversation): schedule generation preferences #4511

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/221
Author: @JorgeLTE
Created: 4/24/2026
Status: ❌ Closed

Base: main ← Head: feat/schedule-generation-preferences


📝 Commits (3)

  • 3b70aae feat(conversation): add schedule generation preferences
  • 78cf524 feat(conversation): add loading state to schedule regenerate button
  • 403f8f2 fix(conversation): address CodeRabbit review on PR #221

📊 Changes

7 files changed (+110 additions, -7 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+45 -4)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+6 -1)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+20 -0)
📝 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

## Summary

Related Discord thread: https://discord.com/channels/1417099416812392641/1496562105283776644


  • Adds a global Schedule generation preferences textarea in Settings -> General, so users can steer schedule generation. i.e. "Make everyone go to sleep before midnight", "Give characters free time 8am - 10am", etc.
  • Adds missing loading state to the per-chat "Regenerate" button.

Why

Before this change there was no way to influence schedule generation at the user level. Characters described as night owls or party DJs would routinely produce schedules that conflicted with the user''s real-life availability, and the only recourse was hand-editing each day in the per-chat ScheduleEditor. This adds a single free-form authorial field that carries across chats without introducing per-chat fan-out or invalidation complexity.

Test plan

  • pnpm check - passes (TypeScript + ESLint, all three workspaces)
  • Set a distinctive pref ("All characters must be offline 22:00-07:00") and create a new conversation chat with a character whose personality would normally conflict - confirm the generated schedule honors the constraint
  • Edit the pref, click Regenerate on an existing chat''s settings drawer - confirm the new schedule reflects the change
  • Clear the pref, Regenerate - confirm the system prompt no longer contains a "User preferences:" block (server logs) and output matches pre-feature behavior
  • Indicator row appears in the chat settings drawer when the pref is set, disappears when cleared
  • Regenerate button disables, spins, and labels "Regenerating..." during in-flight requests

Screenshots

  • Settings -> General: new textarea
    image

  • Chat settings drawer: active-preference indicator above the Regenerate button
    image

Summary by CodeRabbit

  • New Features

    • Added a persisted "Schedule generation preferences" setting in General settings for Conversation mode.
    • UI now displays the active preference in the chat settings drawer and shows improved loading/disabled state when regenerating schedules.
    • Schedule regeneration requests now include the user preference, and generated schedules honor those preferences.
  • Bug Fixes

    • Server validates and normalizes the preference input to ensure reliable schedule generation.

🔄 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/221 **Author:** [@JorgeLTE](https://github.com/JorgeLTE) **Created:** 4/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/schedule-generation-preferences` --- ### 📝 Commits (3) - [`3b70aae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3b70aae20c4ace34a7bdc6286bc968c5dfa440fc) feat(conversation): add schedule generation preferences - [`78cf524`](https://github.com/Pasta-Devs/Marinara-Engine/commit/78cf524f9acdbeac493bb70e74360efaf0af03e6) feat(conversation): add loading state to schedule regenerate button - [`403f8f2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/403f8f2900e5dbe096ebd13142bd984bdc4bf8a3) fix(conversation): address CodeRabbit review on PR #221 ### 📊 Changes **7 files changed** (+110 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+45 -4) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+6 -1) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+20 -0) 📝 `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) </details> ### 📄 Description ## Summary Related Discord thread: https://discord.com/channels/1417099416812392641/1496562105283776644  - Adds a global **Schedule generation preferences** textarea in Settings -> General, so users can steer schedule generation. i.e. "Make everyone go to sleep before midnight", "Give characters free time 8am - 10am", etc. - Adds missing **loading state** to the per-chat "Regenerate" button. ## Why Before this change there was no way to influence schedule generation at the user level. Characters described as night owls or party DJs would routinely produce schedules that conflicted with the user''s real-life availability, and the only recourse was hand-editing each day in the per-chat ScheduleEditor. This adds a single free-form authorial field that carries across chats without introducing per-chat fan-out or invalidation complexity. ## Test plan - [x] `pnpm check` - passes (TypeScript + ESLint, all three workspaces) - [x] Set a distinctive pref ("All characters must be offline 22:00-07:00") and create a new conversation chat with a character whose personality would normally conflict - confirm the generated schedule honors the constraint - [x] Edit the pref, click Regenerate on an existing chat''s settings drawer - confirm the new schedule reflects the change - [x] Clear the pref, Regenerate - confirm the system prompt no longer contains a "User preferences:" block (server logs) and output matches pre-feature behavior - [x] Indicator row appears in the chat settings drawer when the pref is set, disappears when cleared - [x] Regenerate button disables, spins, and labels "Regenerating..." during in-flight requests ## Screenshots - Settings -> General: new textarea <img width="655" height="914" alt="image" src="https://github.com/user-attachments/assets/80ad2e01-a60d-49af-9a8d-3ac3406480c4" /> - Chat settings drawer: active-preference indicator above the Regenerate button <img width="886" height="914" alt="image" src="https://github.com/user-attachments/assets/d4e51f77-9507-4d4a-b869-03540a82778f" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a persisted "Schedule generation preferences" setting in General settings for Conversation mode. * UI now displays the active preference in the chat settings drawer and shows improved loading/disabled state when regenerating schedules. * Schedule regeneration requests now include the user preference, and generated schedules honor those preferences. * **Bug Fixes** * Server validates and normalizes the preference input to ensure reliable schedule generation. <!-- 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:08:18 +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#4511
No description provided.