[PR #474] [MERGED] fix(noodle): preflight NanoGPT vision support #987

Closed
opened 2026-10-20 17:33:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/474
Author: @SpicyMarinara
Created: 8/20/2026
Status: ✅ Merged
Merged: 8/20/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5332-noodle-vision-preflight


📝 Commits (4)

  • ca371ac test(noodle): cover vision capability preflight
  • d449daa fix(noodle): preflight NanoGPT vision support
  • afdc1d4 fix(noodle): guard vision preflight transport
  • 6203cfa Merge branch 'staging' into fix/5332-noodle-vision-preflight

📊 Changes

10 files changed (+429 additions, -233 deletions)

View changed files

➕ artifacts/noodle-1.2.10.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/noodle/manifest.json (+3 -3)
📝 packages/noodle/server.mjs (+203 -203)
➕ packages/noodle/src/engine/packages/server/src/services/noodle/noodle-model-capabilities.ts (+64 -0)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-generation.service.ts (+34 -8)
📝 scripts/build-feature-packages.mjs (+2 -1)
➕ tests/noodle-vision-capability.regression.ts (+105 -0)

📄 Description

Linked issue

Fixes #475

Tracks Pasta-Devs/Marinara-Engine#5332.

Why this change

  • Noodle sent timeline images to a selected NanoGPT model before learning that the model was text-only. NanoGPT rejected that first request with a 400, so the existing text-only retry worked but still produced avoidable terminal noise.
  • NanoGPT's official detailed model catalog exposes capabilities.vision, which lets Noodle choose its existing text-only prompt before generation when support is explicitly false.

What changed

  • Added a small NanoGPT-only model capability preflight before Noodle sends native timeline images.
  • Reused Noodle's existing text-only messages and runtime rejection fallback. Missing, invalid, or unavailable metadata preserves the old fallback instead of guessing.
  • Added a focused regression for vision-capable, text-only, unknown, missing, and non-NanoGPT cases.
  • Published Noodle 1.2.10 with the rebuilt server bundle, artifact, manifest hashes, and v2/v3 catalog entries. The unchanged client bundle remains byte-identical.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: none; remains >=2.4.2 <4.0.0
  • New or changed permissions/entrypoints: none
  • Network behavior: one bounded, authenticated NanoGPT /models?detailed=true request only when a refresh has native image attachments; the existing safe LLM fetch path enforces URL and response limits
  • Restart, storage, update, or uninstall impact: normal Noodle package update and existing restart requirement; no storage or uninstall changes

Validation

  • npm run check passes locally
  • node scripts/test-catalog-lanes.mjs passes locally
  • node scripts/validate-package-locales.mjs passes locally
  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Passed npx tsx tests/noodle-vision-capability.regression.ts.
  • Passed npm run check with the repository's existing warnings and no errors.
  • Passed catalog lanes, package locales, full catalog validation, and git diff --check.
  • The broad npm run test:noodle:regressions loop is blocked locally before this test by the existing @marinara-engine/shared package export/module-resolution failure. The new focused regression passes independently.
  • Manual install/update/restart/uninstall and a live NanoGPT request remain for a maintainer.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

The existing Noodle documentation already describes native image inputs and text-only fallback; this change only moves a known NanoGPT text-only decision before the first generation call.

UI evidence (if applicable)

  • Not applicable; this is server-side request routing.

Summary by CodeRabbit

  • New Features

    • Added automatic detection of whether selected Noodle models support image input.
    • Added text-only fallback behavior for models without image support.
    • Improved generation logging to reflect the content actually sent.
  • Bug Fixes

    • Prevented unsupported vision requests from failing unnecessarily by retrying with text-only prompts when eligible.
  • Chores

    • Updated the Noodle package to version 1.2.10.
    • Improved compatibility with model capability information from supported providers.

🔄 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-Agents/pull/474 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/20/2026 **Status:** ✅ Merged **Merged:** 8/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5332-noodle-vision-preflight` --- ### 📝 Commits (4) - [`ca371ac`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ca371ace0f9c69d411bdd106e699af9776b47908) test(noodle): cover vision capability preflight - [`d449daa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d449daa5c9f83c144fd3da374481f7f18f69f743) fix(noodle): preflight NanoGPT vision support - [`afdc1d4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/afdc1d4721bb0e16f1430c629d5ec81ac82f315d) fix(noodle): guard vision preflight transport - [`6203cfa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6203cfae0ca7805afd9391a099710b0d65853f25) Merge branch 'staging' into fix/5332-noodle-vision-preflight ### 📊 Changes **10 files changed** (+429 additions, -233 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.2.10.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/noodle/manifest.json` (+3 -3) 📝 `packages/noodle/server.mjs` (+203 -203) ➕ `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-model-capabilities.ts` (+64 -0) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-generation.service.ts` (+34 -8) 📝 `scripts/build-feature-packages.mjs` (+2 -1) ➕ `tests/noodle-vision-capability.regression.ts` (+105 -0) </details> ### 📄 Description ## Linked issue Fixes #475 Tracks Pasta-Devs/Marinara-Engine#5332. ## Why this change - Noodle sent timeline images to a selected NanoGPT model before learning that the model was text-only. NanoGPT rejected that first request with a 400, so the existing text-only retry worked but still produced avoidable terminal noise. - NanoGPT's official detailed model catalog exposes `capabilities.vision`, which lets Noodle choose its existing text-only prompt before generation when support is explicitly false. ## What changed - Added a small NanoGPT-only model capability preflight before Noodle sends native timeline images. - Reused Noodle's existing text-only messages and runtime rejection fallback. Missing, invalid, or unavailable metadata preserves the old fallback instead of guessing. - Added a focused regression for vision-capable, text-only, unknown, missing, and non-NanoGPT cases. - Published Noodle 1.2.10 with the rebuilt server bundle, artifact, manifest hashes, and v2/v3 catalog entries. The unchanged client bundle remains byte-identical. ## Package and security impact - Affected package IDs: `noodle` - Engine compatibility impact: none; remains `>=2.4.2 <4.0.0` - New or changed permissions/entrypoints: none - Network behavior: one bounded, authenticated NanoGPT `/models?detailed=true` request only when a refresh has native image attachments; the existing safe LLM fetch path enforces URL and response limits - Restart, storage, update, or uninstall impact: normal Noodle package update and existing restart requirement; no storage or uninstall changes ## Validation - [ ] `npm run check` passes locally - [ ] `node scripts/test-catalog-lanes.mjs` passes locally - [ ] `node scripts/validate-package-locales.mjs` passes locally - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Passed `npx tsx tests/noodle-vision-capability.regression.ts`. - Passed `npm run check` with the repository's existing warnings and no errors. - Passed catalog lanes, package locales, full catalog validation, and `git diff --check`. - The broad `npm run test:noodle:regressions` loop is blocked locally before this test by the existing `@marinara-engine/shared` package export/module-resolution failure. The new focused regression passes independently. - Manual install/update/restart/uninstall and a live NanoGPT request remain for a maintainer. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The existing Noodle documentation already describes native image inputs and text-only fallback; this change only moves a known NanoGPT text-only decision before the first generation call. ## UI evidence (if applicable) - Not applicable; this is server-side request routing. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added automatic detection of whether selected Noodle models support image input. * Added text-only fallback behavior for models without image support. * Improved generation logging to reflect the content actually sent. * **Bug Fixes** * Prevented unsupported vision requests from failing unnecessarily by retrying with text-only prompts when eligible. * **Chores** * Updated the Noodle package to version 1.2.10. * Improved compatibility with model capability information from supported providers. <!-- 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-20 17:33:00 +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-Agents#987
No description provided.