[PR #1912] [MERGED] fix(relationship-tracker): open the relationship web on phones #2028

Closed
opened 2026-11-07 16:38:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/1666-mobile-relationship-tracker


📝 Commits (5)

  • e68967a test(relationship-tracker): reproduce inert phone toolbar control
  • 83f7938 fix(relationship-tracker): open saved relationship web in a phone sheet
  • c2de63e test(relationship-tracker): verify installed phone and desktop host routes
  • 9c4d254 fix(relationship-tracker): roll back failed native sheet presentation
  • db0f822 Merge remote-tracking branch 'origin/staging' into fix/1666-mobile-relationship-tracker

📊 Changes

16 files changed (+1948 additions, -27 deletions)

View changed files

➕ artifacts/relationship-tracker-0.7.3.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/relationship-tracker/CHANGELOG.md (+5 -0)
📝 packages/relationship-tracker/README.md (+1 -0)
📝 packages/relationship-tracker/client.js (+75 -1)
📝 packages/relationship-tracker/manifest.json (+3 -3)
➕ packages/relationship-tracker/src/client.js.template (+1525 -0)
➕ packages/relationship-tracker/src/locales/en.json (+4 -0)
📝 scripts/build-relationship-tracker-package.mjs (+16 -5)
➕ tests/package-relationship-tracker-host.e2e.ts (+134 -0)
➕ tests/package-relationship-tracker-toolbar.e2e.ts (+149 -0)

📄 Description

Closes #1666.

Why this change

On phones, the Roleplay toolbar rendered Relationship Tracker’s passive desktop miniature without the desktop drawer that opens it. Tapping the icon therefore did nothing. The existing mobileCompact contract now selects a host-styled button that opens the existing relationship web in a native sheet.

Hosted review also found a valid failure path: a missing or throwing showModal left the launcher expanded and a nested tracker polling. The repair now leaves that state uncommitted until native presentation succeeds and always tears down the child if closing fails.

What changed

  • Phone-only native sheet, with close/Escape/backdrop dismissal, focus restoration, chat-change/disconnect teardown and stability through asynchronous updates. A saved collapsed Tracker Panel preference cannot hide the sheet body.
  • Guard native modal availability before attachment. Present an empty dialog first; only a successful presentation commits launcher state and connects the nested tracker. Failed presentation removes the dialog and permits another attempt. A missing or throwing close API still removes the child and its polling.
  • Preserve the desktop passive miniature, Engine-owned drawer and Quartermaster’s independent control. Opening the web reads saved relationships without running a model.
  • Embed two semantic labels from a canonical English UI catalog through the supported builder. No runtime locale fetch, dependency or host capability change.
  • Relationship Tracker 0.7.3 README/changelog, supported rebuilt client, manifest, catalogs and ZIP. Only client.js changes among the thirteen shipped payloads; server logic, permissions and compatibility remain unchanged.

Validation

  • Original phone-opener RED and hosted-review fault RED retained. On the old client, missing showModal left aria-expanded=true; the original five-second assertion failed without budget changes.
  • Final repair: 20/20 standalone Chromium/WebKit portrait/landscape cases pass. These cover normal controls, backdrop/Escape/focus, chat/disconnect cleanup, passive desktop rendering, missing/throwing showModal, throwing close, no further status polling over five fake seconds, and retry after restoring the API.
  • Earlier head c2de63e5e: four real Engine desktop/phone Chromium/WebKit graph cases and four empty-state cases passed with the Tracker Panel disabled. All thirteen installed payloads matched the earlier manifest in both disposable profiles. These are prior-byte integration proofs, not a claim that the hardened client was reinstalled into Engine.
  • Final supported build, generated JavaScript syntax check, npm check (0 errors, 815 existing warnings), catalog lanes, package locales, catalog validation, release-note regression and whitespace checks pass.
  • Local CodeRabbit reviewed the initial implementation and its host test with no findings. The substantive native-API repair review on 9c4d254e2 completed with no findings across all eight changed text files (the ZIP was excluded). The original quota rejections and the successful review log are retained.

Proof boundaries: browser emulation rather than physical Android/iOS; no real model/provider calls. Install/activation and host startup were exercised on the earlier candidate. Update/uninstall UI and offline physical-device behavior remain manual.

Owner: @SpicyMarinara. Root coordinates final hosted review, required gates and merge.

  • Manually verify the phone sheet on the reporter’s Android/Chrome setup.
  • Manually verify long graph/editor scrolling and keyboard focus on physical devices.
  • Manually verify update/uninstall and offline behavior.

Base refresh

Merged staging f6c9eba087 (the already-reviewed Long-Term Memory #1913 release) into db0f822766. The entire Relationship Tracker package directory, manifest and ZIP remain byte-identical to reviewed head 9c4d254e24. The PR-owned patch is identical after excluding Git blob-index and hunk-coordinate metadata.

Combined catalog lanes, package locales, archive/hash validation, release-note regressions and whitespace checks pass. Existing source, browser and local review evidence covers the unchanged package content; no payload rebuild or new CodeRabbit run was needed for this ancestry-only refresh. Current-head hosted CI and Dottore gates must still succeed before merge.


🔄 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/1912 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/1666-mobile-relationship-tracker` --- ### 📝 Commits (5) - [`e68967a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e68967a954e299fd43d13e3a88c0542fae0ec46e) test(relationship-tracker): reproduce inert phone toolbar control - [`83f7938`](https://github.com/Pasta-Devs/Marinara-Agents/commit/83f7938f967a19e7374f5674622c018c604a8435) fix(relationship-tracker): open saved relationship web in a phone sheet - [`c2de63e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c2de63e5ede63269689407de7242c11f202ffa67) test(relationship-tracker): verify installed phone and desktop host routes - [`9c4d254`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9c4d254e244b01fa70e63d2a1564fbd541b1183d) fix(relationship-tracker): roll back failed native sheet presentation - [`db0f822`](https://github.com/Pasta-Devs/Marinara-Agents/commit/db0f822766151606698fb7cfce1f7675e8f111d4) Merge remote-tracking branch 'origin/staging' into fix/1666-mobile-relationship-tracker ### 📊 Changes **16 files changed** (+1948 additions, -27 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/relationship-tracker-0.7.3.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/relationship-tracker/CHANGELOG.md` (+5 -0) 📝 `packages/relationship-tracker/README.md` (+1 -0) 📝 `packages/relationship-tracker/client.js` (+75 -1) 📝 `packages/relationship-tracker/manifest.json` (+3 -3) ➕ `packages/relationship-tracker/src/client.js.template` (+1525 -0) ➕ `packages/relationship-tracker/src/locales/en.json` (+4 -0) 📝 `scripts/build-relationship-tracker-package.mjs` (+16 -5) ➕ `tests/package-relationship-tracker-host.e2e.ts` (+134 -0) ➕ `tests/package-relationship-tracker-toolbar.e2e.ts` (+149 -0) </details> ### 📄 Description Closes #1666. ## Why this change On phones, the Roleplay toolbar rendered Relationship Tracker’s passive desktop miniature without the desktop drawer that opens it. Tapping the icon therefore did nothing. The existing mobileCompact contract now selects a host-styled button that opens the existing relationship web in a native sheet. Hosted review also found a valid failure path: a missing or throwing showModal left the launcher expanded and a nested tracker polling. The repair now leaves that state uncommitted until native presentation succeeds and always tears down the child if closing fails. ## What changed - Phone-only native sheet, with close/Escape/backdrop dismissal, focus restoration, chat-change/disconnect teardown and stability through asynchronous updates. A saved collapsed Tracker Panel preference cannot hide the sheet body. - Guard native modal availability before attachment. Present an empty dialog first; only a successful presentation commits launcher state and connects the nested tracker. Failed presentation removes the dialog and permits another attempt. A missing or throwing close API still removes the child and its polling. - Preserve the desktop passive miniature, Engine-owned drawer and Quartermaster’s independent control. Opening the web reads saved relationships without running a model. - Embed two semantic labels from a canonical English UI catalog through the supported builder. No runtime locale fetch, dependency or host capability change. - Relationship Tracker 0.7.3 README/changelog, supported rebuilt client, manifest, catalogs and ZIP. Only client.js changes among the thirteen shipped payloads; server logic, permissions and compatibility remain unchanged. ## Validation - Original phone-opener RED and hosted-review fault RED retained. On the old client, missing showModal left aria-expanded=true; the original five-second assertion failed without budget changes. - Final repair: 20/20 standalone Chromium/WebKit portrait/landscape cases pass. These cover normal controls, backdrop/Escape/focus, chat/disconnect cleanup, passive desktop rendering, missing/throwing showModal, throwing close, no further status polling over five fake seconds, and retry after restoring the API. - Earlier head c2de63e5e: four real Engine desktop/phone Chromium/WebKit graph cases and four empty-state cases passed with the Tracker Panel disabled. All thirteen installed payloads matched the earlier manifest in both disposable profiles. These are prior-byte integration proofs, not a claim that the hardened client was reinstalled into Engine. - Final supported build, generated JavaScript syntax check, npm check (0 errors, 815 existing warnings), catalog lanes, package locales, catalog validation, release-note regression and whitespace checks pass. - Local CodeRabbit reviewed the initial implementation and its host test with no findings. The substantive native-API repair review on 9c4d254e2 completed with no findings across all eight changed text files (the ZIP was excluded). The original quota rejections and the successful review log are retained. Proof boundaries: browser emulation rather than physical Android/iOS; no real model/provider calls. Install/activation and host startup were exercised on the earlier candidate. Update/uninstall UI and offline physical-device behavior remain manual. Owner: @SpicyMarinara. Root coordinates final hosted review, required gates and merge. - [ ] Manually verify the phone sheet on the reporter’s Android/Chrome setup. - [ ] Manually verify long graph/editor scrolling and keyboard focus on physical devices. - [ ] Manually verify update/uninstall and offline behavior. ## Base refresh Merged staging f6c9eba087d9496b5acfcd916df3519711c096d8 (the already-reviewed Long-Term Memory #1913 release) into db0f822766151606698fb7cfce1f7675e8f111d4. The entire Relationship Tracker package directory, manifest and ZIP remain byte-identical to reviewed head 9c4d254e244b01fa70e63d2a1564fbd541b1183d. The PR-owned patch is identical after excluding Git blob-index and hunk-coordinate metadata. Combined catalog lanes, package locales, archive/hash validation, release-note regressions and whitespace checks pass. Existing source, browser and local review evidence covers the unchanged package content; no payload rebuild or new CodeRabbit run was needed for this ancestry-only refresh. Current-head hosted CI and Dottore gates must still succeed before merge. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:52 +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#2028
No description provided.