[PR #3236] [MERGED] More schedule schenanigans #5857

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

📋 Pull Request Information

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

Base: staging ← Head: more-schedule-schenanigans


📝 Commits (10+)

  • f7c1ff2 Extract schedule editor to modal and add per-character daily caps
  • b9ac65a Default Vite dev server host to all interfaces
  • 21a8174 Enhance character schedule editing with AI drafting
  • fca06db Save generated routine summaries immediately
  • 4b83c7f Refine conversation schedule preview expansion
  • c6cb9d9 Resolve staging merge conflicts in chat UI
  • 06e461d Merge staging conflict resolution
  • 49a9e19 Restore staging merge contents
  • 31034ef Fix chat presence merge syntax
  • a7aeb6a Remove workspace-only launch metadata

📊 Changes

16 files changed (+1772 additions, -660 deletions)

View changed files

➕ packages/client/src/components/chat/CharacterScheduleEditorModal.tsx (+959 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+63 -0)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+3 -0)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+4 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+3 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+35 -377)
📝 packages/client/src/components/chat/ConversationPresenceCard.tsx (+82 -220)
➕ packages/client/src/components/chat/ConversationPresenceScheduleSection.tsx (+228 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+4 -0)
📝 packages/client/src/lib/chat-macros.ts (+2 -2)
📝 packages/server/src/routes/conversation.routes.ts (+145 -2)
📝 packages/server/src/services/conversation/autonomous.service.ts (+6 -3)
📝 packages/server/src/services/conversation/intent.service.ts (+2 -9)
📝 packages/server/src/services/conversation/schedule.service.ts (+209 -42)
📝 packages/server/src/services/conversation/server-autonomous-scheduler.service.ts (+9 -5)
📝 packages/shared/src/utils/conversation-presence.ts (+18 -0)

📄 Description

Linked issue

Closes #

No linked issue yet. This should be opened or linked before the PR is submitted for review, per CONTRIBUTING.md.

Why this change

  • Character schedules are becoming a larger part of conversation mode, but the existing controls were cramped inside chat settings and did not make it easy to inspect, refine, or regenerate routines.
  • This gives schedule editing its own focused UI and improves schedule generation so characters can keep more coherent autonomous availability across chats.

What changed

  • Extracted character schedule editing into a dedicated modal and wired it from chat, conversation, roleplay, and presence surfaces.
  • Added per-character routine controls, daily autonomous message caps, and expanded schedule preview/edit affordances.
  • Added AI-assisted schedule drafting endpoints, including full schedule drafts, day-level regeneration, and routine summary generation.
  • Preserved user-tuned schedule timing settings and daily cap overrides when schedules are regenerated or shared from another chat.
  • Updated autonomous scheduling logic to use character-specific daily caps and routine intent hints.
  • Added shared conversation presence utilities used by the client and schedule status display.

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

  • Open conversation mode and generate schedules for a chat with multiple characters.
  • Open the schedule editor from settings and from the presence card.
  • Edit a character routine and confirm it persists after closing and reopening the modal.
  • Regenerate a full draft and a single day draft, then save the result.
  • Set a per-character autonomous daily cap and confirm the cap remains after schedule regeneration.
  • Check light mode, dark mode, and a mobile-width viewport.

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 version or release metadata changes are intended.

UI evidence (if applicable)

Bildschirmfoto 2026-07-05 um 14 49 30 Bildschirmfoto 2026-07-05 um 14 48 54 Bildschirmfoto 2026-07-05 um 14 48 34

Screenshots or a short recording should be added after browser verification.

Summary by CodeRabbit

  • New Features

    • Added a character weekly conversation schedule editor with per-day block editing, timing/autonomous controls, and routine summary generation/refresh.
    • Added AI-based schedule regeneration (whole-week or per-day) with guidance and “next upcoming” schedule previews.
    • Integrated schedule editing entry points across chat and presence views in supported chat modes.
  • Bug Fixes

    • Improved autonomous messaging by honoring disabled intents and correctly applying daily cap overrides (including clamping and combining chat/character settings).
    • Enhanced schedule rendering logic to avoid duplicate character entries and show more consistent upcoming-block behavior.

🔄 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/3236 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 7/5/2026 **Status:** ✅ Merged **Merged:** 7/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `more-schedule-schenanigans` --- ### 📝 Commits (10+) - [`f7c1ff2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f7c1ff2268dd3b8548787096230e3871ffa3a6f5) Extract schedule editor to modal and add per-character daily caps - [`b9ac65a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b9ac65aa7b9bb7ab942bd1c59cef3aaaa6203a34) Default Vite dev server host to all interfaces - [`21a8174`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21a8174a66a531d68e06627070ca04754db0436a) Enhance character schedule editing with AI drafting - [`fca06db`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fca06dbe848dde963227a21bf9b1570afed58e05) Save generated routine summaries immediately - [`4b83c7f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4b83c7f06e33b85784b81b54f9c2280a469b3bb1) Refine conversation schedule preview expansion - [`c6cb9d9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c6cb9d99528cf3b14c71715a80b8370661196256) Resolve staging merge conflicts in chat UI - [`06e461d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/06e461d318aaa8f6e6452d8811735cea52c54480) Merge staging conflict resolution - [`49a9e19`](https://github.com/Pasta-Devs/Marinara-Engine/commit/49a9e19ec76b1fc97ebebe4f0d9d4710f591fe35) Restore staging merge contents - [`31034ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/31034ef40af3921d0ee9ff51d382b5914bddd66a) Fix chat presence merge syntax - [`a7aeb6a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a7aeb6aff41ff148312199cef373e0622b984b2e) Remove workspace-only launch metadata ### 📊 Changes **16 files changed** (+1772 additions, -660 deletions) <details> <summary>View changed files</summary> ➕ `packages/client/src/components/chat/CharacterScheduleEditorModal.tsx` (+959 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+63 -0) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+3 -0) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+4 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+3 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+35 -377) 📝 `packages/client/src/components/chat/ConversationPresenceCard.tsx` (+82 -220) ➕ `packages/client/src/components/chat/ConversationPresenceScheduleSection.tsx` (+228 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+4 -0) 📝 `packages/client/src/lib/chat-macros.ts` (+2 -2) 📝 `packages/server/src/routes/conversation.routes.ts` (+145 -2) 📝 `packages/server/src/services/conversation/autonomous.service.ts` (+6 -3) 📝 `packages/server/src/services/conversation/intent.service.ts` (+2 -9) 📝 `packages/server/src/services/conversation/schedule.service.ts` (+209 -42) 📝 `packages/server/src/services/conversation/server-autonomous-scheduler.service.ts` (+9 -5) 📝 `packages/shared/src/utils/conversation-presence.ts` (+18 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes # No linked issue yet. This should be opened or linked before the PR is submitted for review, per CONTRIBUTING.md. ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Character schedules are becoming a larger part of conversation mode, but the existing controls were cramped inside chat settings and did not make it easy to inspect, refine, or regenerate routines. - This gives schedule editing its own focused UI and improves schedule generation so characters can keep more coherent autonomous availability across chats. ## What changed <!-- List the key changes in this PR --> - Extracted character schedule editing into a dedicated modal and wired it from chat, conversation, roleplay, and presence surfaces. - Added per-character routine controls, daily autonomous message caps, and expanded schedule preview/edit affordances. - Added AI-assisted schedule drafting endpoints, including full schedule drafts, day-level regeneration, and routine summary generation. - Preserved user-tuned schedule timing settings and daily cap overrides when schedules are regenerated or shared from another chat. - Updated autonomous scheduling logic to use character-specific daily caps and routine intent hints. - Added shared conversation presence utilities used by the client and schedule status display. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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 <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - [ ] Open conversation mode and generate schedules for a chat with multiple characters. - [ ] Open the schedule editor from settings and from the presence card. - [ ] Edit a character routine and confirm it persists after closing and reopening the modal. - [ ] Regenerate a full draft and a single day draft, then save the result. - [ ] Set a per-character autonomous daily cap and confirm the cap remains after schedule regeneration. - [ ] Check light mode, dark mode, and a mobile-width viewport. ## 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 version or release metadata changes are intended. ## UI evidence (if applicable) <img width="1106" height="913" alt="Bildschirmfoto 2026-07-05 um 14 49 30" src="https://github.com/user-attachments/assets/437acc94-dfd5-4585-b180-a1653e57e68a" /> <img width="1116" height="919" alt="Bildschirmfoto 2026-07-05 um 14 48 54" src="https://github.com/user-attachments/assets/7ec437cd-bdb4-4ab1-84e3-fbd102f7aa41" /> <img width="378" height="480" alt="Bildschirmfoto 2026-07-05 um 14 48 34" src="https://github.com/user-attachments/assets/9b03cfdb-dde8-4258-bb99-81a69d1799a4" /> Screenshots or a short recording should be added after browser verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a character weekly conversation schedule editor with per-day block editing, timing/autonomous controls, and routine summary generation/refresh. * Added AI-based schedule regeneration (whole-week or per-day) with guidance and “next upcoming” schedule previews. * Integrated schedule editing entry points across chat and presence views in supported chat modes. * **Bug Fixes** * Improved autonomous messaging by honoring disabled intents and correctly applying daily cap overrides (including clamping and combining chat/character settings). * Enhanced schedule rendering logic to avoid duplicate character entries and show more consistent upcoming-block behavior. <!-- 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:20:14 +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#5857
No description provided.