[PR #3003] [MERGED] [codex] Fix folder rename taps and peek prompt history display #5783

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

📋 Pull Request Information

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

Base: staging ← Head: codex/folder-rename-peek-prompt-display


📝 Commits (1)

  • 3253e76 Fix folder rename taps and peek prompt history

📊 Changes

11 files changed (+50 additions, -25 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/PeekPromptModal.tsx (+9 -2)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+3 -3)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+3 -3)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+3 -3)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+3 -3)
📝 packages/client/src/components/panels/GlobalGalleryPanel.tsx (+2 -2)
📝 packages/client/src/components/panels/LorebooksPanel.tsx (+3 -3)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+3 -3)
📝 packages/client/src/components/panels/PresetsPanel.tsx (+3 -3)
📝 packages/client/src/hooks/use-folder-rename-gesture.ts (+17 -0)

📄 Description

Linked issue

No linked issue; maintainer-requested follow-up fixes from chat.

Why this change

  • Mobile users could not double-tap folder names to rename folders because coarse-pointer folder taps immediately toggled the folder without preserving a second-tap rename gesture.
  • Peek Prompt could display system-role chat-history wrapper content inside the Chat History section even though system prompt sections are already shown separately, making the preview look duplicated or alarming.

What changed

  • Updated the shared folder rename gesture so mobile/coarse-pointer users can tap once to open/collapse and double-tap within the rename window to rename.
  • Updated folder helper, tooltip, and accessibility copy across chats, characters, lorebooks, presets, connections, personas, agents, and gallery folders to mention double-click/double-tap rename behavior.
  • Filtered Peek Prompt's displayed Chat History section to only show user and assistant turns, leaving system prompt sections visible only in their separate prompt blocks.
  • Added the Peek Prompt display fix to the v2.0.7 changelog.

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

  • Ran pnpm --filter @marinara-engine/client lint.
  • Ran pnpm --filter @marinara-engine/client build.
  • Browser/device manual verification not performed in this session.

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)

UI evidence (if applicable)

  • Not captured; behavior validated through targeted code inspection plus client lint/build.

Summary by CodeRabbit

  • New Features

    • Folder renaming now works with double-tap on touch devices, alongside double-click and F2.
    • Updated folder helper text across several panels to make rename actions clearer.
  • Bug Fixes

    • Peek Prompt now shows only user and assistant turns in Chat History, avoiding repeated system and wrapper content.
  • Documentation

    • Changelog updated to reflect the Peek Prompt display fix.
  • Accessibility

    • Improved folder labels and tooltips to better describe rename interactions.

🔄 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/3003 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/29/2026 **Status:** ✅ Merged **Merged:** 6/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/folder-rename-peek-prompt-display` --- ### 📝 Commits (1) - [`3253e76`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3253e768e16a95f56bd4dbce2cdf8da0dfcf2f84) Fix folder rename taps and peek prompt history ### 📊 Changes **11 files changed** (+50 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/PeekPromptModal.tsx` (+9 -2) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+3 -3) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+3 -3) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+3 -3) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+3 -3) 📝 `packages/client/src/components/panels/GlobalGalleryPanel.tsx` (+2 -2) 📝 `packages/client/src/components/panels/LorebooksPanel.tsx` (+3 -3) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+3 -3) 📝 `packages/client/src/components/panels/PresetsPanel.tsx` (+3 -3) 📝 `packages/client/src/hooks/use-folder-rename-gesture.ts` (+17 -0) </details> ### 📄 Description ## Linked issue No linked issue; maintainer-requested follow-up fixes from chat. ## Why this change - Mobile users could not double-tap folder names to rename folders because coarse-pointer folder taps immediately toggled the folder without preserving a second-tap rename gesture. - Peek Prompt could display system-role chat-history wrapper content inside the Chat History section even though system prompt sections are already shown separately, making the preview look duplicated or alarming. ## What changed - Updated the shared folder rename gesture so mobile/coarse-pointer users can tap once to open/collapse and double-tap within the rename window to rename. - Updated folder helper, tooltip, and accessibility copy across chats, characters, lorebooks, presets, connections, personas, agents, and gallery folders to mention double-click/double-tap rename behavior. - Filtered Peek Prompt's displayed Chat History section to only show `user` and `assistant` turns, leaving system prompt sections visible only in their separate prompt blocks. - Added the Peek Prompt display fix to the v2.0.7 changelog. ## 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 - Ran `pnpm --filter @marinara-engine/client lint`. - Ran `pnpm --filter @marinara-engine/client build`. - Browser/device manual verification not performed in this session. ## 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) ## UI evidence (if applicable) - Not captured; behavior validated through targeted code inspection plus client lint/build. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Folder renaming now works with double-tap on touch devices, alongside double-click and F2. * Updated folder helper text across several panels to make rename actions clearer. * **Bug Fixes** * Peek Prompt now shows only user and assistant turns in Chat History, avoiding repeated system and wrapper content. * **Documentation** * Changelog updated to reflect the Peek Prompt display fix. * **Accessibility** * Improved folder labels and tooltips to better describe rename interactions. <!-- 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-22 04:19:29 +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#5783
No description provided.