[PR #455] [MERGED] fix: accept formatted empty timeline arrays #978

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

📋 Pull Request Information

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

Base: staging ← Head: noodle-array-vs-object


📝 Commits (10+)

  • 5e27a04 fix: accept local profile arrays in Noodle and Slurp
  • b41975a fix: preserve malformed profile wrappers
  • 3f37496 test: cover wrapped profile arrays
  • 317ce3c test: cover Slurp profile parsing
  • a723020 test: cover direct Slurp profile arrays
  • d257a7f fix: retry empty profile generation
  • 5f3b9d4 Merge remote-tracking branch 'origin/staging' into noodle-array-vs-object
  • b6bc6e6 fix: accept formatted empty timeline arrays
  • 9a2e37e Merge remote-tracking branch 'origin/staging' into noodle-array-vs-object
  • 26b8be6 build: refresh merged catalog entries

📊 Changes

11 files changed (+294 additions, -200 deletions)

View changed files

📝 artifacts/beholder-1.2.2.zip (+0 -0)
➕ artifacts/noodle-1.2.8.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/noodle/manifest.json (+3 -3)
📝 packages/noodle/server.mjs (+170 -170)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-generated-refresh.ts (+4 -0)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-generation.service.ts (+3 -2)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/noodle-generated-refresh.regression.ts (+89 -0)

📄 Description

Linked issue

Fixes #449

Why this change

Local KoboldCPP can return an empty timeline as a formatted JSON array:

[
]

Noodle parsed this response but did not recognize it as an allowed empty response because it only checked for the exact text []. The correction attempt then failed and surfaced an error.

What changed

  • Recognize whitespace-formatted empty JSON arrays.
  • Allow the existing timeline retry path to accept them.
  • Add regression coverage for [], [\n], and non-empty arrays.
  • Release Noodle 1.2.8 with rebuilt bundle, artifact, manifest, hashes, and catalog entries.

Validation

  • npm run check
  • node scripts/test-catalog-lanes.mjs
  • node scripts/validate-package-locales.mjs
  • node scripts/validate-catalog.mjs
  • git diff --check
  • Install/update/restart/uninstall manual checks

Install, update, restart, offline, and uninstall were not manually tested.

Summary by CodeRabbit

  • New Features

    • Updated the Noodle package to version 1.2.8.
    • Refreshed package artifact metadata, including download details and integrity checks.
  • Bug Fixes

    • Improved handling of empty or whitespace-only generated refresh responses.
    • Improved profile parsing for supported payloads and invalid or missing profile data.
  • Tests

    • Added regression coverage for empty responses, null values, valid profiles, and rejected invalid records.

🔄 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/455 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/20/2026 **Status:** ✅ Merged **Merged:** 8/20/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `noodle-array-vs-object` --- ### 📝 Commits (10+) - [`5e27a04`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5e27a0449f5a67427e6910037ab21f3a2223bad8) fix: accept local profile arrays in Noodle and Slurp - [`b41975a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b41975abc9f1d030ed4aa77f1ece21e5580b14c7) fix: preserve malformed profile wrappers - [`3f37496`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3f3749679187eed61de36451cfa63daa78cfc0c5) test: cover wrapped profile arrays - [`317ce3c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/317ce3c631194a0137bf995abac78d371e79f392) test: cover Slurp profile parsing - [`a723020`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a723020c81a1e1cf72283951bca15c753e2b53c1) test: cover direct Slurp profile arrays - [`d257a7f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d257a7fbabc4e1e6c83f293d2ecb74499c55b38a) fix: retry empty profile generation - [`5f3b9d4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5f3b9d41b4b4a13f7f688343a38c0272b53eda61) Merge remote-tracking branch 'origin/staging' into noodle-array-vs-object - [`b6bc6e6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b6bc6e6441d4a3100febbb744e90a0de5a1c3777) fix: accept formatted empty timeline arrays - [`9a2e37e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9a2e37e0e86cdd480d53d92023dc0e8f9e353895) Merge remote-tracking branch 'origin/staging' into noodle-array-vs-object - [`26b8be6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/26b8be66457a3eafc89f8d3c51f62449a91cdb43) build: refresh merged catalog entries ### 📊 Changes **11 files changed** (+294 additions, -200 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/beholder-1.2.2.zip` (+0 -0) ➕ `artifacts/noodle-1.2.8.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/noodle/manifest.json` (+3 -3) 📝 `packages/noodle/server.mjs` (+170 -170) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-generated-refresh.ts` (+4 -0) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-generation.service.ts` (+3 -2) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/noodle-generated-refresh.regression.ts` (+89 -0) </details> ### 📄 Description ## Linked issue Fixes #449 ## Why this change Local KoboldCPP can return an empty timeline as a formatted JSON array: ```json [ ] ``` Noodle parsed this response but did not recognize it as an allowed empty response because it only checked for the exact text `[]`. The correction attempt then failed and surfaced an error. ## What changed - Recognize whitespace-formatted empty JSON arrays. - Allow the existing timeline retry path to accept them. - Add regression coverage for `[]`, `[\n]`, and non-empty arrays. - Release Noodle 1.2.8 with rebuilt bundle, artifact, manifest, hashes, and catalog entries. ## Validation - [ ] `npm run check` - [ ] `node scripts/test-catalog-lanes.mjs` - [ ] `node scripts/validate-package-locales.mjs` - [ ] `node scripts/validate-catalog.mjs` - [ ] `git diff --check` - [ ] Install/update/restart/uninstall manual checks Install, update, restart, offline, and uninstall were not manually tested. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated the Noodle package to version 1.2.8. - Refreshed package artifact metadata, including download details and integrity checks. - **Bug Fixes** - Improved handling of empty or whitespace-only generated refresh responses. - Improved profile parsing for supported payloads and invalid or missing profile data. - **Tests** - Added regression coverage for empty responses, null values, valid profiles, and rejected invalid records. <!-- 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:32:55 +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#978
No description provided.