mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #795] [MERGED] fix(memory-nag): send the saved admin secret on plain-HTTP remote clients #1141
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/795
Author: @Romuromylus
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/11/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/794-memory-nag-admin-secret-http📝 Commits (1)
e05d4c2fix(memory-nag): send the saved admin secret on plain-HTTP remote clients📊 Changes
12 files changed (+58 additions, -30 deletions)
View changed files
➕
artifacts/memory-nag-1.1.1.zip(+0 -0)📝
catalog/catalog.json(+6 -6)📝
catalog/notes.json(+6 -0)📝
catalog/v2/catalog.json(+6 -6)📝
catalog/v2/notes.json(+6 -0)📝
catalog/v3/catalog.json(+6 -6)📝
catalog/v3/notes.json(+6 -0)📝
packages/memory-nag/CHANGELOG.md(+4 -0)📝
packages/memory-nag/client.js(+7 -7)📝
packages/memory-nag/manifest.json(+3 -3)📝
packages/memory-nag/src/engine/packages/client/src/features/memory-nag/api.ts(+7 -1)📝
scripts/build-feature-packages.mjs(+1 -1)📄 Description
Pull request
Linked issue
Closes #794 (mirror of Pasta-Devs/Marinara-Engine#6048)
Why this change
X-Admin-Secret. The package client only attached that header when the page was served over HTTPS, so a remote browser on plain HTTP (a LAN address, or a Termux server reached by IP) failed Create Memories with "Invalid or missing X-Admin-Secret header" even though the secret was saved in Settings, Advanced, Admin Access.api-client.tsand the Long-Term Memory package already send the header regardless of protocol from the same browser, so the HTTPS-only guard did not protect the secret; it only disabled the package on exactly the setups that need the header.What changed
packages/memory-nag/src/engine/packages/client/src/features/memory-nag/api.ts:adminHeaders()drops theprotocol !== "https:"early return and uses the sametypeof windowguard as the Engine and Long-Term Memory clients.memory-nagbumped 1.1.0 to 1.1.1 inscripts/build-feature-packages.mjs;packages/memory-nag/CHANGELOG.mdentry.node scripts/build-feature-packages.mjs memory-nag:packages/memory-nag/client.js,manifest.json,artifacts/memory-nag-1.1.1.zip, and thecatalog/**/catalog.jsonandnotes.jsonlanes.Package and security impact
memory-nagengine.min2.4.4 unchanged)restartRequiredunchangedValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
node scripts/test-catalog-lanes.mjs,node scripts/validate-catalog.mjs(lanes v2=35, v3=35, legacy alias valid) andgit diff --check; all pass.client.jsno longer contains theprotocol!=="https:"early return.Documentation impact
UI evidence (if applicable)
Not applicable (no UI change).
Summary by CodeRabbit
Bug Fixes
Releases
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.