[PR #2872] [MERGED] fix: v2.0.5 chat/conversation/summary bug fixes (continue, swipe counter, author notes, drag handle, group selfie, react-gate, summary tail, streaming lag) #5774

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

📋 Pull Request Information

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

Base: staging ← Head: fix/v205-me-bugs-batch


📝 Commits (10+)

  • 37936d2 fix(chat): only show swipe counter when a message has multiple swipes (#2867)
  • dbad3d6 fix(chat): /continue creates a new reply when the last message is from the user (#2866)
  • 168405e fix(panels): show touch drag handle on touch devices regardless of width (#2869)
  • c548738 fix(chat): keep Author's Notes panel open when the mobile keyboard appears (#2868)
  • cc0d804 fix(chat): include lastMessageRole in conversation slash-context deps (#2866)
  • 16ba787 fix(conversation): attribute merged group-chat commands to their speaker (#2870)
  • c845359 fix(conversation): type merged command attribution without union narrowing (#2870)
  • d31c8ba fix(chat): gate Author's Notes focus guard to mobile to keep desktop outside-click (#2868)
  • c3c68bb fix(chat): keep toolbar overflow menu open when the mobile keyboard resizes (#2868)
  • db64ed4 fix(summary): reclaim a drifted summary tail instead of stranding it (#2879)

📊 Changes

14 files changed (+379 additions, -20 deletions)

View changed files

📝 packages/client/src/components/chat/ChatInput.tsx (+2 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+21 -4)
📝 packages/client/src/components/chat/ChatToolbarControls.tsx (+8 -1)
📝 packages/client/src/components/chat/ConversationInput.tsx (+4 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+2 -1)
📝 packages/client/src/components/chat/SwipeJumpControl.tsx (+1 -1)
📝 packages/client/src/components/ui/TouchDragHandle.tsx (+5 -1)
➕ packages/client/src/hooks/use-throttled-stream-buffer.ts (+67 -0)
➕ packages/client/src/lib/raf-throttle.ts (+63 -0)
📝 packages/client/src/lib/slash-commands.ts (+14 -2)
📝 packages/server/src/routes/chats.routes.ts (+6 -1)
📝 packages/server/src/routes/generate.routes.ts (+50 -9)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+59 -0)
📝 packages/server/src/services/conversation/character-commands.ts (+77 -0)

📄 Description

Linked issue

Closes #2866
Closes #2867
Closes #2868
Closes #2869
Closes #2870
Closes #2877
Closes #2878
Closes #2879

Why this change

A batch of v2.0.5 issues reported in the community Discord, grouped into one PR. Each is independent and small; the root cause for each is below.

  • #2866 — /continue appends to the wrong message. In Roleplay mode, the /continue slash command always targeted the latest assistant message, even when the user had posted since. After /impersonate (user posts last), /continue appended onto the scenario/first message (index 0) instead of generating a new reply. The toolbar /continue button is gated on lastMessageRole === "assistant"; the slash command had no equivalent gate.
  • #2867 — Swipe counter always visible. Since 2.0.5 the swipe counter + arrows showed on every message, including single-swipe ones. The visibility guard had been changed to swipeCount <= 1 && !onCreateNextSwipe, and the message layouts always pass onCreateNextSwipe, so the control never hid.
  • #2868 — Author's Notes / Summary editor closes when the mobile keyboard opens. On a mobile viewport the Author's Notes and manual Summary editors are opened from the chat toolbar's "More options" overflow menu (ChatToolbarMenu), and their panels are portals rendered by buttons that live inside that menu. The menu recomputes its layout on every window resize and, on a mobile viewport, closes itself each time. The on-screen keyboard opening fires a resize, so opening the keyboard closed the overflow menu and unmounted the open editor panel before the user could type.
  • #2869 — No usable drag handle for character folders. The touch drag handle was hidden with md:hidden (≥768px). It is a touch-only affordance (native HTML5 row-drag covers mouse), so touch devices at ≥768px width (tablets) had no working way to drag a character into a folder.
  • #2870 — Group-chat selfies always use the first character. In Conversation-mode group chats, the default "merged" generation produces one response carrying every character's turn. All commands parsed from that response — including [selfie] — were attributed to the first character, so a selfie taken by another character rendered the first character's appearance and name.
  • #2877 — Conversation reacts leak as raw [react: …] text when Character Commands is off. The react capability instruction is appended to the conversation system prompt unconditionally, but the [react: emoji="…"] tag is parsed, stripped, and applied inside the command pipeline that only runs when Character Commands are enabled (metadata.characterCommands !== false). With commands off, the model was still told it could react, so it emitted the tag and the server left it in the visible message as raw text with no reaction badge. Reported in Discord as group-chat-only; it is not group-specific — the trigger is the Character Commands toggle, not group vs. solo.
  • #2878 — Streaming responses cause GUI lag during generation. While a response streams, the live message re-renders on every token, and the markdown renderer re-parses the entire accumulated buffer from scratch each time (multiple per-line regex passes plus recursive inline parsing). The per-token cost therefore grows with the length of the message already received — roughly O(n²) over the whole stream. On fast streams, especially a local model running on the same machine as the server (the reported worst case), that work saturates the main thread and the UI stutters (input lag, scroll jank), worse the longer the reply.
  • #2879 — Summarization doesn't hide previously-summarized tail messages on later runs. The rolling summary picks its batch with visible.slice(-contextSize), and that same set bounds each entry's frozen hiddenMessageIds (the batch minus the protected tail). Once a previous summary's protected tail drifts beyond the last contextSize visible messages, no later entry claims it, so it stays visible forever and accumulates as stale context.

What changed

  • #2866: Added lastMessageRole to SlashCommandContext and gated the /continue handler on it — it continues the latest assistant message only when that message is the last in the chat, otherwise it generates a fresh reply. Threaded lastMessageRole through the three context build sites (ChatInput, ConversationInput ×2).
  • #2867: Restored the guard to if (swipeCount <= 1) return null; so the counter and arrows only appear when a message has multiple swipes (pre-2.0.5 behavior). New swipes are still generated via the regenerate path.
  • #2868: ChatToolbarMenu now closes its overflow menu only when the viewport width changes (orientation / window resize) rather than on every resize — so the on-screen keyboard, which only shrinks the height, no longer dismisses the menu and unmounts the open Author's Notes or Summary panel. Hardening in the same area: AuthorNotesButton's resize/scroll frame recompute keeps the last good frame instead of clearing it when the anchor is transiently unmeasurable, and its outside-pointer close handler no longer dismisses while a field inside the panel is focused (mobile-only, so desktop outside-clicks still close on the first click).
  • #2869: Changed TouchDragHandle visibility from the width-based md:hidden to the pointer-based [@media(pointer:fine)]:hidden, so the handle shows on touch (coarse-pointer) devices at any width and stays hidden on mouse desktops. This is the shared handle used by the Characters, Presets, Connections, Lorebooks, and Personas panels.
  • #2870: Added parseCharacterCommandsBySpeaker, which segments a merged group response by the same Name: prefixes the client uses for display (parseNamePrefixFormat + the shared normalizeTextForMatch) and attributes each command to its segment's character. The authoritative command list and cleaned content still come from a single whole-response parse, so no command is dropped or reordered — only the attribution is layered on, with a fallback to the generating character. Wired into generation only for merged Conversation-mode group chats; Roleplay mode, the per-character individual loop, and non-group chats are byte-identical to before.
  • #2877: Gated the react capability instruction on conversationCommandsEnabled, the same condition that guards the parse/strip/apply path, so the [react: …] syntax is only advertised to the model when it will actually be handled. With Character Commands enabled, reactions still strip and post as badges exactly as before.
  • #2878: Added a small requestAnimationFrame coalescer (rafThrottle, with an injectable scheduler) and a useThrottledStreamBuffer hook, and switched the conversation and roleplay live-stream renderers to read the streaming buffer through it. The live message now re-renders — and so re-parses its markdown — at most once per animation frame instead of once per token, which removes the per-token full re-parse that grows with message length. The store's streamBuffer is still written on every token, so token-exact consumers (ChatArea's auto-scroll subscriber) are unaffected; the committed message is rendered from the React Query cache once streaming ends, so a live frame being up to ~16ms behind is never visible. On slow streams (≤60 tok/s) tokens already arrive slower than the frame budget, so this is a no-op there; the win scales with token rate (≈4× fewer markdown parses at 240 tok/s, ≈8× at 480 tok/s in a local micro-benchmark of the renderer).
  • #2879: Added selectRollingSummaryMessages, a pure helper that keeps the plain last-contextSize window for the first summary and whenever the visible set fits the window, but extends the window back to the previous summary's boundary when visible messages have piled up past it — pulling the drifted tail back into the batch so it is summarized and hidden on this run. The boundary is identified by ids a live summary entry actually summarized (its messageIds / hiddenMessageIds), not the bare hiddenFromAI flag — a user's manual "Hide from AI" toggle writes the same flag, and keying off it would let a stray manual hide be misread as a boundary and balloon the window to nearly the whole chat. Including messageIds (guarded by a hidden-check so the protected tail isn't chosen) also covers entries created before the hiddenMessageIds field existed. Wired into the automatic summary (generate.routes.ts) and the manual "summarize last N" path (chats.routes.ts); the explicit manual range path is unchanged.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Tested on a build deployed to my private staging instance.

  • #2866: In a Roleplay chat with a first-message scenario, /impersonate "Hi" then /continue — confirm a new assistant reply is created rather than text being appended to the scenario message. Also confirm the normal case still continues: with the last message being an assistant reply, /continue extends it.
  • #2867: A message with one swipe shows no counter; a message with multiple swipes shows the n / m counter and arrows.
  • #2868 (please confirm on a real mobile device): On Android, open the "More options" toolbar menu, open Author's Notes, tap the textarea — the panel stays open with the keyboard up and is editable. Same for the manual Summary editor. Also verified here with a Pixel-7 Playwright device-emulation run (the on-screen keyboard simulated by shrinking the viewport height, which fires the same resize / visualViewport resize): before the fix the panel unmounted on the simulated keyboard; after the fix it stays open and preserves typed text.
  • #2869 (needs a touch device ≥768px): On a tablet, the drag handle appears on character rows and a character can be dragged into a folder. On a mouse desktop the handle stays hidden and native row-drag still works.
  • #2870: In a Conversation-mode group chat with two or three visually distinct characters, have different characters take a selfie — each selfie should match the character that took it, not the first character.
  • #2877: Reproduced live with an A/B test in a group chat. With Character Commands on, each character's reaction rendered as a badge. With Character Commands off, the same prompt produced literal [react: emoji="…"] text in every reply with no badge. After the fix, with commands off the model is no longer told it can react, so the raw tag no longer appears; with commands on, reactions still post as badges.
  • #2878: Enable streaming, then generate a long multi-paragraph reply in both Conversation and Roleplay modes and confirm the stream stays smooth (no input/scroll stutter that worsens as the message grows), the live text still updates continuously, and the finished message matches what streamed. The throttle is covered by a focused unit test for rafThrottle (a burst of calls in one frame collapses to a single apply with the latest value; per-frame ordering; flush/cancel; clearing to empty is delivered). The O(n²) per-token re-parse and the throttled-vs-current parse counts were measured against the real renderMarkdownBlocks (message length ×2 → streaming parse time ×~4; throttling cuts parse work ≈4× at 240 tok/s and ≈8× at 480 tok/s, and is a no-op at ≤60 tok/s).
  • #2879: Covered by a focused regression test for selectRollingSummaryMessages + computeSummaryHideIds: the first summary still selects the plain last-contextSize window; a previously-protected tail that has drifted beyond the window is bridged back and hidden (e…n) instead of stranded; a manual "Hide from AI" is not treated as a boundary (no window ballooning); and pre-hiddenMessageIds entries still anchor a boundary. Also manually verify across two consecutive automatic summaries with a nonzero tail that no previously-summarized message remains visible, and that toggling "Hide from AI" on an early message before an automatic summary does not blow up the summarized range.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

🔄 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/2872 **Author:** [@Romuromylus](https://github.com/Romuromylus) **Created:** 6/25/2026 **Status:** ✅ Merged **Merged:** 6/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/v205-me-bugs-batch` --- ### 📝 Commits (10+) - [`37936d2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/37936d2fedaacb87071098f33cbb478216d64464) fix(chat): only show swipe counter when a message has multiple swipes (#2867) - [`dbad3d6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dbad3d604aab78fbe6a2e01e04589fa1136b0f01) fix(chat): /continue creates a new reply when the last message is from the user (#2866) - [`168405e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/168405e8ca2778da37327581fc464699ba10e943) fix(panels): show touch drag handle on touch devices regardless of width (#2869) - [`c548738`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c548738248bade9dd682df4c0adaa20d668cbbf4) fix(chat): keep Author's Notes panel open when the mobile keyboard appears (#2868) - [`cc0d804`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cc0d8045026d52425905bedf0697368c7e5d7eb7) fix(chat): include lastMessageRole in conversation slash-context deps (#2866) - [`16ba787`](https://github.com/Pasta-Devs/Marinara-Engine/commit/16ba787f532e3b032001b988f6148eb2e0ebd543) fix(conversation): attribute merged group-chat commands to their speaker (#2870) - [`c845359`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c845359a8bd522034d8ffbdec778e6a5866745a4) fix(conversation): type merged command attribution without union narrowing (#2870) - [`d31c8ba`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d31c8baf7c63c503fc184596cc2a5df7dc5bbf32) fix(chat): gate Author's Notes focus guard to mobile to keep desktop outside-click (#2868) - [`c3c68bb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c3c68bb23a00b81274d1a1632b5360ea6e7d28ed) fix(chat): keep toolbar overflow menu open when the mobile keyboard resizes (#2868) - [`db64ed4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/db64ed430a6ed0cc51eebd5ebea72f27e7015f8a) fix(summary): reclaim a drifted summary tail instead of stranding it (#2879) ### 📊 Changes **14 files changed** (+379 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatInput.tsx` (+2 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+21 -4) 📝 `packages/client/src/components/chat/ChatToolbarControls.tsx` (+8 -1) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+4 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+2 -1) 📝 `packages/client/src/components/chat/SwipeJumpControl.tsx` (+1 -1) 📝 `packages/client/src/components/ui/TouchDragHandle.tsx` (+5 -1) ➕ `packages/client/src/hooks/use-throttled-stream-buffer.ts` (+67 -0) ➕ `packages/client/src/lib/raf-throttle.ts` (+63 -0) 📝 `packages/client/src/lib/slash-commands.ts` (+14 -2) 📝 `packages/server/src/routes/chats.routes.ts` (+6 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+50 -9) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+59 -0) 📝 `packages/server/src/services/conversation/character-commands.ts` (+77 -0) </details> ### 📄 Description ## Linked issue Closes #2866 Closes #2867 Closes #2868 Closes #2869 Closes #2870 Closes #2877 Closes #2878 Closes #2879 ## Why this change A batch of v2.0.5 issues reported in the community Discord, grouped into one PR. Each is independent and small; the root cause for each is below. - **#2866 — `/continue` appends to the wrong message.** In Roleplay mode, the `/continue` slash command always targeted the latest assistant message, even when the user had posted since. After `/impersonate` (user posts last), `/continue` appended onto the scenario/first message (index 0) instead of generating a new reply. The toolbar `/continue` button is gated on `lastMessageRole === "assistant"`; the slash command had no equivalent gate. - **#2867 — Swipe counter always visible.** Since 2.0.5 the swipe counter + arrows showed on every message, including single-swipe ones. The visibility guard had been changed to `swipeCount <= 1 && !onCreateNextSwipe`, and the message layouts always pass `onCreateNextSwipe`, so the control never hid. - **#2868 — Author's Notes / Summary editor closes when the mobile keyboard opens.** On a mobile viewport the Author's Notes and manual Summary editors are opened from the chat toolbar's "More options" overflow menu (`ChatToolbarMenu`), and their panels are portals rendered by buttons that live *inside* that menu. The menu recomputes its layout on every `window` resize and, on a mobile viewport, closes itself each time. The on-screen keyboard opening fires a resize, so opening the keyboard closed the overflow menu and unmounted the open editor panel before the user could type. - **#2869 — No usable drag handle for character folders.** The touch drag handle was hidden with `md:hidden` (≥768px). It is a touch-only affordance (native HTML5 row-drag covers mouse), so touch devices at ≥768px width (tablets) had no working way to drag a character into a folder. - **#2870 — Group-chat selfies always use the first character.** In Conversation-mode group chats, the default "merged" generation produces one response carrying every character's turn. All commands parsed from that response — including `[selfie]` — were attributed to the first character, so a selfie taken by another character rendered the first character's appearance and name. - **#2877 — Conversation reacts leak as raw `[react: …]` text when Character Commands is off.** The react capability instruction is appended to the conversation system prompt unconditionally, but the `[react: emoji="…"]` tag is parsed, stripped, and applied inside the command pipeline that only runs when Character Commands are enabled (`metadata.characterCommands !== false`). With commands off, the model was still told it could react, so it emitted the tag and the server left it in the visible message as raw text with no reaction badge. Reported in Discord as group-chat-only; it is not group-specific — the trigger is the Character Commands toggle, not group vs. solo. - **#2878 — Streaming responses cause GUI lag during generation.** While a response streams, the live message re-renders on every token, and the markdown renderer re-parses the *entire* accumulated buffer from scratch each time (multiple per-line regex passes plus recursive inline parsing). The per-token cost therefore grows with the length of the message already received — roughly O(n²) over the whole stream. On fast streams, especially a local model running on the same machine as the server (the reported worst case), that work saturates the main thread and the UI stutters (input lag, scroll jank), worse the longer the reply. - **#2879 — Summarization doesn't hide previously-summarized tail messages on later runs.** The rolling summary picks its batch with `visible.slice(-contextSize)`, and that same set bounds each entry's frozen `hiddenMessageIds` (the batch minus the protected tail). Once a previous summary's protected tail drifts beyond the last `contextSize` visible messages, no later entry claims it, so it stays visible forever and accumulates as stale context. ## What changed - **#2866:** Added `lastMessageRole` to `SlashCommandContext` and gated the `/continue` handler on it — it continues the latest assistant message only when that message is the last in the chat, otherwise it generates a fresh reply. Threaded `lastMessageRole` through the three context build sites (`ChatInput`, `ConversationInput` ×2). - **#2867:** Restored the guard to `if (swipeCount <= 1) return null;` so the counter and arrows only appear when a message has multiple swipes (pre-2.0.5 behavior). New swipes are still generated via the regenerate path. - **#2868:** `ChatToolbarMenu` now closes its overflow menu only when the viewport **width** changes (orientation / window resize) rather than on every resize — so the on-screen keyboard, which only shrinks the height, no longer dismisses the menu and unmounts the open Author's Notes or Summary panel. Hardening in the same area: `AuthorNotesButton`'s resize/scroll frame recompute keeps the last good frame instead of clearing it when the anchor is transiently unmeasurable, and its outside-pointer close handler no longer dismisses while a field inside the panel is focused (mobile-only, so desktop outside-clicks still close on the first click). - **#2869:** Changed `TouchDragHandle` visibility from the width-based `md:hidden` to the pointer-based `[@media(pointer:fine)]:hidden`, so the handle shows on touch (coarse-pointer) devices at any width and stays hidden on mouse desktops. This is the shared handle used by the Characters, Presets, Connections, Lorebooks, and Personas panels. - **#2870:** Added `parseCharacterCommandsBySpeaker`, which segments a merged group response by the same `Name:` prefixes the client uses for display (`parseNamePrefixFormat` + the shared `normalizeTextForMatch`) and attributes each command to its segment's character. The authoritative command list and cleaned content still come from a single whole-response parse, so no command is dropped or reordered — only the attribution is layered on, with a fallback to the generating character. Wired into generation **only** for merged Conversation-mode group chats; Roleplay mode, the per-character individual loop, and non-group chats are byte-identical to before. - **#2877:** Gated the react capability instruction on `conversationCommandsEnabled`, the same condition that guards the parse/strip/apply path, so the `[react: …]` syntax is only advertised to the model when it will actually be handled. With Character Commands enabled, reactions still strip and post as badges exactly as before. - **#2878:** Added a small `requestAnimationFrame` coalescer (`rafThrottle`, with an injectable scheduler) and a `useThrottledStreamBuffer` hook, and switched the conversation and roleplay live-stream renderers to read the streaming buffer through it. The live message now re-renders — and so re-parses its markdown — at most once per animation frame instead of once per token, which removes the per-token full re-parse that grows with message length. The store's `streamBuffer` is still written on every token, so token-exact consumers (ChatArea's auto-scroll subscriber) are unaffected; the committed message is rendered from the React Query cache once streaming ends, so a live frame being up to ~16ms behind is never visible. On slow streams (≤60 tok/s) tokens already arrive slower than the frame budget, so this is a no-op there; the win scales with token rate (≈4× fewer markdown parses at 240 tok/s, ≈8× at 480 tok/s in a local micro-benchmark of the renderer). - **#2879:** Added `selectRollingSummaryMessages`, a pure helper that keeps the plain last-`contextSize` window for the first summary and whenever the visible set fits the window, but extends the window back to the previous summary's boundary when visible messages have piled up past it — pulling the drifted tail back into the batch so it is summarized and hidden on this run. The boundary is identified by ids a live summary entry actually summarized (its `messageIds` / `hiddenMessageIds`), **not** the bare `hiddenFromAI` flag — a user's manual "Hide from AI" toggle writes the same flag, and keying off it would let a stray manual hide be misread as a boundary and balloon the window to nearly the whole chat. Including `messageIds` (guarded by a hidden-check so the protected tail isn't chosen) also covers entries created before the `hiddenMessageIds` field existed. Wired into the automatic summary (`generate.routes.ts`) and the manual "summarize last N" path (`chats.routes.ts`); the explicit manual range path is unchanged. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Tested on a build deployed to my private staging instance. - **#2866:** In a Roleplay chat with a first-message scenario, `/impersonate "Hi"` then `/continue` — confirm a new assistant reply is created rather than text being appended to the scenario message. Also confirm the normal case still continues: with the last message being an assistant reply, `/continue` extends it. - **#2867:** A message with one swipe shows no counter; a message with multiple swipes shows the `n / m` counter and arrows. - **#2868 (please confirm on a real mobile device):** On Android, open the "More options" toolbar menu, open Author's Notes, tap the textarea — the panel stays open with the keyboard up and is editable. Same for the manual Summary editor. Also verified here with a Pixel-7 Playwright device-emulation run (the on-screen keyboard simulated by shrinking the viewport height, which fires the same `resize` / `visualViewport resize`): before the fix the panel unmounted on the simulated keyboard; after the fix it stays open and preserves typed text. - **#2869 (needs a touch device ≥768px):** On a tablet, the drag handle appears on character rows and a character can be dragged into a folder. On a mouse desktop the handle stays hidden and native row-drag still works. - **#2870:** In a Conversation-mode group chat with two or three visually distinct characters, have different characters take a selfie — each selfie should match the character that took it, not the first character. - **#2877:** Reproduced live with an A/B test in a group chat. With Character Commands **on**, each character's reaction rendered as a badge. With Character Commands **off**, the same prompt produced literal `[react: emoji="…"]` text in every reply with no badge. After the fix, with commands off the model is no longer told it can react, so the raw tag no longer appears; with commands on, reactions still post as badges. - **#2878:** Enable streaming, then generate a long multi-paragraph reply in both Conversation and Roleplay modes and confirm the stream stays smooth (no input/scroll stutter that worsens as the message grows), the live text still updates continuously, and the finished message matches what streamed. The throttle is covered by a focused unit test for `rafThrottle` (a burst of calls in one frame collapses to a single apply with the latest value; per-frame ordering; flush/cancel; clearing to empty is delivered). The O(n²) per-token re-parse and the throttled-vs-current parse counts were measured against the real `renderMarkdownBlocks` (message length ×2 → streaming parse time ×~4; throttling cuts parse work ≈4× at 240 tok/s and ≈8× at 480 tok/s, and is a no-op at ≤60 tok/s). - **#2879:** Covered by a focused regression test for `selectRollingSummaryMessages` + `computeSummaryHideIds`: the first summary still selects the plain last-`contextSize` window; a previously-protected tail that has drifted beyond the window is bridged back and hidden (`e…n`) instead of stranded; a manual "Hide from AI" is **not** treated as a boundary (no window ballooning); and pre-`hiddenMessageIds` entries still anchor a boundary. Also manually verify across two consecutive automatic summaries with a nonzero tail that no previously-summarized message remains visible, and that toggling "Hide from AI" on an early message before an automatic summary does not blow up the summarized range. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) --- <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:23 +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#5774
No description provided.