[PR #14] [MERGED] fix: v1.3.4 bug fixes - streaming colors, agent data, widget merge, animation flash #4394

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

📋 Pull Request Information

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

Base: main ← Head: fix/v1.3.4-bug-fixes


📝 Commits (2)

  • 93ec320 fix: v1.3.4 bug fixes — streaming colors, agent data in prompt, widget merge, animation flash
  • 9a0f832 fix: address PR review feedback

📊 Changes

52 files changed (+2182 additions, -412 deletions)

View changed files

➕ .github/workflows/docker-ghcr.yml (+76 -0)
📝 README.md (+110 -51)
📝 docker-compose.yml (+3 -0)
📝 installer/install.bat (+1 -1)
📝 installer/installer.nsi (+1 -1)
📝 package.json (+1 -1)
📝 packages/client/package.json (+1 -1)
📝 packages/client/src/components/agents/AgentEditor.tsx (+22 -18)
📝 packages/client/src/components/agents/AgentThoughtBubbles.tsx (+7 -2)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+4 -0)
📝 packages/client/src/components/agents/ToolEditor.tsx (+4 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+124 -5)
📝 packages/client/src/components/chat/ChatArea.tsx (+175 -32)
📝 packages/client/src/components/chat/ChatMessage.tsx (+66 -56)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+179 -46)
📝 packages/client/src/components/chat/ExpressionPanel.tsx (+11 -6)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+5 -1)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+22 -17)
📝 packages/client/src/components/layout/AppShell.tsx (+1 -1)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+4 -1)

...and 32 more files

📄 Description

Bug Fixes for v1.3.4

1. Streaming message missing character background color

Single-character chats never receive a group_turn SSE event, so streamingCharacterId stays null. The streaming overlay now falls back to chatCharIds[0] for character colors.

File: packages/client/src/components/chat/ChatArea.tsx

2. World-state agent data missing from prompt

expandWorldStateAgent() only queried committed snapshots, but commitment doesn't happen until the user sends the next message. First-time agent data was silently dropped.

Files:

  • packages/server/src/services/prompt/marker-expander.ts - fallback to latest snapshot
  • packages/server/src/routes/chats.routes.ts - peek-prompt passes enableAgents/activeAgentIds
  • packages/server/src/routes/generate.routes.ts - agent context fallback

3. HUD widget data wiped on partial agent results

The game_state SSE handler did a full state replacement instead of merging. Unified with game_state_patch to always merge, preserving existing widget data when partial results arrive.

File: packages/client/src/hooks/use-generate.ts

4. Visible flash/refresh when generation ends

Every ChatMessage had animate-message-in with animationFillMode: backwards (starts at opacity 0). When invalidateQueries replaced optimistic messages with real server data, React remounted elements and replayed the entry animation, causing a visible flash.

Entry animation now only plays on initial chat load and resets on chat switch. Subsequent query refetches skip the animation entirely.

Files:

  • packages/client/src/components/chat/ChatMessage.tsx - removed hardcoded animation
  • packages/client/src/components/chat/ChatArea.tsx - controlled animation via hasAnimatedRef

Checks

  • TypeScript: 0 errors (client + server)
  • Prettier: all files pass
  • ESLint: 0 errors, 6 warnings (all pre-existing)
  • QA review: passed, 0 new issues

🔄 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/14 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 3/14/2026 **Status:** ✅ Merged **Merged:** 3/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `fix/v1.3.4-bug-fixes` --- ### 📝 Commits (2) - [`93ec320`](https://github.com/Pasta-Devs/Marinara-Engine/commit/93ec320e9ec162902ee6622e047aba9e93c699dd) fix: v1.3.4 bug fixes — streaming colors, agent data in prompt, widget merge, animation flash - [`9a0f832`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9a0f8323d275dabe883680c7e31cc106b88f133a) fix: address PR review feedback ### 📊 Changes **52 files changed** (+2182 additions, -412 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/docker-ghcr.yml` (+76 -0) 📝 `README.md` (+110 -51) 📝 `docker-compose.yml` (+3 -0) 📝 `installer/install.bat` (+1 -1) 📝 `installer/installer.nsi` (+1 -1) 📝 `package.json` (+1 -1) 📝 `packages/client/package.json` (+1 -1) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+22 -18) 📝 `packages/client/src/components/agents/AgentThoughtBubbles.tsx` (+7 -2) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+4 -0) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+4 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+124 -5) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+175 -32) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+66 -56) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+179 -46) 📝 `packages/client/src/components/chat/ExpressionPanel.tsx` (+11 -6) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+5 -1) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+22 -17) 📝 `packages/client/src/components/layout/AppShell.tsx` (+1 -1) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+4 -1) _...and 32 more files_ </details> ### 📄 Description ## Bug Fixes for v1.3.4 ### 1. Streaming message missing character background color Single-character chats never receive a `group_turn` SSE event, so `streamingCharacterId` stays null. The streaming overlay now falls back to `chatCharIds[0]` for character colors. **File:** `packages/client/src/components/chat/ChatArea.tsx` ### 2. World-state agent data missing from prompt `expandWorldStateAgent()` only queried committed snapshots, but commitment doesn't happen until the user sends the *next* message. First-time agent data was silently dropped. **Files:** - `packages/server/src/services/prompt/marker-expander.ts` - fallback to latest snapshot - `packages/server/src/routes/chats.routes.ts` - peek-prompt passes enableAgents/activeAgentIds - `packages/server/src/routes/generate.routes.ts` - agent context fallback ### 3. HUD widget data wiped on partial agent results The `game_state` SSE handler did a full state replacement instead of merging. Unified with `game_state_patch` to always merge, preserving existing widget data when partial results arrive. **File:** `packages/client/src/hooks/use-generate.ts` ### 4. Visible flash/refresh when generation ends Every `ChatMessage` had `animate-message-in` with `animationFillMode: backwards` (starts at opacity 0). When `invalidateQueries` replaced optimistic messages with real server data, React remounted elements and replayed the entry animation, causing a visible flash. Entry animation now only plays on initial chat load and resets on chat switch. Subsequent query refetches skip the animation entirely. **Files:** - `packages/client/src/components/chat/ChatMessage.tsx` - removed hardcoded animation - `packages/client/src/components/chat/ChatArea.tsx` - controlled animation via hasAnimatedRef ### Checks - [x] TypeScript: 0 errors (client + server) - [x] Prettier: all files pass - [x] ESLint: 0 errors, 6 warnings (all pre-existing) - [x] QA review: passed, 0 new issues --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:13 +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#4394
No description provided.