[PR #4962] [MERGED] Add simple in-chat message search #6555

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

📋 Pull Request Information

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

Base: staging ← Head: agent/simple-chat-search


📝 Commits (4)

  • 8437651 feat: start simple chat search
  • eba3db9 feat: add simple in-chat message search
  • f765dce fix: address message search review feedback
  • c89eda3 fix: reset handled chat navigation on switch

📊 Changes

7 files changed (+399 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+70 -0)
➕ packages/client/src/components/chat/ChatMessageSearch.tsx (+258 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+28 -0)
📝 packages/client/src/components/chat/ChatToolbarControls.tsx (+3 -3)
📝 packages/client/src/components/chat/ConversationView.tsx (+26 -0)
📝 packages/client/src/localization/locales/en.json (+13 -0)

📄 Description

Linked issue

Related to #4922.
Supersedes the closed draft #4923 with a smaller maintainer-owned implementation.

Why this change

Long Conversation and Roleplay chats need a built-in way to find an earlier message and jump to it. Device-level find is inconsistent in the app and cannot reach messages that are not currently mounted or loaded.

What changed

  • Added literal, case-insensitive search for the current chat, loaded only when the panel opens.
  • Added a compact results panel that reuses the existing message-jump flow.
  • Made jumps render targets that are outside the current 80-message transcript window.
  • Placed Search immediately before Chat Settings in every Conversation and Roleplay toolbar layout.
  • Kept the implementation deliberately narrow: no regex, filters, sorting, or new server search subsystem.
  • Added English localization, an Unreleased changelog entry, and a focused desktop/mobile regression test.
  • Applied all CodeRabbit findings: short-lived result caching and one-shot transcript reveal state that resets on chat switches.

The PR contains 399 additions in total, including 70 lines of regression coverage, versus 1,107 additions in the superseded draft.

Automated evidence collected

  • pnpm check
  • pnpm localization:check
  • pnpm --filter @marinara-engine/client lint
  • pnpm build:client
  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --grep "message search stays before Chat Settings and jumps to unloaded history" (desktop and mobile)
  • GitHub pnpm-validate, container-build-test, and CodeRabbit checks pass; all CodeRabbit review threads are resolved.
  • A broad pnpm smoke:ui attempt encountered unrelated failures in existing cases while reusing the previously running development servers; the focused regression above passes in both projects.

Validation checklist

  • Manually verify Conversation search in a browser
  • Manually verify Roleplay search in a browser
  • Manually verify desktop and mobile layouts
  • Manually verify light and dark themes
  • Confirm required checks pass on GitHub
  • Confirm CodeRabbit review is complete
  • Read and followed CONTRIBUTING.md

Docs and release impact

  • No user-facing documentation pages changed
  • Unreleased changelog entry reviewed
  • No version/release metadata changes required

🔄 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/4962 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/13/2026 **Status:** ✅ Merged **Merged:** 8/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/simple-chat-search` --- ### 📝 Commits (4) - [`8437651`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8437651740b34bedd0754b3737adba81af6bc637) feat: start simple chat search - [`eba3db9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eba3db90c3fa890cf27b97a75e5b2966ebb00750) feat: add simple in-chat message search - [`f765dce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f765dcebfc5a86fd7a052c7ba07b7e620319086b) fix: address message search review feedback - [`c89eda3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c89eda36044c2214e8b33af29ce079c7b550eace) fix: reset handled chat navigation on switch ### 📊 Changes **7 files changed** (+399 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+70 -0) ➕ `packages/client/src/components/chat/ChatMessageSearch.tsx` (+258 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+28 -0) 📝 `packages/client/src/components/chat/ChatToolbarControls.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+26 -0) 📝 `packages/client/src/localization/locales/en.json` (+13 -0) </details> ### 📄 Description ## Linked issue Related to #4922. Supersedes the closed draft #4923 with a smaller maintainer-owned implementation. ## Why this change Long Conversation and Roleplay chats need a built-in way to find an earlier message and jump to it. Device-level find is inconsistent in the app and cannot reach messages that are not currently mounted or loaded. ## What changed - Added literal, case-insensitive search for the current chat, loaded only when the panel opens. - Added a compact results panel that reuses the existing message-jump flow. - Made jumps render targets that are outside the current 80-message transcript window. - Placed Search immediately before Chat Settings in every Conversation and Roleplay toolbar layout. - Kept the implementation deliberately narrow: no regex, filters, sorting, or new server search subsystem. - Added English localization, an Unreleased changelog entry, and a focused desktop/mobile regression test. - Applied all CodeRabbit findings: short-lived result caching and one-shot transcript reveal state that resets on chat switches. The PR contains 399 additions in total, including 70 lines of regression coverage, versus 1,107 additions in the superseded draft. ## Automated evidence collected - `pnpm check` - `pnpm localization:check` - `pnpm --filter @marinara-engine/client lint` - `pnpm build:client` - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --grep "message search stays before Chat Settings and jumps to unloaded history"` (desktop and mobile) - GitHub `pnpm-validate`, `container-build-test`, and CodeRabbit checks pass; all CodeRabbit review threads are resolved. - A broad `pnpm smoke:ui` attempt encountered unrelated failures in existing cases while reusing the previously running development servers; the focused regression above passes in both projects. ## Validation checklist - [ ] Manually verify Conversation search in a browser - [ ] Manually verify Roleplay search in a browser - [ ] Manually verify desktop and mobile layouts - [ ] Manually verify light and dark themes - [ ] Confirm required checks pass on GitHub - [ ] Confirm CodeRabbit review is complete - [ ] Read and followed `CONTRIBUTING.md` ## Docs and release impact - [ ] No user-facing documentation pages changed - [ ] Unreleased changelog entry reviewed - [ ] No version/release metadata changes required --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:11:32 +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#6555
No description provided.