mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4236] [Issue]: Manually entered overnight conversation ranges resolve against different days #2291
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#2291
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?
Originally created by @Xelvanis on GitHub (Jul 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4236
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Conversation schedules entered as a cross-midnight range (for example,
23:00-07:00) are resolved against different named days by presence status and autonomous-intent logic. Generated schedules avoid this shape, but the schedule editor exposes the range as an unrestricted text field and saves it without range validation.Expected behavior
All schedule consumers should use one documented rule for which named day owns the after-midnight portion of an overnight range.
Actual behavior
At 02:00 on Monday,
getCurrentStatus()evaluates Monday's23:00-07:00block, whilegetAdjacentBlocks()evaluates Sunday's overnight block. Status gating and intent selection can therefore use different statuses and activities for the same instant.Steps to reproduce
23:00-07:00with status Offline.23:00-07:00with status Busy and save the schedule.The current staging helpers return Monday/Busy from
getCurrentStatus()and Sunday/Offline fromgetAdjacentBlocks().Environment
stagingatf0e435b5fLogs, screenshots, or video
No logs or screenshots. Direct helper reproduction returned:
Additional context
Generated schedules normally use separate
00:00-07:00and23:00-00:00blocks, so this specifically affects user-edited overnight ranges. The smallest fix is one validated, day-aware range resolver shared by presence and adjacency/intent consumers, plus an overnight regression covering different Sunday and Monday statuses.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: