[PR #8522] [MERGED] fix(agents): show per-agent progress for Update all in the Agent Organizer #8649

Closed
opened 2026-11-07 16:46:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8522
Author: @Gunterlie
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/organizer-update-progress


📝 Commits (3)

  • ca26f68 fix(agents): show per-agent progress for Update all in the Agent Organizer
  • 187c1d1 fix(agents): retry with the live catalog entry and clear search on Update all
  • 554af18 fix(agents): show the retried version on the Updates row

📊 Changes

4 files changed (+177 additions, -48 deletions)

View changed files

📝 packages/client/src/components/agents/AgentCatalogView.tsx (+85 -14)
📝 packages/client/src/components/agents/AgentUpdateDialog.tsx (+57 -28)
📝 packages/client/src/components/agents/organizer/OrganizerLists.tsx (+31 -5)
📝 packages/client/src/components/agents/organizer/OrganizerParts.tsx (+4 -1)

📄 Description

Linked issue

No linked issue. This is a maintainer-requested UX fix (start-up dialog and Agent Organizer behave differently for the same action).

Why this change

The start-up update dialog shows each agent's state while updates run (Updating, Updated ✓, Failed + Retry). The Agent Organizer's Update all did the same job with much weaker feedback:

  • only a thin "Installing 2 of 5…" strip, without the name of the agent in progress
  • all row buttons disabled, with no per-row spinner (busyId is only set for single installs)
  • updated rows vanished from the list, with no ✓
  • a failure was only a toast with the first error, with no row state and no Retry

What changed

  • Update all in the Organizer now runs updates one by one with the single-install mutation, like AgentUpdatePrompter. It opens the Updates page, and each row shows Waiting / Updating / Updated / Failed in place of its button.
  • A failed row shows its error and a Retry button. Rows stay listed until the user leaves the Updates page. The "updates ready" hint counts only the rows that are not updated yet.
  • The row status and the failure box move out of AgentUpdateDialog into the exported AgentUpdateStatus / AgentUpdateFailure. The start-up dialog and the Organizer render the same parts. AgentRow gets an optional action slot.
  • The update path no longer uses the hardcoded English toast ("x of y agents installed…"). It uses the existing localized keys. No new strings.

Validation

  • pnpm check passes locally (typecheck, lint, format, build).

  • pnpm localization:check passes (no new keys).

  • A local reviewer pass found 3 issues (a stale run reused after leaving mid-run, a hint count, the pending guard). All 3 are fixed in this PR.

  • Not done: browser test against a real instance with pending agent updates.

  • Manually verify in the browser: with 2+ agent updates pending, open Agent Organizer → Home → Update all. The Updates page opens, and each row goes Waiting → Updating → Updated ✓.

  • Manually verify: make one update fail (for example, stop the server mid-run or use a broken catalog entry). The row shows Failed, the error and Retry, and Retry updates only that row.

  • Manually verify: leave the Updates page during a run, then come back after it ends. The list shows the current pending updates, not the old run.

  • Manually verify that the start-up update dialog still looks and works as before (Updating / Updated / Failed / Skipped / Retry).

  • Check mobile width (390 px): the status sits where the Update button was and does not wrap badly.

Docs and release impact

  • No docs changes needed

UI evidence

No screenshots yet. See the manual checks above.


🔄 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/8522 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/organizer-update-progress` --- ### 📝 Commits (3) - [`ca26f68`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ca26f685b2971acc2d987e6d05236ce8ffbd4933) fix(agents): show per-agent progress for Update all in the Agent Organizer - [`187c1d1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/187c1d1351160a74d6c676c7604fdee1e78a422d) fix(agents): retry with the live catalog entry and clear search on Update all - [`554af18`](https://github.com/Pasta-Devs/Marinara-Engine/commit/554af1886716a31d4e3ff3e118c87fbe6f81c553) fix(agents): show the retried version on the Updates row ### 📊 Changes **4 files changed** (+177 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/agents/AgentCatalogView.tsx` (+85 -14) 📝 `packages/client/src/components/agents/AgentUpdateDialog.tsx` (+57 -28) 📝 `packages/client/src/components/agents/organizer/OrganizerLists.tsx` (+31 -5) 📝 `packages/client/src/components/agents/organizer/OrganizerParts.tsx` (+4 -1) </details> ### 📄 Description ## Linked issue No linked issue. This is a maintainer-requested UX fix (start-up dialog and Agent Organizer behave differently for the same action). ## Why this change The start-up update dialog shows each agent's state while updates run (Updating, Updated ✓, Failed + Retry). The Agent Organizer's **Update all** did the same job with much weaker feedback: - only a thin "Installing 2 of 5…" strip, without the name of the agent in progress - all row buttons disabled, with no per-row spinner (`busyId` is only set for single installs) - updated rows vanished from the list, with no ✓ - a failure was only a toast with the first error, with no row state and no Retry ## What changed - **Update all** in the Organizer now runs updates one by one with the single-install mutation, like `AgentUpdatePrompter`. It opens the Updates page, and each row shows Waiting / Updating / Updated / Failed in place of its button. - A failed row shows its error and a **Retry** button. Rows stay listed until the user leaves the Updates page. The "updates ready" hint counts only the rows that are not updated yet. - The row status and the failure box move out of `AgentUpdateDialog` into the exported `AgentUpdateStatus` / `AgentUpdateFailure`. The start-up dialog and the Organizer render the same parts. `AgentRow` gets an optional `action` slot. - The update path no longer uses the hardcoded English toast ("x of y agents installed…"). It uses the existing localized keys. No new strings. ## Validation - `pnpm check` passes locally (typecheck, lint, format, build). - `pnpm localization:check` passes (no new keys). - A local reviewer pass found 3 issues (a stale run reused after leaving mid-run, a hint count, the pending guard). All 3 are fixed in this PR. - Not done: browser test against a real instance with pending agent updates. - [ ] Manually verify in the browser: with 2+ agent updates pending, open Agent Organizer → Home → **Update all**. The Updates page opens, and each row goes Waiting → Updating → Updated ✓. - [ ] Manually verify: make one update fail (for example, stop the server mid-run or use a broken catalog entry). The row shows Failed, the error and Retry, and Retry updates only that row. - [ ] Manually verify: leave the Updates page during a run, then come back after it ends. The list shows the current pending updates, not the old run. - [ ] Manually verify that the start-up update dialog still looks and works as before (Updating / Updated / Failed / Skipped / Retry). - [ ] Check mobile width (390 px): the status sits where the Update button was and does not wrap badly. ## Docs and release impact - [x] No docs changes needed ## UI evidence No screenshots yet. See the manual checks above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:46:13 +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#8649
No description provided.