[GH-ISSUE #2822] [Feature]: Add manual re-run button to Echo Chamber panel #1433

Closed
opened 2026-10-21 05:33:47 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kevin-ho on GitHub (Jun 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2822

What problem does this solve?

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 "Refresh Trackers" button retries agents via retryAgents(chatId, agentTypes), but it's hardcoded to only retry agents with category: "tracker". Echo Chamber is category: "misc", so it's excluded by design.

This means if echo chamber reactions feel stale or didn't fire on the last turn, the only option is to regenerate the entire reply — which is slow, costs tokens, and may change the response.

Proposed solution

Add a small refresh button to the Echo Chamber panel header that calls retryAgents(chatId, ["echo-chamber"]) directly. This reuses the existing retryAgents infrastructure but scopes it to just the echo chamber agent.

The button:

  • Sits in the panel header, left of the clear-messages (trash) button
  • Uses the same RefreshCw icon style as other UI refresh actions
  • Disables itself while a reply or agent is already processing
  • Shows a spin animation when busy

Implementation is ~18 lines in EchoChamberPanel.tsx — adds the button, hooks into useGenerate().retryAgents, and checks isAgentProcessing || isStreaming to prevent concurrent runs.

Alternatives considered

  • Include echo-chamber in the tracker refresh loop — Changing echo chamber's category or the tracker refresh filter would affect other logic (agent ordering, parallel/sequential execution). Too broad for this use case.
  • Regenerate the reply — Works but wasteful. Re-runs all agents and generates new text when you only want fresh echo reactions.

Additional context

Have a working implementation ready. The retryAgents hook already accepts arbitrary agent type arrays, so this is a clean, minimal addition.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @kevin-ho on GitHub (Jun 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2822 ## What problem does this solve? 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 "Refresh Trackers" button retries agents via `retryAgents(chatId, agentTypes)`, but it's hardcoded to only retry agents with `category: "tracker"`. Echo Chamber is `category: "misc"`, so it's excluded by design. This means if echo chamber reactions feel stale or didn't fire on the last turn, the only option is to regenerate the entire reply — which is slow, costs tokens, and may change the response. ## Proposed solution Add a small refresh button to the Echo Chamber panel header that calls `retryAgents(chatId, ["echo-chamber"])` directly. This reuses the existing `retryAgents` infrastructure but scopes it to just the echo chamber agent. The button: - Sits in the panel header, left of the clear-messages (trash) button - Uses the same `RefreshCw` icon style as other UI refresh actions - Disables itself while a reply or agent is already processing - Shows a spin animation when busy Implementation is ~18 lines in `EchoChamberPanel.tsx` — adds the button, hooks into `useGenerate().retryAgents`, and checks `isAgentProcessing || isStreaming` to prevent concurrent runs. ## Alternatives considered - **Include echo-chamber in the tracker refresh loop** — Changing echo chamber's category or the tracker refresh filter would affect other logic (agent ordering, parallel/sequential execution). Too broad for this use case. - **Regenerate the reply** — Works but wasteful. Re-runs all agents and generates new text when you only want fresh echo reactions. ## Additional context Have a working implementation ready. The `retryAgents` hook already accepts arbitrary agent type arrays, so this is a clean, minimal addition. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:33:47 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jun 23, 2026):

Thank you for the hard work, checking out the PR right now!

<!-- gh-comment-id:4777699324 --> @SpicyMarinara commented on GitHub (Jun 23, 2026): Thank you for the hard work, checking out the PR right now!
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#1433
No description provided.