[PR #4619] [MERGED] Improve tracker agent runtime handling and status display #6444

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

📋 Pull Request Information

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

Base: staging ← Head: fix/tracker-agent-followups


📝 Commits (7)

  • a2294c7 Improve persona tracker status display
  • 59325f0 Avoid snapshotting package-backed agent registry
  • de08cb4 Harden local regression harnesses
  • b079d1f Use dedicated agent registry regression command
  • 2148229 Merge branch 'staging' into fix/tracker-agent-followups
  • 93abef6 Merge branch 'staging' into fix/tracker-agent-followups
  • 5b2e021 Merge branch 'staging' into fix/tracker-agent-followups

📊 Changes

15 files changed (+215 additions, -76 deletions)

View changed files

📝 package.json (+2 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+19 -31)
📝 packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx (+10 -7)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-rerun.ts (+1 -7)
📝 packages/client/src/features/tracker-panel/lib/tracker-panel.constants.ts (+0 -5)
➕ packages/client/src/lib/agent-settings-order.ts (+23 -0)
📝 packages/server/src/routes/generate.routes.ts (+2 -2)
📝 packages/server/src/services/generation/runtime-agent-sections.ts (+10 -8)
📝 scripts/regressions/agent-activation.regression.ts (+5 -2)
➕ scripts/regressions/agent-registry-hydration.regression.ts (+114 -0)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+1 -0)
📝 scripts/regressions/launcher-env.regression.mjs (+9 -1)
📝 scripts/regressions/open-issues.regression.ts (+1 -1)
📝 scripts/regressions/prompt.regression.ts (+15 -8)
📝 scripts/validate-pr-triage.mjs (+3 -3)

📄 Description

Linked issue

Closes #4620

Why this change

Package-backed agents hydrate the compatibility registry after modules are imported. Values derived once at module load can therefore permanently snapshot an empty registry, causing installed agents to be omitted from writer-review eligibility or ordered incorrectly in roleplay settings.

The existing tracker UI change also makes the persona status easier to read and gives assistive technology the current status value. Several local regression scripts had Windows line-ending and shell assumptions that made otherwise-valid checks fail on some development environments.

What changed

  • Derive package-backed agent settings order and writer-review eligibility from the hydrated registry at use time.
  • Keep tracker reruns and related agent consumers aligned with the live registry.
  • Improve the persona tracker status presentation and accessible name.
  • Add registry-hydration coverage and harden affected regression scripts for CRLF and cross-platform shell behavior.

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 commands run successfully:

  • pnpm check
  • pnpm regression:agent-registry-hydration
  • pnpm regression:prompt
  • node scripts/regressions/launcher-env.regression.mjs

Browser QA performed against real installed downloadable tracker packages:

  • Confirm Illustrator appears before Storyboard in desktop and 390 px mobile roleplay settings.
  • Confirm the Storyboard shortcut opens its actual settings card.
  • Confirm a World State tracker rerun disables while running, recovers, and reports no console errors.
  • Confirm the mobile settings drawer has no horizontal overflow.

Not exercised:

  • Package installation, update, or removal.
  • Writer-review generation.
  • Conversation-specific agent-menu overlap; the automated mode selector remained in Roleplay.

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)

No documentation, localization copy, schema, or release metadata changed.

UI evidence

No screenshots are attached yet. The browser checks above were performed in the running local app.

Summary by CodeRabbit

  • New Features
    • Agent settings and active-agent lists now follow installed agent manifests with consistent category ordering and storyboard placement.
    • Custom agents appear after built-in agents in settings menus and cards.
  • Improvements
    • Persona status editing now provides clearer accessible labels, status titles, and expanded text previews.
    • Tracker reruns now follow current chat and enabled-agent availability more reliably.
  • Bug Fixes
    • Improved writer-agent review eligibility consistency across generation workflows.
  • Tests
    • Expanded regression coverage for agent hydration, ordering, launcher compatibility, and environment configuration.

🔄 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/4619 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 8/5/2026 **Status:** ✅ Merged **Merged:** 8/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/tracker-agent-followups` --- ### 📝 Commits (7) - [`a2294c7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a2294c7a2b0cb117a0f756f38ecffe80f159af88) Improve persona tracker status display - [`59325f0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/59325f05b30fdb372a245a080d7d4f7f38187e2d) Avoid snapshotting package-backed agent registry - [`de08cb4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/de08cb48bdfcbebbe4ede5d06e7a9380e4306e49) Harden local regression harnesses - [`b079d1f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b079d1f4a8e57a17beaa7c28e7929496d2066bfd) Use dedicated agent registry regression command - [`2148229`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2148229f9d2a7c67495f988f2981474627fb7445) Merge branch 'staging' into fix/tracker-agent-followups - [`93abef6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/93abef62077384ad2baf046b1eef983fb7bcef36) Merge branch 'staging' into fix/tracker-agent-followups - [`5b2e021`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5b2e021d260e41a8778f9b5349c9b37f378bd912) Merge branch 'staging' into fix/tracker-agent-followups ### 📊 Changes **15 files changed** (+215 additions, -76 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+2 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+19 -31) 📝 `packages/client/src/features/tracker-panel/components/sections/PersonaInventoryPanel.tsx` (+10 -7) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-rerun.ts` (+1 -7) 📝 `packages/client/src/features/tracker-panel/lib/tracker-panel.constants.ts` (+0 -5) ➕ `packages/client/src/lib/agent-settings-order.ts` (+23 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+2 -2) 📝 `packages/server/src/services/generation/runtime-agent-sections.ts` (+10 -8) 📝 `scripts/regressions/agent-activation.regression.ts` (+5 -2) ➕ `scripts/regressions/agent-registry-hydration.regression.ts` (+114 -0) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+1 -0) 📝 `scripts/regressions/launcher-env.regression.mjs` (+9 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+1 -1) 📝 `scripts/regressions/prompt.regression.ts` (+15 -8) 📝 `scripts/validate-pr-triage.mjs` (+3 -3) </details> ### 📄 Description ## Linked issue Closes #4620 ## Why this change Package-backed agents hydrate the compatibility registry after modules are imported. Values derived once at module load can therefore permanently snapshot an empty registry, causing installed agents to be omitted from writer-review eligibility or ordered incorrectly in roleplay settings. The existing tracker UI change also makes the persona status easier to read and gives assistive technology the current status value. Several local regression scripts had Windows line-ending and shell assumptions that made otherwise-valid checks fail on some development environments. ## What changed - Derive package-backed agent settings order and writer-review eligibility from the hydrated registry at use time. - Keep tracker reruns and related agent consumers aligned with the live registry. - Improve the persona tracker status presentation and accessible name. - Add registry-hydration coverage and harden affected regression scripts for CRLF and cross-platform shell behavior. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Automated commands run successfully: - `pnpm check` - `pnpm regression:agent-registry-hydration` - `pnpm regression:prompt` - `node scripts/regressions/launcher-env.regression.mjs` Browser QA performed against real installed downloadable tracker packages: - Confirm Illustrator appears before Storyboard in desktop and 390 px mobile roleplay settings. - Confirm the Storyboard shortcut opens its actual settings card. - Confirm a World State tracker rerun disables while running, recovers, and reports no console errors. - Confirm the mobile settings drawer has no horizontal overflow. Not exercised: - Package installation, update, or removal. - Writer-review generation. - Conversation-specific agent-menu overlap; the automated mode selector remained in Roleplay. ## Docs and release impact - [x] 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) No documentation, localization copy, schema, or release metadata changed. ## UI evidence No screenshots are attached yet. The browser checks above were performed in the running local app. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Agent settings and active-agent lists now follow installed agent manifests with consistent category ordering and storyboard placement. * Custom agents appear after built-in agents in settings menus and cards. * **Improvements** * Persona status editing now provides clearer accessible labels, status titles, and expanded text previews. * Tracker reruns now follow current chat and enabled-agent availability more reliably. * **Bug Fixes** * Improved writer-agent review eligibility consistency across generation workflows. * **Tests** * Expanded regression coverage for agent hydration, ordering, launcher compatibility, and environment configuration. <!-- 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:10:29 +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#6444
No description provided.