mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2490] [Issue]: 13-AGENT-ERROR-empty-response-failures disabled custom agents vanish without failure #1233
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#1233
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 @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2490
Summary
Surface 13-AGENT-ERROR-empty-response-failures: disabled custom agents that are active in a chat or explicitly requested for retry can be filtered out before the agent runtime creates a failed AgentResult. The UI then has no failure to show.
Linked tracker: #2482
Expected behavior
When an active/requested custom agent is disabled and would otherwise be selected for generation or retry, Marinara should surface an agent failure instead of silently dropping it.
Actual behavior
Refactor filters rows with
enabled === falsebefore requested/scoped matching insrc/engine/generation/agent-runner.ts, then returns no skipped failure for that agent.Steps to reproduce
activeAgentIds, or retry that agent explicitly.Impact area
Environment
Logs, screenshots, or video
Proof:
src/engine/generation/agent-runner.ts:1080,src/engine/generation/agent-runner.ts:1083,src/engine/generation/agent-runner.ts:1093.src/engine/generation/agent-runner.ts:1012,src/engine/generation/agent-runner.ts:1026,src/engine/generation/agent-runner.ts:1027,src/engine/generation/agent-runner.ts:1153.skippedResultsand normal results to UI failure handling:src/engine/generation/agent-runner.ts:1108,src/engine/generation/agent-runner.ts:1182,src/engine/generation/agent-runner.ts:1640;src/features/runtime/generation/hooks/use-generate.ts:1090,src/features/runtime/generation/hooks/use-generate.ts:1091.agentsStore.list()for generation and retry config selection rather thanlistEnabled():packages/server/src/services/storage/agents.storage.ts:147,packages/server/src/routes/generate.routes.ts:2267,packages/server/src/routes/generate.routes.ts:3972,packages/server/src/routes/generate/retry-agents-route.ts:501.Files inspected:
src/engine/generation/agent-runner.tssrc/engine/agents-runtime/executor/agent-executor.tssrc/features/runtime/generation/hooks/use-generate.tssrc/features/catalog/agents/components/AgentDebugPanel.tsxsrc/features/catalog/agents/components/AgentThoughtBubbles.tsxsrc/shared/lib/agent-failures.tssrc/shared/stores/agent.store.tspackages/server/src/routes/generate.routes.tsonupstream/mainpackages/server/src/routes/generate/retry-agents-route.tsonupstream/mainpackages/server/src/services/storage/agents.storage.tsonupstream/mainpackages/server/src/services/agents/agent-executor.tsonupstream/mainpackages/client/src/hooks/use-generate.tsonupstream/mainpackages/client/src/components/agents/AgentDebugPanel.tsxonupstream/mainRegression notes
Legacy did not filter disabled custom agent rows out at config-list entry for the inspected generation and retry paths. Refactor filters them before creating a failure result.
Additional context
Acceptance criteria:
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: