[PR #3591] [MERGED] Fix timezone handling and Noodle avatar crop persistence #6008

Closed
opened 2026-10-23 04:06:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/3590-timezone-and-noodle-avatar


📝 Commits (3)

  • cbc6581 fix Noodle profile avatar crop persistence
  • 302bd76 fix timezone handling for schedules and context
  • 9814b44 Merge branch 'staging' into fix/3590-timezone-and-noodle-avatar

📊 Changes

19 files changed (+299 additions, -59 deletions)

View changed files

📝 .env.example (+3 -2)
📝 CHANGELOG.md (+5 -0)
📝 docs/CONFIGURATION.md (+1 -1)
📝 docs/TROUBLESHOOTING.md (+4 -0)
📝 package.json (+2 -1)
📝 packages/client/src/components/noodle/NoodleView.tsx (+16 -1)
📝 packages/server/src/config/runtime-config.ts (+14 -0)
📝 packages/server/src/routes/conversation.routes.ts (+22 -8)
📝 packages/server/src/routes/generate.routes.ts (+16 -2)
📝 packages/server/src/routes/noodle.routes.ts (+10 -1)
📝 packages/server/src/services/conversation/autonomous.service.ts (+2 -2)
📝 packages/server/src/services/conversation/awareness.service.ts (+20 -33)
📝 packages/server/src/services/conversation/server-autonomous-scheduler.service.ts (+16 -3)
📝 packages/server/src/services/conversation/timezone.ts (+62 -0)
📝 packages/server/src/services/generation/conversation-memory-context.ts (+4 -2)
📝 packages/server/src/services/generation/tool-resolution-runtime.ts (+11 -3)
➕ packages/server/src/services/noodle/noodle-profile-avatar.ts (+19 -0)
📝 scripts/regressions/noodle-settings.regression.ts (+47 -0)
➕ scripts/regressions/timezone.regression.ts (+25 -0)

📄 Description

Why

A blank TZ= in the shipped environment template makes Node report Etc/Unknown and silently use UTC instead of the host timezone. That shifts Noodle refresh scheduling and other server-side date-sensitive Conversation behavior away from the user's local clock. Separately, editing Noodle profile text could discard an existing character-card avatar crop.

Closes #3590.

What changed

  • comments out the example TZ setting and treats blank or whitespace-only runtime values as unset
  • remembers each chat's valid browser timezone for server-side autonomous work
  • uses that timezone for autonomous status and intent windows, cross-chat temporal awareness, daily character memories, and custom-tool date/time macros
  • adds DST-aware zoned day bounds with a focused regression suite
  • shows an actionable Noodle warning when the server timezone remains unresolved
  • preserves unchanged Noodle avatar crops and restores matching character-card crops that were previously lost
  • documents timezone configuration and recovery, and updates the v2.2.2 changelog

Validation

  • pnpm check
  • pnpm regression:timezone
  • pnpm regression:noodle
  • pnpm regression:prompt
  • pnpm smoke:ui (37 passed, 25 intentionally skipped by project/device annotations)

Manual verification

  • Manually verify a legacy blank TZ= inherits the host timezone after restart.
  • Manually verify an explicit IANA TZ controls Noodle scheduled times.
  • Manually verify Noodle displays the unresolved-timezone warning when the scheduler reports Etc/Unknown.
  • Manually verify a Conversation chat retains browser-local scheduling when autonomous generation runs without an active browser poller.
  • Manually verify editing only a Noodle profile name or bio preserves the configured avatar crop.

Summary by CodeRabbit

  • Bug Fixes

    • Preserved Noodle avatar crops when editing profile details, including recovery of previously lost crops.
    • Fixed blank timezone settings that caused schedules, conversations, memories, and tool-generated times to use an unknown or incorrect timezone.
    • Improved timezone-aware scheduling, temporal awareness, daily memories, and autonomous messaging.
  • Improvements

    • Chats now remember the browser timezone for more accurate time-based behavior.
    • Added a warning when timezone detection is unresolved.
  • Documentation

    • Updated timezone configuration guidance and troubleshooting steps.

🔄 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/3591 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/14/2026 **Status:** ✅ Merged **Merged:** 7/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3590-timezone-and-noodle-avatar` --- ### 📝 Commits (3) - [`cbc6581`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cbc6581464cde87f626205f7213410d09a4d44e9) fix Noodle profile avatar crop persistence - [`302bd76`](https://github.com/Pasta-Devs/Marinara-Engine/commit/302bd76823a364396b2f8d0fa32eb4fe0fcad8bf) fix timezone handling for schedules and context - [`9814b44`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9814b44343b3daa72ab3f714fcf3a0661a662b52) Merge branch 'staging' into fix/3590-timezone-and-noodle-avatar ### 📊 Changes **19 files changed** (+299 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+3 -2) 📝 `CHANGELOG.md` (+5 -0) 📝 `docs/CONFIGURATION.md` (+1 -1) 📝 `docs/TROUBLESHOOTING.md` (+4 -0) 📝 `package.json` (+2 -1) 📝 `packages/client/src/components/noodle/NoodleView.tsx` (+16 -1) 📝 `packages/server/src/config/runtime-config.ts` (+14 -0) 📝 `packages/server/src/routes/conversation.routes.ts` (+22 -8) 📝 `packages/server/src/routes/generate.routes.ts` (+16 -2) 📝 `packages/server/src/routes/noodle.routes.ts` (+10 -1) 📝 `packages/server/src/services/conversation/autonomous.service.ts` (+2 -2) 📝 `packages/server/src/services/conversation/awareness.service.ts` (+20 -33) 📝 `packages/server/src/services/conversation/server-autonomous-scheduler.service.ts` (+16 -3) 📝 `packages/server/src/services/conversation/timezone.ts` (+62 -0) 📝 `packages/server/src/services/generation/conversation-memory-context.ts` (+4 -2) 📝 `packages/server/src/services/generation/tool-resolution-runtime.ts` (+11 -3) ➕ `packages/server/src/services/noodle/noodle-profile-avatar.ts` (+19 -0) 📝 `scripts/regressions/noodle-settings.regression.ts` (+47 -0) ➕ `scripts/regressions/timezone.regression.ts` (+25 -0) </details> ### 📄 Description ## Why A blank `TZ=` in the shipped environment template makes Node report `Etc/Unknown` and silently use UTC instead of the host timezone. That shifts Noodle refresh scheduling and other server-side date-sensitive Conversation behavior away from the user's local clock. Separately, editing Noodle profile text could discard an existing character-card avatar crop. Closes #3590. ## What changed - comments out the example `TZ` setting and treats blank or whitespace-only runtime values as unset - remembers each chat's valid browser timezone for server-side autonomous work - uses that timezone for autonomous status and intent windows, cross-chat temporal awareness, daily character memories, and custom-tool date/time macros - adds DST-aware zoned day bounds with a focused regression suite - shows an actionable Noodle warning when the server timezone remains unresolved - preserves unchanged Noodle avatar crops and restores matching character-card crops that were previously lost - documents timezone configuration and recovery, and updates the v2.2.2 changelog ## Validation - `pnpm check` - `pnpm regression:timezone` - `pnpm regression:noodle` - `pnpm regression:prompt` - `pnpm smoke:ui` (37 passed, 25 intentionally skipped by project/device annotations) ## Manual verification - [ ] Manually verify a legacy blank `TZ=` inherits the host timezone after restart. - [ ] Manually verify an explicit IANA `TZ` controls Noodle scheduled times. - [ ] Manually verify Noodle displays the unresolved-timezone warning when the scheduler reports `Etc/Unknown`. - [ ] Manually verify a Conversation chat retains browser-local scheduling when autonomous generation runs without an active browser poller. - [ ] Manually verify editing only a Noodle profile name or bio preserves the configured avatar crop. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Preserved Noodle avatar crops when editing profile details, including recovery of previously lost crops. * Fixed blank timezone settings that caused schedules, conversations, memories, and tool-generated times to use an unknown or incorrect timezone. * Improved timezone-aware scheduling, temporal awareness, daily memories, and autonomous messaging. * **Improvements** * Chats now remember the browser timezone for more accurate time-based behavior. * Added a warning when timezone detection is unresolved. * **Documentation** * Updated timezone configuration guidance and troubleshooting steps. <!-- 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-23 04:06:10 +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#6008
No description provided.