[PR #6191] [MERGED] fix(capability): keep restart-pending agents visible #7081

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6191
Author: @Gunterlie
Created: 9/14/2026
Status: ✅ Merged
Merged: 9/14/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/capability-agent-registry-uninstall


📝 Commits (3)

  • 079c0ab fix(capability): retain restart-pending agent definitions
  • bf03d30 Merge branch 'staging' into fix/capability-agent-registry-uninstall
  • 8478008 Merge branch 'staging' into fix/capability-agent-registry-uninstall

📊 Changes

2 files changed (+14 additions, -2 deletions)

View changed files

📝 packages/server/src/services/capability-packages/package-manager.service.ts (+5 -2)
📝 scripts/regressions/agent-registry-hydration.regression.ts (+9 -0)

📄 Description

Why

Uninstalling one capability package can refresh the capability-agent registry and hide another package that is still active while its update waits for restart. This was reported with Slurp Legacy and Slurp Remastered: Slurp Remastered remained active on Home and installed in Download Agents, but disappeared from Installed Agents.

What changed

  • Keep the previous agent definitions for a restart-required package until the Engine restarts.
  • Reuse the same servable-package fallback already used by active client surfaces.
  • Add regression coverage for the registry hydration contract.

Validation

  • pnpm exec prettier --check packages/server/src/services/capability-packages/package-manager.service.ts scripts/regressions/agent-registry-hydration.regression.ts
  • pnpm build:shared
  • node scripts/run-regressions.mjs --filter scripts/regressions/agent-registry-hydration.regression.ts
  • pnpm check passed lint and type checks. The client build exceeded the local 120-second command timeout.

Scope

  • Engine only. No Marinara-Agents package change is required.
  • Manual browser verification remains to be performed.

Summary by CodeRabbit

  • Bug Fixes

    • Agent definitions now remain available from the previously active package version while an update is waiting for an application restart.
    • Capability agents continue to appear consistently with the active client module and package assets during restart-required updates.
  • Tests

    • Added regression coverage to verify agent registry behavior during pending restarts.

🔄 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/6191 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/14/2026 **Status:** ✅ Merged **Merged:** 9/14/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/capability-agent-registry-uninstall` --- ### 📝 Commits (3) - [`079c0ab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/079c0ab00afe78d842c714ddb6f02d3e9808e2ae) fix(capability): retain restart-pending agent definitions - [`bf03d30`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bf03d307e632e5b6b73c5d4c0f1e1690f22e6b57) Merge branch 'staging' into fix/capability-agent-registry-uninstall - [`8478008`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8478008578978693278baf42ef1b26560c52eb0b) Merge branch 'staging' into fix/capability-agent-registry-uninstall ### 📊 Changes **2 files changed** (+14 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+5 -2) 📝 `scripts/regressions/agent-registry-hydration.regression.ts` (+9 -0) </details> ### 📄 Description ## Why Uninstalling one capability package can refresh the capability-agent registry and hide another package that is still active while its update waits for restart. This was reported with Slurp Legacy and Slurp Remastered: Slurp Remastered remained active on Home and installed in Download Agents, but disappeared from Installed Agents. ## What changed - Keep the previous agent definitions for a `restart-required` package until the Engine restarts. - Reuse the same servable-package fallback already used by active client surfaces. - Add regression coverage for the registry hydration contract. ## Validation - `pnpm exec prettier --check packages/server/src/services/capability-packages/package-manager.service.ts scripts/regressions/agent-registry-hydration.regression.ts` - `pnpm build:shared` - `node scripts/run-regressions.mjs --filter scripts/regressions/agent-registry-hydration.regression.ts` - `pnpm check` passed lint and type checks. The client build exceeded the local 120-second command timeout. ## Scope - Engine only. No Marinara-Agents package change is required. - Manual browser verification remains to be performed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Agent definitions now remain available from the previously active package version while an update is waiting for an application restart. * Capability agents continue to appear consistently with the active client module and package assets during restart-required updates. * **Tests** * Added regression coverage to verify agent registry behavior during pending restarts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:16:22 +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#7081
No description provided.