[PR #1203] [MERGED] fix(relationship-tracker): 0.6.2 remote access and review fixes #1343

Closed
opened 2026-10-21 05:09:13 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1203
Author: @NoblezDomain
Created: 10/2/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/relationship-tracker-0.6.2


📝 Commits (3)

  • f098c2d fix(relationship-tracker): 0.6.2 remote access and review fixes
  • 56ab29c fix(relationship-tracker): reject History persona writes when the persona is removed mid-run
  • 2921eb6 Merge branch 'staging' into fix/relationship-tracker-0.6.2

📊 Changes

16 files changed (+289 additions, -145 deletions)

View changed files

➕ artifacts/relationship-tracker-0.6.2.zip (+0 -0)
📝 catalog/preview/catalog.json (+16 -16)
📝 catalog/preview/notes.json (+6 -0)
📝 catalog/preview/v2/catalog.json (+16 -16)
📝 catalog/preview/v2/notes.json (+6 -0)
📝 catalog/preview/v3/catalog.json (+16 -16)
📝 catalog/preview/v3/notes.json (+6 -0)
📝 packages/relationship-tracker/CHANGELOG.md (+10 -0)
📝 packages/relationship-tracker/README.md (+3 -1)
📝 packages/relationship-tracker/client.js (+131 -69)
📝 packages/relationship-tracker/history.mjs (+31 -8)
📝 packages/relationship-tracker/manifest.json (+13 -13)
📝 packages/relationship-tracker/persona-state.mjs (+10 -1)
📝 packages/relationship-tracker/persona-tracking.mjs (+17 -2)
📝 packages/relationship-tracker/server.mjs (+3 -1)
📝 packages/relationship-tracker/tracking.mjs (+5 -2)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1202

Why this change

  • A user reported that the Relationship Tracker panel never loads on a phone: "Invalid or missing X-Admin-Secret header". From another device every package route is privileged, and the package's client never sent the Admin Secret, so even users who saved it could not use the panel. This is the same class of problem as #1136; the new message reuses the exact wording Noodle and Slurp adopted there.
  • A full review of 0.6.0 also found smaller bugs that make the tracker fail or lose data in ordinary use (details below). Fixing them now keeps the package low-maintenance before it graduates with the next Engine main release (#1091).

What changed

  • relationship-tracker 0.6.1 → 0.6.2 (patch; CHANGELOG entry marked [highlight] because the panel was unusable from other devices). Builds on the maintainers' 0.6.1 plain-words description (bbb72e7a), which is kept unchanged.
  • Remote access: the client sends the Admin Secret saved on the device (X-Admin-Secret, same as Marinara's own UI and Memory Nag) and the x-marinara-csrf marker explicitly. A 403 now explains where ADMIN_SECRET goes instead of showing the raw header error.
  • Update from History: falls back to the default agent connection, then the chat's connection, like automatic runs, instead of refusing to run.
  • Automatic runs: an omitted empty u or p list, or a single malformed persona entry, no longer fails the whole run; valid changes are kept.
  • A persona switch or card removal while the tracker runs skips the stale write instead of reporting a failed run.
  • History's "mixed card and persona changes" check counts real changes only, so echoed unchanged pairs no longer reject a valid result.
  • History's model timeout is enforced even if the model request ignores the abort signal (it could previously block the chat until restart).
  • Route failures are logged with the error object (they were silently dropped by the logger).
  • Panel: tapping a line label or finishing an automatic update no longer wipes unsaved editor text or collapses open sections; the persona node no longer covers a lone character or sits under relationship lines, and its arrowheads are visible; actions are disabled while another save is running; a failed settings save shows an inline error instead of replacing the whole panel; the lock checkbox stays beside its label at Compact width; status colours are readable in the light theme.
  • Package README: how to use the panel from another device, and History's connection fallback.
  • Generated:artifacts/relationship-tracker-0.6.2.zip (198,763 bytes, SHA-256 40dbf026b4f88fa72a2def0ffa18742c113fb668902c310199b8f83bc4e90bf8), catalog/preview/** (v2 + v3 overlay and release notes). Published lanes are unchanged; the package stays staging-only.

Package and security impact

  • Affected package IDs: relationship-tracker
  • Engine compatibility impact: none. Engine 2.4.4 inclusive to <4.0.0 and Capability API 1.14 are unchanged. No Engine changes are required.
  • New or changed permissions/entrypoints: no new permissions or entrypoints. Security-relevant client change: the client now reads the Admin Secret from the same browser storage key Marinara's own UI uses (marinara_admin_secret) and sends it only to this package's own same-origin routes and /api/characters/:id, exactly as the Engine client and Memory Nag do. Nothing is sent anywhere else.
  • Restart, storage, update, or uninstall impact: none beyond a normal package update. Storage formats (card state v1, persona state v1) and the public read API are unchanged.

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

  • Automated checks run on my machine with Claude Code: npm run check (0 errors; the 4 existing warnings are in other packages), node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, node scripts/tests/catalog-release-notes.regression.mjs, and git diff --check all pass. A second run of node scripts/build-relationship-tracker-package.mjs produces no changes.
  • Package test suite (kept in the package's source tree): 165/165 deterministic regressions pass, including new regressions for every fix above. The new regressions were confirmed to fail against the 0.6.0 code.
  • Author manual test: Installed the update locally, opened the Tracker Panel on my phone with the Admin Secret saved, and it loaded (thank god). Also did a quick test of editing and locking a relationship, ran Update from History, and sent one message to check automated updates.

Documentation impact

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

UI evidence (if applicable)

N/A

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Update from History now falls back to the default agent or chat connection when no tracker connection is selected.
    • Automatic tracking handles missing or malformed entries and persona or character changes during a run while preserving valid updates.
    • Timed-out model requests no longer leave chats marked as active.
    • Remote Tracker Panel access requires the server admin secret.
  • Updates
    • Editor state is preserved, and the relationship web has layout and styling updates.

🔄 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/1203 **Author:** [@NoblezDomain](https://github.com/NoblezDomain) **Created:** 10/2/2026 **Status:** ✅ Merged **Merged:** 10/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/relationship-tracker-0.6.2` --- ### 📝 Commits (3) - [`f098c2d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f098c2df406a385775fe2856eab98efb1433013b) fix(relationship-tracker): 0.6.2 remote access and review fixes - [`56ab29c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/56ab29c3bf6a557e27138b9317a1ed4b10f09bbb) fix(relationship-tracker): reject History persona writes when the persona is removed mid-run - [`2921eb6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2921eb64e82ac4bd712bce3733d8447f8f68b91a) Merge branch 'staging' into fix/relationship-tracker-0.6.2 ### 📊 Changes **16 files changed** (+289 additions, -145 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/relationship-tracker-0.6.2.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+16 -16) 📝 `catalog/preview/notes.json` (+6 -0) 📝 `catalog/preview/v2/catalog.json` (+16 -16) 📝 `catalog/preview/v2/notes.json` (+6 -0) 📝 `catalog/preview/v3/catalog.json` (+16 -16) 📝 `catalog/preview/v3/notes.json` (+6 -0) 📝 `packages/relationship-tracker/CHANGELOG.md` (+10 -0) 📝 `packages/relationship-tracker/README.md` (+3 -1) 📝 `packages/relationship-tracker/client.js` (+131 -69) 📝 `packages/relationship-tracker/history.mjs` (+31 -8) 📝 `packages/relationship-tracker/manifest.json` (+13 -13) 📝 `packages/relationship-tracker/persona-state.mjs` (+10 -1) 📝 `packages/relationship-tracker/persona-tracking.mjs` (+17 -2) 📝 `packages/relationship-tracker/server.mjs` (+3 -1) 📝 `packages/relationship-tracker/tracking.mjs` (+5 -2) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1202 ## Why this change - A user reported that the Relationship Tracker panel never loads on a phone: "Invalid or missing X-Admin-Secret header". From another device every package route is privileged, and the package's client never sent the Admin Secret, so even users who saved it could not use the panel. This is the same class of problem as #1136; the new message reuses the exact wording Noodle and Slurp adopted there. - A full review of 0.6.0 also found smaller bugs that make the tracker fail or lose data in ordinary use (details below). Fixing them now keeps the package low-maintenance before it graduates with the next Engine main release (#1091). ## What changed - `relationship-tracker` 0.6.1 → 0.6.2 (patch; CHANGELOG entry marked `[highlight]` because the panel was unusable from other devices). Builds on the maintainers' 0.6.1 plain-words description (bbb72e7a), which is kept unchanged. - Remote access: the client sends the Admin Secret saved on the device (`X-Admin-Secret`, same as Marinara's own UI and Memory Nag) and the `x-marinara-csrf` marker explicitly. A 403 now explains where ADMIN_SECRET goes instead of showing the raw header error. - Update from History: falls back to the default agent connection, then the chat's connection, like automatic runs, instead of refusing to run. - Automatic runs: an omitted empty `u` or `p` list, or a single malformed persona entry, no longer fails the whole run; valid changes are kept. - A persona switch or card removal while the tracker runs skips the stale write instead of reporting a failed run. - History's "mixed card and persona changes" check counts real changes only, so echoed unchanged pairs no longer reject a valid result. - History's model timeout is enforced even if the model request ignores the abort signal (it could previously block the chat until restart). - Route failures are logged with the error object (they were silently dropped by the logger). - Panel: tapping a line label or finishing an automatic update no longer wipes unsaved editor text or collapses open sections; the persona node no longer covers a lone character or sits under relationship lines, and its arrowheads are visible; actions are disabled while another save is running; a failed settings save shows an inline error instead of replacing the whole panel; the lock checkbox stays beside its label at Compact width; status colours are readable in the light theme. - Package README: how to use the panel from another device, and History's connection fallback. - Generated:`artifacts/relationship-tracker-0.6.2.zip` (198,763 bytes, SHA-256 `40dbf026b4f88fa72a2def0ffa18742c113fb668902c310199b8f83bc4e90bf8`), `catalog/preview/**` (v2 + v3 overlay and release notes). Published lanes are unchanged; the package stays staging-only. ## Package and security impact - Affected package IDs: `relationship-tracker` - Engine compatibility impact: none. Engine 2.4.4 inclusive to <4.0.0 and Capability API 1.14 are unchanged. No Engine changes are required. - New or changed permissions/entrypoints: no new permissions or entrypoints. Security-relevant client change: the client now reads the Admin Secret from the same browser storage key Marinara's own UI uses (`marinara_admin_secret`) and sends it only to this package's own same-origin routes and `/api/characters/:id`, exactly as the Engine client and Memory Nag do. Nothing is sent anywhere else. - Restart, storage, update, or uninstall impact: none beyond a normal package update. Storage formats (card state v1, persona state v1) and the public read API are unchanged. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated checks run on my machine with Claude Code: `npm run check` (0 errors; the 4 existing warnings are in other packages), `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, `node scripts/tests/catalog-release-notes.regression.mjs`, and `git diff --check` all pass. A second run of `node scripts/build-relationship-tracker-package.mjs` produces no changes. - Package test suite (kept in the package's source tree): 165/165 deterministic regressions pass, including new regressions for every fix above. The new regressions were confirmed to fail against the 0.6.0 code. - Author manual test: Installed the update locally, opened the Tracker Panel on my phone with the Admin Secret saved, and it loaded (thank god). Also did a quick test of editing and locking a relationship, ran Update from History, and sent one message to check automated updates. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) N/A 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Update from History now falls back to the default agent or chat connection when no tracker connection is selected. * Automatic tracking handles missing or malformed entries and persona or character changes during a run while preserving valid updates. * Timed-out model requests no longer leave chats marked as active. * Remote Tracker Panel access requires the server admin secret. * **Updates** * Editor state is preserved, and the relationship web has layout and styling updates. <!-- 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-21 05:09:13 +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#1343
No description provided.