mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7231] [MERGED] fix(commands): apply [schedule_update] to the character's status #7637
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#7637
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/7231
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/schedule-update-command-7230📝 Commits (6)
ead189ffix(commands): apply [schedule_update] to the character's status136a15eMerge origin/staging into fix/schedule-update-command-72304a0c858Merge origin/staging into fix/schedule-update-command-723074acc8bfix(presence): stop showing a character's timed status after it ends52268dcfix(commands): read schedule_update durations by whole units9d978d7Merge origin/staging into fix/schedule-update-command-7230📊 Changes
9 files changed (+371 additions, -33 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/conversation/calls.md(+1 -1)📝
docs/conversation/schedules.md(+9 -0)📝
packages/client/src/components/chat/ConversationPresenceCard.tsx(+8 -2)📝
packages/client/src/hooks/use-generate.ts(+3 -0)📝
packages/server/src/routes/generate.routes.ts(+1 -0)📝
packages/server/src/services/conversation/character-commands.ts(+9 -5)📝
packages/server/src/services/generation/conversation-schedule-command-runtime.ts(+109 -25)➕
scripts/regressions/conversation-schedule-update-command.regression.ts(+230 -0)📄 Description
Linked issue
Closes #7230
Why this change
[schedule_update: status="dnd", activity="Busy", duration="1h"]was hidden from the reply but changed nothing. Its status, activity, and schedule stayed the same, and no error appeared. This has been happening since at least 2.4.6.conversation-schedule-command-runtime.ts) edited the chat'smetadata.characterSchedules, but that map is only a cache now: the character card owns the schedule. On the next presence read,resolveConversationSchedules(chats.storage.ts:1691) saw the cache differed from the card and replaced it, so the edit vanished. Characters without a schedule were skipped without any message, and the client ignored theschedule_updatedevent.What changed
conversationStatusOverrideon the issuing character's card. The presence menu and/statusalready write this record, and every presence surface reads it (presence pill, chat list, prompts, autonomous pacing). It expires after the requested duration, which defaults to one hour and can't go past seven days. It never edits the saved weekly routine, and it also works for characters without a schedule.parseDurationnow reads decimal hours (1.5hused to become 5 hours) and bare numbers as hours, because the prompt asks for "number of hours". Units must be whole words, so2 monthsis no longer read as 2 minutes and1.5mno longer as 5 minutes.roleplay_command_error), so I didn't add one./conversation/statusonschedule_updated.scripts/regressions/conversation-schedule-update-command.regression.ts. It fails on staging ("the command changes the character's live status and activity": stillonline/free time).docs/conversation/schedules.md(new "Characters can change their own status" section) anddocs/conversation/calls.md. CHANGELOG entry added.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks, not a substitute for the boxes above:
pnpm checkexited 0. These regressions passed:conversation-schedule-update-command,multiplayer-generation-policy,character-schedule-ownership,character-schedule-transfer,command-only-regenerate,autonomous-scheduler-gate,autonomous-check-storage,schedule-generation,slash-command-usage,roleplay-commands,haptic,open-issues, andissue-sweep-5391-5394.pnpm localization:checkexited 0. The new regression fails on staging without the fix.Manual verification notes
/status offline <name>, asking the character to go online leaves your offline status in place.[schedule_update: status="sleeping"](for example, by editing a prompt to provoke it) is stripped with no visible error and a[commands]warning in the server log.duration="1m"request makes this quick. Within about a minute of the end, the presence menu should show Following schedule with no Override badge, and the scheduled activity instead of the command's.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Changed English guides:
docs/conversation/schedules.md,docs/conversation/calls.md. A[docs-i18n]follow-up issue is linked in a comment below.UI evidence (if applicable)
No new UI. The existing presence pill and menu now reflect the command.
Summary by CodeRabbit
/statusor the presence menu.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.