[PR #3775] [MERGED] fix: sweep open Engine issues #6095

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3775
Author: @SpicyMarinara
Created: 7/18/2026
Status: ✅ Merged
Merged: 7/18/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/issue-sweep-2026-07-18


📝 Commits (4)

  • b5be698 chore: start issue sweep
  • c9d44a8 fix: resolve open Engine issue sweep
  • 32323a1 fix: address CodeRabbit feedback
  • 30298d9 fix: validate RunPod timeout seconds

📊 Changes

20 files changed (+329 additions, -151 deletions)

View changed files

📝 CLAUDE.md (+1 -2)
📝 docs/development/architecture-map.md (+2 -2)
📝 packages/client/src/components/game/GameSurface.tsx (+5 -0)
📝 packages/client/src/hooks/use-custom-tools.ts (+2 -0)
📝 packages/client/src/hooks/use-scene-analysis.ts (+3 -35)
📝 packages/server/src/routes/game.routes.ts (+5 -41)
📝 packages/server/src/routes/sidecar.routes.ts (+9 -46)
📝 packages/server/src/services/capability-packages/capability-module-runtime.service.ts (+4 -1)
📝 packages/server/src/services/image/image-generation.ts (+1 -2)
📝 packages/server/src/services/image/runpod-comfyui.service.ts (+11 -5)
📝 packages/server/src/services/sidecar/scene-analyzer.ts (+65 -6)
📝 packages/server/src/services/storage/custom-tools.storage.ts (+24 -3)
📝 packages/shared/src/constants/image-generation-defaults.ts (+4 -0)
📝 packages/shared/src/constants/model-lists.ts (+4 -0)
📝 packages/shared/src/index.ts (+1 -0)
➕ packages/shared/src/schemas/scene-analysis.schema.ts (+56 -0)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+4 -3)
📝 scripts/regressions/open-issues.regression.ts (+114 -2)
📝 scripts/regressions/provider-compat.regression.ts (+11 -0)
📝 start.bat (+3 -3)

📄 Description

Why

Seven open reports exposed small but user-visible gaps across startup, ComfyUI compatibility, custom-tool cleanup, downloaded capability paths, contributor docs, scene-analysis budgeting, and custom endpoint generation controls. This sweep fixes each issue at its owning seam while reusing shared contracts and existing storage/runtime paths.

Summary

  • invoke workspace clean scripts explicitly from the Windows launcher
  • replace duplicated 1x1 ComfyUI fallbacks with one shared 16x16 placeholder
  • transactionally remove deleted custom-tool names from agent settings and refresh affected client caches
  • expose the resolved host data directory before downloaded capability modules evaluate
  • correct stale contributor documentation about database and regression validation
  • share the scene-analysis request schema and compact only sidecar narration to its named 16k budget while preserving recent beat indices
  • honor explicit sampling switches for unlisted models on custom OAI-compatible endpoints
  • add focused regression coverage for every repaired path

Validation

  • pnpm check
  • pnpm regression:issues
  • pnpm regression:providers

Manual verification

  • Manually verify a source update on Windows runs all three workspace clean scripts without the pnpm recursive-option error.
  • Manually verify a ComfyUI workflow that requires an uploaded reference accepts the fallback placeholder locally and through RunPod.
  • Manually verify deleting an enabled custom tool removes it from exported agent configuration in the browser.
  • Manually verify an installed Local Whisper capability resolves a host-downloaded model on Windows.
  • Manually verify a 16,001-50,000 character game narration reaches local sidecar analysis and uses recent compacted beats.
  • Manually verify enabled sampling controls are sent to an unlisted model on a custom OAI-compatible endpoint.

Closes #3763
Closes #3769
Closes #3770
Closes #3771
Closes #3772
Closes #3773
Closes #3774

Summary by CodeRabbit

  • New Features
    • Improved scene analysis using narration-length budgeting with clearer truncation/omission handling, plus a new scene context turn number.
    • Expanded shared scene-analysis schemas/types for consistent client/server validation and request handling.
  • Bug Fixes
    • Deleting a custom tool now also removes it from any saved agent enabled-tools settings.
    • More reliable image-generation fallback via a shared ComfyUI placeholder reference, plus safer RunPod/ComfyUI timeout parsing.
    • Startup/data runtime setup now resolves DATA_DIR and package clean steps more consistently.
  • Documentation
    • Updated development guidance to better describe tracked regression and browser smoke validation coverage and workflow steps.

🔄 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/3775 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/18/2026 **Status:** ✅ Merged **Merged:** 7/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/issue-sweep-2026-07-18` --- ### 📝 Commits (4) - [`b5be698`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b5be69835920d6d23c57aad9dbd780a658589a52) chore: start issue sweep - [`c9d44a8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c9d44a8dcc0885491e284be1f970c6ff331437f3) fix: resolve open Engine issue sweep - [`32323a1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/32323a1cd034ee013ea4723e03c311efc604d4de) fix: address CodeRabbit feedback - [`30298d9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/30298d98c2110b40f85897a27106243f36e35ff1) fix: validate RunPod timeout seconds ### 📊 Changes **20 files changed** (+329 additions, -151 deletions) <details> <summary>View changed files</summary> 📝 `CLAUDE.md` (+1 -2) 📝 `docs/development/architecture-map.md` (+2 -2) 📝 `packages/client/src/components/game/GameSurface.tsx` (+5 -0) 📝 `packages/client/src/hooks/use-custom-tools.ts` (+2 -0) 📝 `packages/client/src/hooks/use-scene-analysis.ts` (+3 -35) 📝 `packages/server/src/routes/game.routes.ts` (+5 -41) 📝 `packages/server/src/routes/sidecar.routes.ts` (+9 -46) 📝 `packages/server/src/services/capability-packages/capability-module-runtime.service.ts` (+4 -1) 📝 `packages/server/src/services/image/image-generation.ts` (+1 -2) 📝 `packages/server/src/services/image/runpod-comfyui.service.ts` (+11 -5) 📝 `packages/server/src/services/sidecar/scene-analyzer.ts` (+65 -6) 📝 `packages/server/src/services/storage/custom-tools.storage.ts` (+24 -3) 📝 `packages/shared/src/constants/image-generation-defaults.ts` (+4 -0) 📝 `packages/shared/src/constants/model-lists.ts` (+4 -0) 📝 `packages/shared/src/index.ts` (+1 -0) ➕ `packages/shared/src/schemas/scene-analysis.schema.ts` (+56 -0) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+4 -3) 📝 `scripts/regressions/open-issues.regression.ts` (+114 -2) 📝 `scripts/regressions/provider-compat.regression.ts` (+11 -0) 📝 `start.bat` (+3 -3) </details> ### 📄 Description ## Why Seven open reports exposed small but user-visible gaps across startup, ComfyUI compatibility, custom-tool cleanup, downloaded capability paths, contributor docs, scene-analysis budgeting, and custom endpoint generation controls. This sweep fixes each issue at its owning seam while reusing shared contracts and existing storage/runtime paths. ## Summary - invoke workspace clean scripts explicitly from the Windows launcher - replace duplicated 1x1 ComfyUI fallbacks with one shared 16x16 placeholder - transactionally remove deleted custom-tool names from agent settings and refresh affected client caches - expose the resolved host data directory before downloaded capability modules evaluate - correct stale contributor documentation about database and regression validation - share the scene-analysis request schema and compact only sidecar narration to its named 16k budget while preserving recent beat indices - honor explicit sampling switches for unlisted models on custom OAI-compatible endpoints - add focused regression coverage for every repaired path ## Validation - pnpm check - pnpm regression:issues - pnpm regression:providers ## Manual verification - [ ] Manually verify a source update on Windows runs all three workspace clean scripts without the pnpm recursive-option error. - [ ] Manually verify a ComfyUI workflow that requires an uploaded reference accepts the fallback placeholder locally and through RunPod. - [ ] Manually verify deleting an enabled custom tool removes it from exported agent configuration in the browser. - [ ] Manually verify an installed Local Whisper capability resolves a host-downloaded model on Windows. - [ ] Manually verify a 16,001-50,000 character game narration reaches local sidecar analysis and uses recent compacted beats. - [ ] Manually verify enabled sampling controls are sent to an unlisted model on a custom OAI-compatible endpoint. Closes #3763 Closes #3769 Closes #3770 Closes #3771 Closes #3772 Closes #3773 Closes #3774 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Improved scene analysis using narration-length budgeting with clearer truncation/omission handling, plus a new scene context turn number. * Expanded shared scene-analysis schemas/types for consistent client/server validation and request handling. * **Bug Fixes** * Deleting a custom tool now also removes it from any saved agent enabled-tools settings. * More reliable image-generation fallback via a shared ComfyUI placeholder reference, plus safer RunPod/ComfyUI timeout parsing. * Startup/data runtime setup now resolves DATA_DIR and package clean steps more consistently. * **Documentation** * Updated development guidance to better describe tracked regression and browser smoke validation coverage and workflow steps. <!-- 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:07:01 +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#6095
No description provided.