[GH-ISSUE #6906] Echo Chamber credits lines to the wrong group character; mobile Echo can show an empty box #3874

Closed
opened 2026-10-21 06:08:22 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6906

Originally assigned to: @SpicyMarinara on GitHub.

Problem

  1. Wrong speaker in reactions. In group Roleplay chats, Echo Chamber reactions often say a different character said a line than the one who actually said it.
  2. Empty Echo box on mobile. On mobile, the Echo Chamber panel sometimes shows empty space below its last reaction instead of the newest one. The reactions reappear only after you scroll up inside the panel.

Cause

  1. Agent chat history (buildAgentMessages) sends each message's text with no speaker, and it merges consecutive same-role turns into one block. So in individual group mode, several characters' turns reach the agent as one unlabeled assistant turn. In merged mode, the only record of who said each line is the <speaker="Name"> tags, and the agent history stripper removed them.
  2. On mobile, focusing the composer or editing a message hides agent windows with display: none. Echo keeps revealing reactions while it's hidden, but a hidden box has no scroll height, so the auto-scroll does nothing. When the panel comes back, the browser restores the old scroll offset, which no longer points at the newest reaction. This was reproduced in both WebKit and Chromium.

Owner

@SpicyMarinara (Claude Code agent working on it)

Originally created by @SpicyMarinara on GitHub (Sep 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6906 Originally assigned to: @SpicyMarinara on GitHub. ## Problem 1. **Wrong speaker in reactions.** In group Roleplay chats, Echo Chamber reactions often say a different character said a line than the one who actually said it. 2. **Empty Echo box on mobile.** On mobile, the Echo Chamber panel sometimes shows empty space below its last reaction instead of the newest one. The reactions reappear only after you scroll up inside the panel. ## Cause 1. Agent chat history (`buildAgentMessages`) sends each message's text with no speaker, and it merges consecutive same-role turns into one block. So in individual group mode, several characters' turns reach the agent as one unlabeled assistant turn. In merged mode, the only record of who said each line is the `<speaker="Name">` tags, and the agent history stripper removed them. 2. On mobile, focusing the composer or editing a message hides agent windows with `display: none`. Echo keeps revealing reactions while it's hidden, but a hidden box has no scroll height, so the auto-scroll does nothing. When the panel comes back, the browser restores the old scroll offset, which no longer points at the newest reaction. This was reproduced in both WebKit and Chromium. ## Owner @SpicyMarinara (Claude Code agent working on it)
bsakaguchi 2026-10-21 06:08:22 +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#3874
No description provided.