[PR #8] [CLOSED] Fix incomplete agent failure list in retry notification #4388

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

📋 Pull Request Information

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

Base: release/1.2.0 ← Head: copilot/sub-pr-1-8d5e0d04-50df-477d-8c29-f714248cc599


📝 Commits (2)

  • 50f346d Initial plan
  • 0515c85 Fix stillFailed to use postResults so skipped agents are included in retry failure notification

📊 Changes

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

View changed files

📝 packages/server/src/routes/generate.routes.ts (+2 -1)

📄 Description

stillFailed was built from retryResults, which only contains agents that were actually retried. Agents skipped because their agentCfg couldn't be resolved were silently omitted, causing the client to receive an incomplete agents_retry_failed event.

Change

Compute stillFailed from the already-updated postResults instead:

// Before — misses agents skipped due to missing agentCfg
const stillFailed = retryResults.filter((r) => !r.success);

// After — postResults already has retry outcomes merged; skipped failures are preserved via `retried ?? r`
const stillFailed = postResults.filter((r) => !r.success);

By this point postResults has been rebuilt via .map() to substitute retry outcomes where available and retain original failure results otherwise, so all originally-failed agents are represented regardless of whether they were retried.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


🔄 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/8 **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-8d5e0d04-50df-477d-8c29-f714248cc599` --- ### 📝 Commits (2) - [`50f346d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/50f346d2e4e9516281a5813be201f81c977e7723) Initial plan - [`0515c85`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0515c85b3084b570cedd1f36e9cb34dbf6957a5b) Fix stillFailed to use postResults so skipped agents are included in retry failure notification ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+2 -1) </details> ### 📄 Description `stillFailed` was built from `retryResults`, which only contains agents that were actually retried. Agents skipped because their `agentCfg` couldn't be resolved were silently omitted, causing the client to receive an incomplete `agents_retry_failed` event. ## Change Compute `stillFailed` from the already-updated `postResults` instead: ```typescript // Before — misses agents skipped due to missing agentCfg const stillFailed = retryResults.filter((r) => !r.success); // After — postResults already has retry outcomes merged; skipped failures are preserved via `retried ?? r` const stillFailed = postResults.filter((r) => !r.success); ``` By this point `postResults` has been rebuilt via `.map()` to substitute retry outcomes where available and retain original failure results otherwise, so all originally-failed agents are represented regardless of whether they were retried. <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/SpicyMarinara/Marinara-Engine/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo. --- <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:10 +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#4388
No description provided.