mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #698] [Feature]: Run autonomous messaging schedules on the server #333
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#333
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 @cha1latte on GitHub (May 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/698
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Autonomous messaging appears to depend on the UI being active. If the browser is closed or the user is away, a scheduled autonomous reply does not appear to be generated at the intended time. Instead, the character may reply later when the user opens the UI again and the character is enabled, which makes autonomous messaging feel reactive to app activity rather than genuinely scheduled.
This limits the "characters feel alive" workflow because an enabled character should be able to reply according to its schedule even when the user is not actively viewing the chat.
Source/context: Discord feature request. Source link: https://discord.com/channels/1417099416812392641/1503458087619792917
Proposed solution
Move or add autonomous-message scheduling to the server so enabled autonomous characters can generate scheduled messages without requiring an active browser session.
The server-side path should:
This should be treated as the first implementation slice before adding more complex group speaker selection or Discord bot mirroring.
Alternatives considered
Additional context
This is split out from the broader group autonomy and Discord mirroring request so the core scheduling behavior can be evaluated independently.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (May 11, 2026):
Suggested triage:
scope-risk, because this likely requires server-side background scheduling and careful duplicate-generation handling.Suggested triage comment:
Triage note: labeling this as
scope-riskbecause it is aligned with autonomous character behavior but likely needs server-side scheduling and coordination with the existing client-driven autonomous path.Least risky next step is to define the first supported scheduling behavior and duplicate-prevention rules before implementation.
@cha1latte commented on GitHub (May 14, 2026):
Scope clarification: this should not expand the first implementation slice into a full presence/status system. The core #698 slice should remain server-side autonomous scheduling: wake up, evaluate whether the character is currently allowed to message, avoid duplicates with any client-side path, and persist the generated message. User presence/status should be treated as a design constraint or follow-up slice unless the scheduler needs a minimal presence signal to make the first version safe.
User idea to consider for this feature: when the server-side autonomous scheduler wakes up and decides whether to generate a message, pass both the user's current presence/status and the character's current schedule/status into that decision.
Suggested user presence behavior:
The character should still follow its own schedule. If the character is offline, it should not send messages. If the character is in a busy/do-not-disturb state such as red, it also should not send messages. Yellow is less clear and may need product decision, but the general idea is that the character is still "doing its own things" according to its schedule.
This means messages are more likely when the user's real-life availability overlaps with the character's green/available schedule period. For example, if the user is away/offline and the character enters a green period, the scheduler could trigger a possible message such as the character reporting on its day, checking in, or saying something at night.
Before actually sending, there should be a logic check:
When the user is gray/offline, autonomous messaging should be restrained. A character should only be allowed to send a maximum of 1-2 consecutive messages while the user remains offline, so background scheduling can still make characters feel alive without creating a long unattended reply chain.
@Decidetto commented on GitHub (May 14, 2026):
The order of the logic check and generating the message should be flipped. There is no sense in spending tokens/API credits generating a message that we end up throwing away.
@SpicyMarinara commented on GitHub (May 17, 2026):
On it.
@SpicyMarinara commented on GitHub (May 17, 2026):
Implemented on staging in
2056b63e. The first server-side slice now runs an autonomous conversation scheduler when the browser poller is absent, reuses the existing eligibility/generation path, caps server/offline follow-ups to two, marks generated messages unread, and records recent client autonomous-poller presence so client and server generation do not duplicate each other. Full validation passed with pnpm check.