[PR #595] [MERGED] fix(memory-nag): recover vault JSON and autosave #1038

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

📋 Pull Request Information

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

Base: staging ← Head: fix/594-memory-nag-json-autosave


📝 Commits (3)

  • 34995ae fix(memory-nag): recover vault JSON and autosave
  • 1a7f5e5 build(memory-nag): publish 1.0.15
  • 2171fea fix(memory-nag): harden autosave lifecycle

📊 Changes

13 files changed (+157 additions, -74 deletions)

View changed files

➕ artifacts/memory-nag-1.0.15.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/memory-nag/README.md (+3 -1)
📝 packages/memory-nag/client.js (+7 -8)
📝 packages/memory-nag/manifest.json (+5 -5)
📝 packages/memory-nag/server.mjs (+3 -3)
📝 packages/memory-nag/src/engine/packages/client/src/features/memory-nag/MemoryNagSettings.tsx (+76 -30)
📝 packages/memory-nag/src/engine/packages/server/src/services/memory-nag/scanner.ts (+1 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/memory-nag-selection.regression.ts (+5 -0)
📝 tests/memory-nag-settings-ui.regression.mjs (+32 -2)

📄 Description

Pull request

Linked issue

Closes #594

Why this change

  • OpenAI Responses rejects json_object mode unless the actual input contains the word json. Memory Nag only put that instruction in the separate system instructions, so vault creation could fail before generation. The manual Save Settings action also made routine configuration unnecessarily easy to forget.

What changed

  • Updated package ID memory-nag so the valid user payload explicitly requests JSON while retaining plain json_object mode—no function calling and no response schema.
  • Kept Engine parseJsonish recovery for fenced JSON and common truncated closing braces.
  • Removed Save Settings and added debounced automatic persistence with stale-response protection.
  • Published Memory Nag 1.0.15, including its manifest, client/server payloads, archive, hashes, and all catalog lanes.

Package and security impact

  • Affected package IDs: memory-nag
  • Engine compatibility impact: unchanged; requires Marinara Engine 2.4.4 or newer
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: standard package update; existing per-chat vaults and settings remain compatible

Validation

  • 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

  • Focused Memory Nag selection/scan regressions and the settings UI contract passed before publication.
  • Manual Engine update and OpenAI Responses verification remain release handoff items; hosted PR checks are running now.

Documentation impact

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

UI evidence (if applicable)

  • No layout redesign. The Memory Nag Chat Settings section removes the Save Settings button and preserves the existing controls while autosaving.

Summary by CodeRabbit

  • New Features
    • Memory Nag settings now save automatically after edits, retry failed saves, and protect newer changes from stale responses.
    • Settings remain editable during saving and are disabled only while scans are running.
    • Scans now request structured JSON results for more reliable processing.
  • Bug Fixes
    • Improved handling of incomplete or fenced JSON scan responses.
    • Scan cleanup now prevents lingering state after leaving the settings screen.
  • Documentation
    • Added guidance on scan response formatting and JSON recovery behavior.
  • Chores
    • Updated Memory Nag to version 1.0.15.

🔄 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/595 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/25/2026 **Status:** ✅ Merged **Merged:** 8/25/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/594-memory-nag-json-autosave` --- ### 📝 Commits (3) - [`34995ae`](https://github.com/Pasta-Devs/Marinara-Agents/commit/34995ae0a7c60ad02b6f624e89829ebfb464e708) fix(memory-nag): recover vault JSON and autosave - [`1a7f5e5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1a7f5e56a7a481e6c55929d138de69382d13649c) build(memory-nag): publish 1.0.15 - [`2171fea`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2171fea7ac441a8e6907fbd4ae1ce1b14ff73b13) fix(memory-nag): harden autosave lifecycle ### 📊 Changes **13 files changed** (+157 additions, -74 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/memory-nag-1.0.15.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/memory-nag/README.md` (+3 -1) 📝 `packages/memory-nag/client.js` (+7 -8) 📝 `packages/memory-nag/manifest.json` (+5 -5) 📝 `packages/memory-nag/server.mjs` (+3 -3) 📝 `packages/memory-nag/src/engine/packages/client/src/features/memory-nag/MemoryNagSettings.tsx` (+76 -30) 📝 `packages/memory-nag/src/engine/packages/server/src/services/memory-nag/scanner.ts` (+1 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/memory-nag-selection.regression.ts` (+5 -0) 📝 `tests/memory-nag-settings-ui.regression.mjs` (+32 -2) </details> ### 📄 Description # Pull request ## Linked issue Closes #594 ## Why this change - OpenAI Responses rejects `json_object` mode unless the actual input contains the word `json`. Memory Nag only put that instruction in the separate system instructions, so vault creation could fail before generation. The manual Save Settings action also made routine configuration unnecessarily easy to forget. ## What changed - Updated package ID `memory-nag` so the valid user payload explicitly requests JSON while retaining plain `json_object` mode—no function calling and no response schema. - Kept Engine `parseJsonish` recovery for fenced JSON and common truncated closing braces. - Removed Save Settings and added debounced automatic persistence with stale-response protection. - Published Memory Nag 1.0.15, including its manifest, client/server payloads, archive, hashes, and all catalog lanes. ## Package and security impact - Affected package IDs: `memory-nag` - Engine compatibility impact: unchanged; requires Marinara Engine 2.4.4 or newer - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: standard package update; existing per-chat vaults and settings remain compatible ## Validation - [ ] `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 - Focused Memory Nag selection/scan regressions and the settings UI contract passed before publication. - Manual Engine update and OpenAI Responses verification remain release handoff items; hosted PR checks are running now. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - No layout redesign. The Memory Nag Chat Settings section removes the Save Settings button and preserves the existing controls while autosaving. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Memory Nag settings now save automatically after edits, retry failed saves, and protect newer changes from stale responses. * Settings remain editable during saving and are disabled only while scans are running. * Scans now request structured JSON results for more reliable processing. * **Bug Fixes** * Improved handling of incomplete or fenced JSON scan responses. * Scan cleanup now prevents lingering state after leaving the settings screen. * **Documentation** * Added guidance on scan response formatting and JSON recovery behavior. * **Chores** * Updated Memory Nag to version 1.0.15. <!-- 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:27 +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#1038
No description provided.