[GH-ISSUE #5795] [Issue]: /goto does not scroll in Conversation mode #3203

Closed
opened 2026-10-21 06:00:31 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Conversation mode, the /goto <n> slash command (and its /jump / /scroll aliases) is consumed by the composer but the transcript never scrolls to the requested message, and a target older than the loaded history is not paged in either.

Expected behavior

/goto 30 on a 120-message Conversation chat should page older messages in as needed and scroll the transcript so message 30 is centered, the same way the request from the chat message search does.

Actual behavior

The composer clears (the command is matched and executed), no feedback is shown, and the visible transcript does not move. This happens both for a target older than the loaded page (/goto 30 with 20 messages loaded: no "Load more" fetch is issued) and for a target already mounted in the tail (/goto 104 with messages 101-120 loaded: no scroll). A manual scrollIntoView on the target message element from DevTools works and sticks, so nothing is snapping the view back; the jump itself is not landing.

Steps to reproduce

  1. Open a Conversation chat with more than 100 messages, "Messages per page" at the default 20.
  2. Type /goto 30 in the composer and press Enter.
  3. Observe: composer clears, transcript stays at the bottom, no older page is fetched.
  4. Type /goto 104 (a message already on screen or just above it) and press Enter. Observe: no scroll.

Environment

  • Marinara Engine version: staging @ d277828ac (2026-09-03)
  • Install type: docker
  • OS + version: Linux container (server), Windows 11 (client)
  • Browser or app shell: Chrome 143

Logs, screenshots, or video

No console errors. Verified on the staging build first and then again on the #5794 branch; behavior is identical, so it predates that change.

Additional context

Found while verifying #5794. The jump is requested via useChatStore.requestGotoMessage (slash-commands.ts goto handler) and consumed by the effect in ChatArea.tsx (~2813) that resolves the target through messageIdByOrderIndex and calls scrollIntoView inside a requestAnimationFrame; I have not yet traced which step drops it in Conversation mode. Roleplay mode not yet compared.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Romuromylus on GitHub (Sep 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5795 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Conversation mode, the `/goto <n>` slash command (and its `/jump` / `/scroll` aliases) is consumed by the composer but the transcript never scrolls to the requested message, and a target older than the loaded history is not paged in either. ## Expected behavior `/goto 30` on a 120-message Conversation chat should page older messages in as needed and scroll the transcript so message 30 is centered, the same way the request from the chat message search does. ## Actual behavior The composer clears (the command is matched and executed), no feedback is shown, and the visible transcript does not move. This happens both for a target older than the loaded page (`/goto 30` with 20 messages loaded: no "Load more" fetch is issued) and for a target already mounted in the tail (`/goto 104` with messages 101-120 loaded: no scroll). A manual `scrollIntoView` on the target message element from DevTools works and sticks, so nothing is snapping the view back; the jump itself is not landing. ## Steps to reproduce 1. Open a Conversation chat with more than 100 messages, "Messages per page" at the default 20. 2. Type `/goto 30` in the composer and press Enter. 3. Observe: composer clears, transcript stays at the bottom, no older page is fetched. 4. Type `/goto 104` (a message already on screen or just above it) and press Enter. Observe: no scroll. ## Environment - Marinara Engine version: staging @ d277828ac (2026-09-03) - Install type: docker - OS + version: Linux container (server), Windows 11 (client) - Browser or app shell: Chrome 143 ## Logs, screenshots, or video No console errors. Verified on the staging build first and then again on the #5794 branch; behavior is identical, so it predates that change. ## Additional context Found while verifying #5794. The jump is requested via `useChatStore.requestGotoMessage` (`slash-commands.ts` goto handler) and consumed by the effect in `ChatArea.tsx` (~2813) that resolves the target through `messageIdByOrderIndex` and calls `scrollIntoView` inside a `requestAnimationFrame`; I have not yet traced which step drops it in Conversation mode. Roleplay mode not yet compared. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:00:31 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 5, 2026):

Owner: @SpicyMarinara, implementation by Codex in Issue Sweep PR #5865. I have read the issue and all current comments. Work will target staging, reuse existing code, and include focused regression proof; unrelated open/draft PRs remain untouched.

<!-- gh-comment-id:5551230167 --> @SpicyMarinara commented on GitHub (Sep 5, 2026): Owner: @SpicyMarinara, implementation by Codex in Issue Sweep PR #5865. I have read the issue and all current comments. Work will target staging, reuse existing code, and include focused regression proof; unrelated open/draft PRs remain untouched.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 5, 2026):

Current staging baseline 498756ec9 already passes the reported Conversation navigation path: /goto 104, /jump 30, and /scroll 80 reached their expected message without snapping back after settling. Issue Sweep #5865 adds runnable desktop/mobile coverage for those exact paths rather than speculative application changes. I will close this issue with the sweep after its required gates pass; a new reproduction with chat-specific details would help if a different navigation case remains.

<!-- gh-comment-id:5551456545 --> @SpicyMarinara commented on GitHub (Sep 5, 2026): Current staging baseline 498756ec9 already passes the reported Conversation navigation path: /goto 104, /jump 30, and /scroll 80 reached their expected message without snapping back after settling. Issue Sweep #5865 adds runnable desktop/mobile coverage for those exact paths rather than speculative application changes. I will close this issue with the sweep after its required gates pass; a new reproduction with chat-specific details would help if a different navigation case remains.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 5, 2026):

Completed on staging in #5865 (merge 314a71a586).

Verified goto, jump, and scroll already work on staging and added settled Conversation navigation regressions. No speculative production change was needed.

Focused regression proof and manual verification boundaries are documented in the PR. Required checks and the full final regression matrix passed; CodeRabbit completed review with all threads resolved. Closing as completed on staging, not a main release.

<!-- gh-comment-id:5552144308 --> @SpicyMarinara commented on GitHub (Sep 5, 2026): Completed on staging in #5865 (merge 314a71a5862f120284bb24014e401e226be79866). Verified goto, jump, and scroll already work on staging and added settled Conversation navigation regressions. No speculative production change was needed. Focused regression proof and manual verification boundaries are documented in the PR. Required checks and the full final regression matrix passed; CodeRabbit completed review with all threads resolved. Closing as completed on staging, not a main release.
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#3203
No description provided.