[PR #1935] [MERGED] Open chats at latest message #5346

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1935
Author: @Promansis
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @Promansis

Base: refactor ← Head: chat-open-bottom-position


📝 Commits (1)

  • 3d08247 Open chats at latest message

📊 Changes

2 files changed (+24 additions, -0 deletions)

View changed files

📝 src/features/modes/conversation/components/ConversationView.tsx (+12 -0)
📝 src/features/modes/roleplay/hooks/use-roleplay-transcript-scroll.ts (+12 -0)

📄 Description

Linked issue

Closes #1931

Why this change

  • Opening an existing chat could visibly render above the latest message and then smooth-scroll down, instead of opening directly at the most recent message.

What changed

  • Added first-open layout positioning for conversation transcripts so the scroll container lands at the latest loaded message before paint.
  • Added the same first-open layout positioning for roleplay transcripts.
  • Left existing smooth auto-scroll behavior in place for later live updates and kept load-more scroll preservation separate.

Refactor impact

Primary owner:

chat mode, roleplay mode

Impact areas reviewed:

  • Conversation transcript scroll behavior.
  • Roleplay transcript scroll behavior.
  • Existing load-more scroll preservation path.

Boundary notes:

  • Feature UI only; no engine, shared API, Rust, storage, or remote-runtime boundary changes.

Pressure points touched:

  • Shared mode transcript scroll behavior in conversation and roleplay surfaces.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • pnpm typecheck passed locally.
  • No browser/manual UI pass performed.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • N/A; this is a bugfix to existing chat opening behavior, not a new discoverable feature.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

  • Not captured.

🔄 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/1935 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/2/2026 **Status:** ✅ Merged **Merged:** 6/2/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `chat-open-bottom-position` --- ### 📝 Commits (1) - [`3d08247`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3d082476db418f38fdf72724c5e5aad36ebc37c0) Open chats at latest message ### 📊 Changes **2 files changed** (+24 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/conversation/components/ConversationView.tsx` (+12 -0) 📝 `src/features/modes/roleplay/hooks/use-roleplay-transcript-scroll.ts` (+12 -0) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue <!-- Every user-facing PR should reference a feature request or issue report when practical. --> Closes #1931 ## Why this change <!-- What user problem, bug, refactor goal, or maintenance need does this solve? --> - Opening an existing chat could visibly render above the latest message and then smooth-scroll down, instead of opening directly at the most recent message. ## What changed <!-- List the key changes in this PR. --> - Added first-open layout positioning for conversation transcripts so the scroll container lands at the latest loaded message before paint. - Added the same first-open layout positioning for roleplay transcripts. - Left existing smooth auto-scroll behavior in place for later live updates and kept load-more scroll preservation separate. ## Refactor impact Primary owner: <!-- Examples: app shell, catalog, chat mode, roleplay mode, game mode, runtime generation, world-state, shared API, engine generation, Rust storage, imports, remote runtime. --> chat mode, roleplay mode Impact areas reviewed: - Conversation transcript scroll behavior. - Roleplay transcript scroll behavior. - Existing load-more scroll preservation path. Boundary notes: <!-- Note engine/shared-api/feature/Rust/remote-runtime boundaries. Say "none" only if you checked. --> - Feature UI only; no engine, shared API, Rust, storage, or remote-runtime boundary changes. Pressure points touched: <!-- Mention ModeSurface, GameSurface, shared mode UI, src-tauri/src/lib.rs command registration, or import modules if touched. --> - Shared mode transcript scroll behavior in conversation and roleplay surfaces. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> <!-- Do not submit *.test.ts or *.test.tsx files as PR proof; cite existing checks, command output, app/browser/Tauri verification, or manual notes instead. --> - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [x] Human/manual validation completed by contributor or reviewer ### Manual verification notes <!-- Describe exact commands and manual steps, including typecheck/build/docs/architecture/Rust/browser/remote-runtime checks when they apply. If an AI agent filled this out, verify it yourself before ticking boxes. --> - `pnpm typecheck` passed locally. - No browser/manual UI pass performed. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - N/A; this is a bugfix to existing chat opening behavior, not a new discoverable feature. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence <!-- Add before/after screenshots or recordings for visible UI changes. --> - Not captured. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:26 +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#5346
No description provided.