mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #333] [MERGED] feat(conversation): configurable day rollover hour and message tail #4565
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#4565
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/333
Author: @JorgeLTE
Created: 4/30/2026
Status: ✅ Merged
Merged: 5/3/2026
Merged by: @SpicyMarinara
Base:
main← Head:feat/conversation-day-rollover-and-tail📝 Commits (6)
50897c6feat(chat): configurable day rollover hour and verbatim message tailc9d0fbfchore(server): drop dev-only rollover seed script from the PR467ef35Merge branch 'main' into feat/conversation-day-rollover-and-tail8990efefix(chat): align dayRolloverHour clamp with UI 0-11 rangee105738Merge branch 'main' into feat/conversation-day-rollover-and-tail0bc34b3Merge branch 'main' into feat/conversation-day-rollover-and-tail📊 Changes
4 files changed (+210 additions, -26 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+96 -9)📝
packages/server/src/routes/generate.routes.ts(+100 -17)📝
packages/shared/src/types/chat.ts(+13 -0)📄 Description
Linked issue
Closes #334
Why this change
What changed
dayRolloverHour(default4): shifts the logical "day" boundary. Messages timestamped before this hour are filed under the previous logical day, so a single late-night session lives in one bucket instead of two. The samelogicalNowvalue drives both day-bucketing and week-consolidation, so the two boundaries always agree — no clash between the day and week machinery.summaryTailMessages(default10): keeps the last N already-summarized messages verbatim in the prompt with a[DD.MM HH:MM]prefix, spliced in immediately before today's first verbatim turn. Bridges the day boundary so characters can pick up the actual flow of last night's conversation, not just the gist.12 AM–11 AM(morning-only) to avoid the counterintuitive "today extends 22 hours into tomorrow" reading of pre-midnight values.Validation
pnpm checkpasses locallyCONTRIBUTING.mdDocs and release impact
CHANGELOG entry added under
[1.5.6]Added. No version bump.UI evidence (if applicable)
Chat settings:

Chat settings (warning active after changing the value with existing summaries)

Chat settings in mobile:

🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.