mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3878] [Feature]: Manually re-run a specific custom agent from Chat Settings #2094
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2094
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kh0p on GitHub (Jul 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3878
What problem does this solve?
The retry-agents backend (
POST /retry-agents) and the client hookuseGenerate().retryAgents(chatId, agentTypes, options)are both fully generic — they accept anyagentTypes: string[]and can target the last message for any active agent. But every existing UI caller hardcodes a single specific agent type (e.g.["illustrator"]for the Illustrate button,["lorebook-keeper"]for the Lorebook Keeper's "Backfill Unprocessed" button), or restricts to built-in tracker agents viaisBuiltInTrackerAgentType.This means a user with a custom agent attached to a chat (e.g. a custom illustrator/prompt-writer agent, a custom continuity/style agent, etc.) has no way to manually re-run just that agent on the last message. If a custom agent's output looked wrong, or the user just wants to regenerate its result without regenerating the whole assistant turn, there is currently no button for that.
Proposed solution
Add a small "re-run" control next to each active custom agent in Chat Settings → Agents → Custom Agents, alongside the existing "Remove from chat" button. Clicking it calls the already-generic
retryAgents(chatId, [agentId])for that specific agent only.This mirrors the existing per-tracker refresh button pattern already used for built-in trackers in the Roleplay HUD panels (
TrackerSectionRefresh/onRerunSingleTracker), just extended to custom agents where that pattern doesn't currently apply.Alternatives considered
isBuiltInTrackerAgentType-gated retry buttons to also cover custom agents — rejected because that gate is specifically for the RP HUD tracker panels (stats/quests/etc.), which custom agents (e.g. image-prompt or style agents) don't belong in contextually.Additional context
No server-side change needed —
resolveActiveRetryAgentTypesinretry-agents-route.tsalready permits retrying any agent type present inchatMeta.activeAgentIds, built-in or custom.@SpicyMarinara commented on GitHub (Jul 20, 2026):
Thank you!!!