[PR #6] [CLOSED] Scope PinnedImageOverlay to active chat #4386

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6
Author: @Copilot
Created: 3/9/2026
Status: ❌ Closed

Base: release/1.2.0 ← Head: copilot/sub-pr-1-one-more-time


📝 Commits (2)

  • d7e0d4e Initial plan
  • 8665413 Scope pinned images per active chat in PinnedImageOverlay

📊 Changes

2 files changed (+8 additions, -6 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+2 -2)
📝 packages/client/src/components/chat/PinnedImageOverlay.tsx (+6 -4)

📄 Description

PinnedImageOverlay rendered all pinned images globally, causing pins from one chat to bleed into others, since ChatImage already carries a chatId field that was never used for filtering.

Changes

  • PinnedImageOverlay: Accepts activeChatId prop; filters pinnedImages to img.chatId === activeChatId before rendering
  • ChatArea: Both render sites (roleplay and conversation mode) now pass activeChatId
// Before
export function PinnedImageOverlay() {
  const pinnedImages = useGalleryStore((s) => s.pinnedImages);
  // renders all pinned images regardless of active chat

// After
export function PinnedImageOverlay({ activeChatId }: { activeChatId: string | null | undefined }) {
  const pinnedImages = useGalleryStore((s) => s.pinnedImages);
  const visibleImages = pinnedImages.filter((img) => img.chatId === activeChatId);

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.


🔄 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/6 **Author:** [@Copilot](https://github.com/apps/copilot-swe-agent) **Created:** 3/9/2026 **Status:** ❌ Closed **Base:** `release/1.2.0` ← **Head:** `copilot/sub-pr-1-one-more-time` --- ### 📝 Commits (2) - [`d7e0d4e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d7e0d4e07698549d0832e577d1b174724b0e9c80) Initial plan - [`8665413`](https://github.com/Pasta-Devs/Marinara-Engine/commit/86654138ee48f9281b91139cc4f29602594cf116) Scope pinned images per active chat in PinnedImageOverlay ### 📊 Changes **2 files changed** (+8 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+2 -2) 📝 `packages/client/src/components/chat/PinnedImageOverlay.tsx` (+6 -4) </details> ### 📄 Description `PinnedImageOverlay` rendered all pinned images globally, causing pins from one chat to bleed into others, since `ChatImage` already carries a `chatId` field that was never used for filtering. ## Changes - **`PinnedImageOverlay`**: Accepts `activeChatId` prop; filters `pinnedImages` to `img.chatId === activeChatId` before rendering - **`ChatArea`**: Both render sites (roleplay and conversation mode) now pass `activeChatId` ```tsx // Before export function PinnedImageOverlay() { const pinnedImages = useGalleryStore((s) => s.pinnedImages); // renders all pinned images regardless of active chat // After export function PinnedImageOverlay({ activeChatId }: { activeChatId: string | null | undefined }) { const pinnedImages = useGalleryStore((s) => s.pinnedImages); const visibleImages = pinnedImages.filter((img) => img.chatId === activeChatId); ``` <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:09 +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#4386
No description provided.