[PR #2823] [MERGED] feat: add re-run button to Echo Chamber panel #5751

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

📋 Pull Request Information

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

Base: staging ← Head: feat/echo-chamber-rerun-clean


📝 Commits (1)

  • 08d520c feat: add re-run button to Echo Chamber panel

📊 Changes

1 file changed (+18 additions, -1 deletions)

View changed files

📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+18 -1)

📄 Description

Linked issue

Closes #2822

Why this change

The Echo Chamber agent has no manual re-run path. It only fires during normal generation — there's no way to refresh its reactions without generating a new reply. The existing tracker refresh button retries agents via retryAgents(), but it's scoped to category: "tracker" agents only. Echo Chamber is category: "misc", so it's excluded by design.

What changed

  • Added a RefreshCw button to the Echo Chamber panel header (left of the clear-messages button)
  • Button calls retryAgents(chatId, ["echo-chamber"]) — reuses the existing retry infrastructure, scoped to just echo chamber
  • Button is disabled while a reply or agent is already processing (isAgentProcessing || (isStreaming && streamingChatId === activeChatId))
  • Animated spin icon when busy
  • Styled with the same CSS variables as other header buttons

Only EchoChamberPanel.tsx is modified (18 lines added).

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

  • Built the app and loaded it locally
  • Opened a roleplay chat with Echo Chamber enabled
  • Confirmed the refresh button appears in the panel header
  • Clicked the button and observed echo chamber agent re-running and new messages appearing
  • Confirmed button disables + spins while a reply is streaming
  • Confirmed button disables while agents are processing

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)

image

🔄 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/2823 **Author:** [@kevin-ho](https://github.com/kevin-ho) **Created:** 6/23/2026 **Status:** ✅ Merged **Merged:** 6/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/echo-chamber-rerun-clean` --- ### 📝 Commits (1) - [`08d520c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/08d520c3869cec99967947929ce97cf0215e82f0) feat: add re-run button to Echo Chamber panel ### 📊 Changes **1 file changed** (+18 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+18 -1) </details> ### 📄 Description ## Linked issue Closes #2822 ## Why this change The Echo Chamber agent has no manual re-run path. It only fires during normal generation — there's no way to refresh its reactions without generating a new reply. The existing tracker refresh button retries agents via `retryAgents()`, but it's scoped to `category: "tracker"` agents only. Echo Chamber is `category: "misc"`, so it's excluded by design. ## What changed - Added a `RefreshCw` button to the Echo Chamber panel header (left of the clear-messages button) - Button calls `retryAgents(chatId, ["echo-chamber"])` — reuses the existing retry infrastructure, scoped to just echo chamber - Button is disabled while a reply or agent is already processing (`isAgentProcessing || (isStreaming && streamingChatId === activeChatId)`) - Animated spin icon when busy - Styled with the same CSS variables as other header buttons Only `EchoChamberPanel.tsx` is modified (18 lines added). ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] 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) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Built the app and loaded it locally - Opened a roleplay chat with Echo Chamber enabled - Confirmed the refresh button appears in the panel header - Clicked the button and observed echo chamber agent re-running and new messages appearing - Confirmed button disables + spins while a reply is streaming - Confirmed button disables while agents are processing ## Docs and release impact - [x] 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) <img width="540" height="72" alt="image" src="https://github.com/user-attachments/assets/47a6be33-8c16-49a6-8ff4-61f103c859aa" /> --- <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:12 +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#5751
No description provided.