[PR #4977] [MERGED] fix: keep Noodle visible while update awaits restart #6564

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4977
Author: @SpicyMarinara
Created: 8/13/2026
Status: ✅ Merged
Merged: 8/13/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/noodle-update-refresh


📝 Commits (1)

  • 482c2ad fix: keep Noodle visible while update awaits restart

📊 Changes

4 files changed (+70 additions, -6 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/hooks/use-capability-packages.ts (+15 -2)
📝 packages/server/src/routes/capability-packages.routes.ts (+4 -1)
📝 scripts/regressions/agent-registry-hydration.regression.ts (+50 -3)

📄 Description

Linked issue

Closes #4976

Why this change

  • Updating Noodle marks the replacement package restart-required, which made both its Agents-pane definition and Home browser tab disappear even though the already-loaded Noodle runtime remains usable until Marinara Engine restarts.

What changed

  • Keep the existing capability-agent registry in place while a restart-required replacement waits on disk.
  • Keep an already-loaded Home browser package eligible when its installed record has a previousVersion; first-time installs remain hidden until their required restart.
  • Preserve the loaded client-module state through that update window and add regression coverage for both update and first-install behavior.
  • Add an Unreleased changelog note.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Automated: pnpm check
  • Automated: pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/agent-registry-hydration.regression.ts
  • Automated: pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts
  • Automated: pnpm version:check
  • Automated: Prettier and git diff --check
  • Manual Noodle package-update click-through remains for the maintainer because this checkout has no separate disposable installed-profile fixture.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • No visual redesign; this preserves the existing Noodle destinations during the pre-restart update window.

Summary by CodeRabbit

  • New Features

    • Installed agents remain visible and usable while an updated version awaits a required engine restart.
    • Existing runtime definitions stay active during restart-required updates.
  • Bug Fixes

    • Prevented restart-required updates from prematurely hiding installed packages or refreshing active agent assignments.
    • Pending first-time installations remain hidden until ready.

🔄 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/4977 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/13/2026 **Status:** ✅ Merged **Merged:** 8/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/noodle-update-refresh` --- ### 📝 Commits (1) - [`482c2ad`](https://github.com/Pasta-Devs/Marinara-Engine/commit/482c2add785045c9e3db59338e0a3407ca695f95) fix: keep Noodle visible while update awaits restart ### 📊 Changes **4 files changed** (+70 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/hooks/use-capability-packages.ts` (+15 -2) 📝 `packages/server/src/routes/capability-packages.routes.ts` (+4 -1) 📝 `scripts/regressions/agent-registry-hydration.regression.ts` (+50 -3) </details> ### 📄 Description ## Linked issue Closes #4976 ## Why this change - Updating Noodle marks the replacement package `restart-required`, which made both its Agents-pane definition and Home browser tab disappear even though the already-loaded Noodle runtime remains usable until Marinara Engine restarts. ## What changed - Keep the existing capability-agent registry in place while a restart-required replacement waits on disk. - Keep an already-loaded Home browser package eligible when its installed record has a `previousVersion`; first-time installs remain hidden until their required restart. - Preserve the loaded client-module state through that update window and add regression coverage for both update and first-install behavior. - Add an Unreleased changelog note. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated: `pnpm check` - Automated: `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/agent-registry-hydration.regression.ts` - Automated: `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/capability-package-lifecycle.regression.ts` - Automated: `pnpm version:check` - Automated: Prettier and `git diff --check` - Manual Noodle package-update click-through remains for the maintainer because this checkout has no separate disposable installed-profile fixture. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - No visual redesign; this preserves the existing Noodle destinations during the pre-restart update window. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Installed agents remain visible and usable while an updated version awaits a required engine restart. - Existing runtime definitions stay active during restart-required updates. - **Bug Fixes** - Prevented restart-required updates from prematurely hiding installed packages or refreshing active agent assignments. - Pending first-time installations remain hidden until ready. <!-- 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:11:37 +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#6564
No description provided.