[PR #3097] [MERGED] [codex] Prepare v2.0.9 stability fixes #5796

Closed
opened 2026-10-22 04:19:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3097
Author: @SpicyMarinara
Created: 6/30/2026
Status: ✅ Merged
Merged: 6/30/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/v2.0.9-agent-stability


📝 Commits (2)

  • c711710 Prepare v2.0.9 stability fixes
  • a5c7043 Address CodeRabbit stability review

📊 Changes

30 files changed (+365 additions, -99 deletions)

View changed files

📝 CHANGELOG.md (+18 -0)
📝 README.md (+1 -1)
📝 android/app/build.gradle (+3 -3)
📝 package.json (+1 -1)
📝 packages/client/package.json (+1 -1)
📝 packages/client/public/manifest.json (+1 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+6 -10)
📝 packages/client/src/components/chat/ChatInput.tsx (+51 -11)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+1 -1)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+3 -1)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+9 -3)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+7 -3)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-rerun.ts (+3 -1)
📝 packages/client/src/hooks/use-extensions.ts (+1 -3)
📝 packages/client/src/hooks/use-generate.ts (+16 -17)
📝 packages/client/src/hooks/use-themes.ts (+1 -3)
📝 packages/client/src/stores/agent.store.ts (+41 -8)
📝 packages/client/src/styles/globals.css (+7 -5)
📝 packages/server/package.json (+1 -1)
📝 packages/server/src/routes/backup.routes.ts (+12 -1)

...and 10 more files

📄 Description

What changed

  • Prepares the app metadata and release notes for v2.0.9.
  • Restores agent prompt stability by keeping compatible agents batched with raw JSON result maps instead of <result> wrapping.
  • Reduces client-side churn from theme/extension polling and Professor Mari status refreshes.
  • Fixes agent UI flashing by scoping agent processing and failure badges to the chat that owns the run.
  • Stops ChatArea from repeatedly auto-switching Game chats to the newest session during chat-list refreshes.
  • Hardens regex/script safety and improves failed-generation draft recovery and backup import diagnostics.

Why

Users were seeing severe chat lag, roleplay agent failures, and agent UI flicker/spam after recent prompt migration work. The main issues were unnecessary repeated prompt rewrites, extra background request churn, global agent UI state leaking across chats, and a Game-session resolver in ChatArea writing activeChatId during list refreshes.

Validation

Ran locally:

  • pnpm version:check
  • pnpm regression:prompt
  • pnpm check

Manual verification needed

  • Verify Roleplay agents run without repeated flicker/spam.
  • Verify Conversation and Roleplay chats no longer show agent processing from background chats.
  • Verify Game mode still opens the intended current session from game startup/history flows.
  • Verify Windows installer/start script metadata and Android version metadata before release assets are built.

Summary by CodeRabbit

  • Bug Fixes

    • Improved chat reliability and state handling across send, retry, and failed-generation flows.
    • Fixed mobile chat input resizing and restored drafts more consistently after errors.
    • Reduced background polling and chat UI flicker, with better active-chat behavior.
    • Strengthened regex safety to avoid slow or risky pattern handling.
    • Improved backup import error messages when a profile file is missing.
  • Documentation

    • Updated release information and version references to v2.0.9 across app and installer metadata.

🔄 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/3097 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/30/2026 **Status:** ✅ Merged **Merged:** 6/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/v2.0.9-agent-stability` --- ### 📝 Commits (2) - [`c711710`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c7117109758990a8783fceb2a63d4d90d69e1bdc) Prepare v2.0.9 stability fixes - [`a5c7043`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a5c7043783b9f8381cb5426065535b30117cb4ff) Address CodeRabbit stability review ### 📊 Changes **30 files changed** (+365 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+18 -0) 📝 `README.md` (+1 -1) 📝 `android/app/build.gradle` (+3 -3) 📝 `package.json` (+1 -1) 📝 `packages/client/package.json` (+1 -1) 📝 `packages/client/public/manifest.json` (+1 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+6 -10) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+51 -11) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+1 -1) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+3 -1) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+9 -3) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+7 -3) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-rerun.ts` (+3 -1) 📝 `packages/client/src/hooks/use-extensions.ts` (+1 -3) 📝 `packages/client/src/hooks/use-generate.ts` (+16 -17) 📝 `packages/client/src/hooks/use-themes.ts` (+1 -3) 📝 `packages/client/src/stores/agent.store.ts` (+41 -8) 📝 `packages/client/src/styles/globals.css` (+7 -5) 📝 `packages/server/package.json` (+1 -1) 📝 `packages/server/src/routes/backup.routes.ts` (+12 -1) _...and 10 more files_ </details> ### 📄 Description ## What changed - Prepares the app metadata and release notes for v2.0.9. - Restores agent prompt stability by keeping compatible agents batched with raw JSON result maps instead of `<result>` wrapping. - Reduces client-side churn from theme/extension polling and Professor Mari status refreshes. - Fixes agent UI flashing by scoping agent processing and failure badges to the chat that owns the run. - Stops `ChatArea` from repeatedly auto-switching Game chats to the newest session during chat-list refreshes. - Hardens regex/script safety and improves failed-generation draft recovery and backup import diagnostics. ## Why Users were seeing severe chat lag, roleplay agent failures, and agent UI flicker/spam after recent prompt migration work. The main issues were unnecessary repeated prompt rewrites, extra background request churn, global agent UI state leaking across chats, and a Game-session resolver in `ChatArea` writing `activeChatId` during list refreshes. ## Validation Ran locally: - `pnpm version:check` - `pnpm regression:prompt` - `pnpm check` ## Manual verification needed - Verify Roleplay agents run without repeated flicker/spam. - Verify Conversation and Roleplay chats no longer show agent processing from background chats. - Verify Game mode still opens the intended current session from game startup/history flows. - Verify Windows installer/start script metadata and Android version metadata before release assets are built. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved chat reliability and state handling across send, retry, and failed-generation flows. * Fixed mobile chat input resizing and restored drafts more consistently after errors. * Reduced background polling and chat UI flicker, with better active-chat behavior. * Strengthened regex safety to avoid slow or risky pattern handling. * Improved backup import error messages when a profile file is missing. * **Documentation** * Updated release information and version references to **v2.0.9** across app and installer metadata. <!-- 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-22 04:19:37 +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#5796
No description provided.