[PR #3947] [MERGED] Fix current issues and agent timeout completion #6170

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

📋 Pull Request Information

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

Base: staging ← Head: agent/open-issues-and-agent-timeout


📝 Commits (2)

  • c131832 fix agent timeout completion
  • 21815db fix current open issue regressions

📊 Changes

13 files changed (+240 additions, -114 deletions)

View changed files

📝 packages/client/src/components/chat/ConversationMediaPickerPanel.tsx (+3 -0)
📝 packages/client/src/components/chat/CustomEmojiTab.tsx (+85 -62)
📝 packages/client/src/components/chat/ReactionAddButton.tsx (+32 -20)
📝 packages/client/src/components/modals/AboutMeViewerModal.tsx (+1 -0)
📝 packages/client/src/components/ui/EmojiPicker.tsx (+39 -29)
📝 packages/client/src/lib/custom-emoji.ts (+7 -0)
📝 packages/client/src/stores/ui.store.ts (+1 -0)
📝 packages/server/src/routes/generate.routes.ts (+10 -1)
📝 packages/server/src/routes/generate/agent-result-capabilities.ts (+5 -0)
📝 packages/server/src/services/image/image-generation.ts (+7 -2)
📝 packages/shared/src/utils/conversation-presence.ts (+1 -0)
📝 scripts/regressions/open-issues.regression.ts (+41 -0)
📝 scripts/regressions/timezone.regression.ts (+8 -0)

📄 Description

Linked issues

Closes #3801
Closes #3944
Closes #3945
Closes #3946

Why this change

  • Timed-out post-generation agents entered another full automatic retry window, so the stream appeared to hang instead of settling with the existing failed-agent notification.
  • The Game text-effects toggle was stored locally but omitted from cross-device settings sync, allowing the disabled state to revert.
  • OpenRouter Krea image models were requested with image, text output instead of image-only output.
  • Custom emoji search depended on the selected tab and did not work in the reaction picker.
  • Malformed persisted schedule blocks without time could crash the UI while resolving conversation presence.

What changed

  • Treat agent timeout results as terminal for the current turn while retaining the existing one-time retry for ordinary failures.
  • Include gameTextEffectsEnabled in the synced settings subset.
  • Recognize the krea/ OpenRouter model family as image-only.
  • Search standard and custom emoji together regardless of the active tab, including reaction search.
  • Ignore malformed schedule blocks that do not contain a time range.
  • Add focused regressions for each failure mode.

Validation evidence

  • pnpm check passed. The existing HomeProfessorMariChat.tsx hook dependency warning remains unchanged.
  • pnpm regression:issues passed.
  • pnpm regression:timezone passed.
  • pnpm smoke:ui completed with 81 passed and 52 expected project skips; one unrelated Tracker persistence flow failed once, then passed when rerun in isolation.
  • git diff --check passed.

Human verification checklist

  • Manually verify a timed-out post-generation agent settles the stream and displays the failed-agent toast.
  • Disable Game text effects, reload, and verify the setting remains disabled after settings sync.
  • Generate an image with an OpenRouter krea/ model.
  • Search for a custom emoji from a standard emoji tab in both the chat and reaction pickers.
  • Load a conversation containing malformed schedule metadata and verify the UI remains usable.
  • Check relevant empty states and mobile behavior.

Contributor checklist

  • Read and followed CONTRIBUTING.md.
  • Container build and runtime verified.
  • Documentation impact reviewed.
  • Release metadata impact reviewed.

UI evidence

The full Playwright smoke suite exercised the desktop and mobile shell. No visual redesign is included; the emoji picker retains its existing categories and styling while search now spans all emoji sources.

Summary by CodeRabbit

  • New Features

    • Emoji picker searches now show matching custom emojis alongside standard results.
    • Added support for image-only responses from additional image models.
    • Game text-effects settings are now preserved when UI settings are synchronized.
  • Bug Fixes

    • Automatic retries now skip failures that are not retryable timeouts.
    • Invalid schedule entries no longer disrupt presence status calculations.
  • Tests

    • Expanded regression coverage for emoji search, retry behavior, image modalities, settings persistence, and malformed schedules.

🔄 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/3947 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/22/2026 **Status:** ✅ Merged **Merged:** 7/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/open-issues-and-agent-timeout` --- ### 📝 Commits (2) - [`c131832`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c1318329e2ec8fc43d18b88a07599539071cfb09) fix agent timeout completion - [`21815db`](https://github.com/Pasta-Devs/Marinara-Engine/commit/21815db770e4279764efa252443b82ca23d3268f) fix current open issue regressions ### 📊 Changes **13 files changed** (+240 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ConversationMediaPickerPanel.tsx` (+3 -0) 📝 `packages/client/src/components/chat/CustomEmojiTab.tsx` (+85 -62) 📝 `packages/client/src/components/chat/ReactionAddButton.tsx` (+32 -20) 📝 `packages/client/src/components/modals/AboutMeViewerModal.tsx` (+1 -0) 📝 `packages/client/src/components/ui/EmojiPicker.tsx` (+39 -29) 📝 `packages/client/src/lib/custom-emoji.ts` (+7 -0) 📝 `packages/client/src/stores/ui.store.ts` (+1 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+10 -1) 📝 `packages/server/src/routes/generate/agent-result-capabilities.ts` (+5 -0) 📝 `packages/server/src/services/image/image-generation.ts` (+7 -2) 📝 `packages/shared/src/utils/conversation-presence.ts` (+1 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+41 -0) 📝 `scripts/regressions/timezone.regression.ts` (+8 -0) </details> ### 📄 Description ## Linked issues Closes #3801 Closes #3944 Closes #3945 Closes #3946 ## Why this change - Timed-out post-generation agents entered another full automatic retry window, so the stream appeared to hang instead of settling with the existing failed-agent notification. - The Game text-effects toggle was stored locally but omitted from cross-device settings sync, allowing the disabled state to revert. - OpenRouter Krea image models were requested with `image, text` output instead of image-only output. - Custom emoji search depended on the selected tab and did not work in the reaction picker. - Malformed persisted schedule blocks without `time` could crash the UI while resolving conversation presence. ## What changed - Treat agent timeout results as terminal for the current turn while retaining the existing one-time retry for ordinary failures. - Include `gameTextEffectsEnabled` in the synced settings subset. - Recognize the `krea/` OpenRouter model family as image-only. - Search standard and custom emoji together regardless of the active tab, including reaction search. - Ignore malformed schedule blocks that do not contain a time range. - Add focused regressions for each failure mode. ## Validation evidence - `pnpm check` passed. The existing `HomeProfessorMariChat.tsx` hook dependency warning remains unchanged. - `pnpm regression:issues` passed. - `pnpm regression:timezone` passed. - `pnpm smoke:ui` completed with 81 passed and 52 expected project skips; one unrelated Tracker persistence flow failed once, then passed when rerun in isolation. - `git diff --check` passed. ## Human verification checklist - [ ] Manually verify a timed-out post-generation agent settles the stream and displays the failed-agent toast. - [ ] Disable Game text effects, reload, and verify the setting remains disabled after settings sync. - [ ] Generate an image with an OpenRouter `krea/` model. - [ ] Search for a custom emoji from a standard emoji tab in both the chat and reaction pickers. - [ ] Load a conversation containing malformed schedule metadata and verify the UI remains usable. - [ ] Check relevant empty states and mobile behavior. ## Contributor checklist - [ ] Read and followed `CONTRIBUTING.md`. - [ ] Container build and runtime verified. - [ ] Documentation impact reviewed. - [ ] Release metadata impact reviewed. ## UI evidence The full Playwright smoke suite exercised the desktop and mobile shell. No visual redesign is included; the emoji picker retains its existing categories and styling while search now spans all emoji sources. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Emoji picker searches now show matching custom emojis alongside standard results. - Added support for image-only responses from additional image models. - Game text-effects settings are now preserved when UI settings are synchronized. - **Bug Fixes** - Automatic retries now skip failures that are not retryable timeouts. - Invalid schedule entries no longer disrupt presence status calculations. - **Tests** - Expanded regression coverage for emoji search, retry behavior, image modalities, settings persistence, and malformed schedules. <!-- 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:07:45 +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#6170
No description provided.