[PR #5277] [MERGED] Keep stale CYOA choices hidden after goto #6700

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5277
Author: @SpicyMarinara
Created: 8/19/2026
Status: ✅ Merged
Merged: 8/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/cyoa-goto-tail-5269


📝 Commits (3)

  • f0cf218 fix stale CYOA choices after goto
  • 3864ab1 stabilize CYOA goto browser proof
  • c861f26 Merge remote-tracking branch 'origin/staging' into fix/cyoa-goto-tail-5269

📊 Changes

3 files changed (+58 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+56 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+1 -1)

📄 Description

Why

/goto moves Roleplay into an older 80-message render window. The tail-mounted CYOA control was hydrating from that temporary window, so an old assistant message could resurrect its saved choices even when the actual chat tail had newer choice-free messages.

Fixes #5269.

What changed

  • hydrate the tail CYOA control from the full loaded message set instead of the temporary render window
  • add a focused 81-message imported-chat regression that jumps across the window boundary
  • add the user-facing changelog entry

Validation

  • Run pnpm check
  • Run the focused desktop browser regression
  • Run the focused mobile browser regression
  • Manually verify /goto does not show old CYOA choices at the Roleplay chat tail

Summary by CodeRabbit

  • Bug Fixes

    • Fixed an issue where /goto could display outdated CYOA choices from later messages when navigating to older chat messages.
    • CYOA choices now remain hidden while a response is streaming and display correctly based on the full conversation history.
  • Tests

    • Added end-to-end coverage for navigating imported chats with /goto.

🔄 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/5277 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/19/2026 **Status:** ✅ Merged **Merged:** 8/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/cyoa-goto-tail-5269` --- ### 📝 Commits (3) - [`f0cf218`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f0cf218cca05660ff43df182b836c757aaf78826) fix stale CYOA choices after goto - [`3864ab1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3864ab12c3af8643025decc4392cb6d7a1df27d2) stabilize CYOA goto browser proof - [`c861f26`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c861f2650c89a3d5e75749acd4e948b47fd968da) Merge remote-tracking branch 'origin/staging' into fix/cyoa-goto-tail-5269 ### 📊 Changes **3 files changed** (+58 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+56 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+1 -1) </details> ### 📄 Description ## Why `/goto` moves Roleplay into an older 80-message render window. The tail-mounted CYOA control was hydrating from that temporary window, so an old assistant message could resurrect its saved choices even when the actual chat tail had newer choice-free messages. Fixes #5269. ## What changed - hydrate the tail CYOA control from the full loaded message set instead of the temporary render window - add a focused 81-message imported-chat regression that jumps across the window boundary - add the user-facing changelog entry ## Validation - [ ] Run `pnpm check` - [ ] Run the focused desktop browser regression - [ ] Run the focused mobile browser regression - [ ] Manually verify `/goto` does not show old CYOA choices at the Roleplay chat tail <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Fixed an issue where `/goto` could display outdated CYOA choices from later messages when navigating to older chat messages. - CYOA choices now remain hidden while a response is streaming and display correctly based on the full conversation history. - **Tests** - Added end-to-end coverage for navigating imported chats with `/goto`. <!-- 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:12:51 +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#6700
No description provided.