[PR #1131] [MERGED] fix(modern-life-sim): 0.2.5 — Contacts no longer freezes #1305

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1131
Author: @SonaGat3
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @SonaGat3

Base: staging ← Head: staging


📝 Commits (1)

  • 24749e9 fix(modern-life-sim): 0.2.5 — Contacts no longer freezes

📊 Changes

12 files changed (+380 additions, -349 deletions)

View changed files

➕ artifacts/modern-life-sim-0.2.5.zip (+0 -0)
📝 catalog/preview/catalog.json (+8 -8)
📝 catalog/preview/notes.json (+6 -0)
📝 catalog/preview/v2/catalog.json (+8 -8)
📝 catalog/preview/v2/notes.json (+6 -0)
📝 catalog/preview/v3/catalog.json (+8 -8)
📝 catalog/preview/v3/notes.json (+6 -0)
📝 packages/modern-life-sim/CHANGELOG.md (+4 -0)
📝 packages/modern-life-sim/README.md (+2 -0)
📝 packages/modern-life-sim/client.js (+324 -317)
📝 packages/modern-life-sim/manifest.json (+5 -5)
📝 packages/modern-life-sim/server.mjs (+3 -3)

📄 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 #1130

Why this change

Two staging testers had CONTACTS freeze on 0.2.4 (the linked issue). 0.2.5 fixes it, built on 0.2.4 with nothing else in it.

What changed

  • packages/modern-life-sim/server.mjs and client.js: rebuilt from the package's source tree as pre-built, minified esbuild bundles, as before.
    • CONTACTS reads only the life (GET /lives/:id), not its /open, which could hang.
    • Each part of a sheet is drawn on its own. One that throws is left out and logged to the console (Modern Life Sim: «work» could not be shown.); the rest of the sheet is shown. This covers every box of every tab, the bars and the birthday.
    • A screen that still cannot be drawn is replaced by «THIS SCREEN COULD NOT BE SHOWN» with a button back to the map (or to the title, if it is the map), instead of leaving the element empty and stuck.
    • The data behind it:
      • the WORK box takes a job's title and place from the town when they are missing, and shows nothing when neither can be found;
      • the gift tastes of someone's people are read with a guard;
      • gift tastes longer than a slot no longer build a list of negative length.
  • packages/modern-life-sim/manifest.json: version 0.2.5, with the payload hashes and sizes re-derived. builtAgainst, permissions, entrypoints and the engine range are unchanged.
  • packages/modern-life-sim/CHANGELOG.md and README.md: the 0.2.5 entry, and a line about it.
  • artifacts/modern-life-sim-0.2.5.zip (new).

Generated outputs

node scripts/build-modern-life-sim-package.mjs re-derived these from the committed payload bytes:

  • the manifest;
  • the artifact;
  • the preview catalogs (catalog/preview/, v2/, v3/) and their release-notes sidecars.

Nothing was edited by hand, and re-running the builder after the commit leaves the tree clean. No script changed.

Package and security impact

  • Affected package IDs: modern-life-sim only.
  • Engine compatibility impact: none. The engine range and the Capability API are unchanged. The package stays staging only.
  • New permissions/entrypoints: none. No new routes.
  • Restart, storage, update, or uninstall impact: restartRequired: true, as before. Saves from 0.2.4 open unchanged.
  • Payload:
    • server.mjs 886,878 bytes;
    • client.js 853,280 bytes;
    • the artifact, 1,750,208 bytes.

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

⚠️ Why the fourth and fifth boxes are unticked.

  • The Engine fetches artifacts only from a public https URL, and this one exists there only after the PR lands.
  • Uninstall goes through the Engine's package manager, which acts only on what it installed itself.

Manual verification notes

  • Branch hygiene:

    • branched from the current origin/staging (8bff13f2);
    • no CRLF in any changed file;
    • git diff --check "origin/staging...HEAD" is clean;
    • no script changed;
    • the build is reproducible.
  • Repo checks, run locally in the workflow's own order (pull-request-checks.yml, after a fresh npm ci). All green except one known Windows-only failure:

    • npm run check and typecheck:packages;
    • the Calls, Memory Nag, Pixelforge, Beholder and Quartermaster regressions;
    • vendored-engine and test-catalog-lanes;
    • the locale validators;
    • validate-catalog, catalog-generatedat-determinism, catalog-release-notes and ruleset-package;
    • the World Maps and Long-Term Memory UI contracts;
    • validate-pr-triage and test-owner-approval;
    • git diff --check.

    ⚠️ The exception is the first half of npm run test:security, catalog-path-safety.regression.mjs. It expects a POSIX path and gets D:\tmp\… on Windows. That file is identical to staging. The second half, long-term-memory-index-keys, passes.

  • Package's own suite: 1,278 tests, all green. The new ones cover:

    • a sheet with unexpected data in every tab (no gift tastes, a job with no title, missing tiers and lists): the sheet is drawn;
    • a box that throws: only that box is missing;
    • the fallback screen and its way back;
    • the WORK box: a title taken from the town, none when the job is unknown or not an object;
    • gift tastes longer than a slot.
  • The artifact: all five files present, and the four payload files match their manifest hashes and sizes. The bundled server.mjs loads under Node and client.js parses.

Summary by CodeRabbit

  • Bug Fixes
    • Opening Contacts no longer freezes the game or reloads the current life.
    • Character-sheet sections now load independently, so an unavailable section won’t prevent other sections from appearing.
    • If a screen cannot be displayed, an error message and a button to return to the map are shown.
  • Release
    • Modern Life Sim updated to version 0.2.5.

🔄 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/1131 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 9/29/2026 **Status:** ✅ Merged **Merged:** 9/29/2026 **Merged by:** [@SonaGat3](https://github.com/SonaGat3) **Base:** `staging` ← **Head:** `staging` --- ### 📝 Commits (1) - [`24749e9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/24749e9b79e7e151d041e19bad86f0132c2ad67a) fix(modern-life-sim): 0.2.5 — Contacts no longer freezes ### 📊 Changes **12 files changed** (+380 additions, -349 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/modern-life-sim-0.2.5.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+8 -8) 📝 `catalog/preview/notes.json` (+6 -0) 📝 `catalog/preview/v2/catalog.json` (+8 -8) 📝 `catalog/preview/v2/notes.json` (+6 -0) 📝 `catalog/preview/v3/catalog.json` (+8 -8) 📝 `catalog/preview/v3/notes.json` (+6 -0) 📝 `packages/modern-life-sim/CHANGELOG.md` (+4 -0) 📝 `packages/modern-life-sim/README.md` (+2 -0) 📝 `packages/modern-life-sim/client.js` (+324 -317) 📝 `packages/modern-life-sim/manifest.json` (+5 -5) 📝 `packages/modern-life-sim/server.mjs` (+3 -3) </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 #1130 ## Why this change Two staging testers had CONTACTS freeze on 0.2.4 (the linked issue). 0.2.5 fixes it, built on 0.2.4 with nothing else in it. ## What changed - **`packages/modern-life-sim/server.mjs`** and **`client.js`**: rebuilt from the package's source tree as pre-built, minified esbuild bundles, as before. - **CONTACTS reads only the life** (`GET /lives/:id`), not its `/open`, which could hang. - **Each part of a sheet is drawn on its own.** One that throws is left out and logged to the console (`Modern Life Sim: «work» could not be shown.`); the rest of the sheet is shown. This covers every box of every tab, the bars and the birthday. - **A screen that still cannot be drawn** is replaced by «THIS SCREEN COULD NOT BE SHOWN» with a button back to the map (or to the title, if it is the map), instead of leaving the element empty and stuck. - **The data behind it:** - the WORK box takes a job's title and place from the town when they are missing, and shows nothing when neither can be found; - the gift tastes of someone's people are read with a guard; - gift tastes longer than a slot no longer build a list of negative length. - **`packages/modern-life-sim/manifest.json`**: `version` 0.2.5, with the payload hashes and sizes re-derived. `builtAgainst`, permissions, entrypoints and the `engine` range are unchanged. - **`packages/modern-life-sim/CHANGELOG.md`** and **`README.md`**: the 0.2.5 entry, and a line about it. - **`artifacts/modern-life-sim-0.2.5.zip`** (new). ### Generated outputs `node scripts/build-modern-life-sim-package.mjs` re-derived these from the committed payload bytes: - the manifest; - the artifact; - the preview catalogs (`catalog/preview/`, `v2/`, `v3/`) and their release-notes sidecars. Nothing was edited by hand, and re-running the builder after the commit leaves the tree clean. No script changed. ## Package and security impact - **Affected package IDs:** `modern-life-sim` only. - **Engine compatibility impact:** none. The `engine` range and the Capability API are unchanged. The package stays staging only. - **New permissions/entrypoints:** none. No new routes. - **Restart, storage, update, or uninstall impact:** `restartRequired: true`, as before. Saves from 0.2.4 open unchanged. - **Payload:** - `server.mjs` 886,878 bytes; - `client.js` 853,280 bytes; - the artifact, 1,750,208 bytes. ## 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 - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` > ⚠️ **Why the fourth and fifth boxes are unticked.** > - The Engine fetches artifacts only from a public https URL, and this one exists there only after the PR lands. > - Uninstall goes through the Engine's package manager, which acts only on what it installed itself. ### Manual verification notes - **Branch hygiene:** - branched from the current `origin/staging` (`8bff13f2`); - no CRLF in any changed file; - `git diff --check "origin/staging...HEAD"` is clean; - no script changed; - the build is reproducible. - **Repo checks, run locally in the workflow's own order** (`pull-request-checks.yml`, after a fresh `npm ci`). All green except one known Windows-only failure: - `npm run check` and `typecheck:packages`; - the Calls, Memory Nag, Pixelforge, Beholder and Quartermaster regressions; - `vendored-engine` and `test-catalog-lanes`; - the locale validators; - `validate-catalog`, `catalog-generatedat-determinism`, `catalog-release-notes` and `ruleset-package`; - the World Maps and Long-Term Memory UI contracts; - `validate-pr-triage` and `test-owner-approval`; - `git diff --check`. ⚠️ The exception is the first half of `npm run test:security`, `catalog-path-safety.regression.mjs`. It expects a POSIX path and gets `D:\tmp\…` on Windows. That file is identical to `staging`. The second half, `long-term-memory-index-keys`, passes. - **Package's own suite:** 1,278 tests, all green. The new ones cover: - a sheet with unexpected data in every tab (no gift tastes, a job with no title, missing tiers and lists): the sheet is drawn; - a box that throws: only that box is missing; - the fallback screen and its way back; - the WORK box: a title taken from the town, none when the job is unknown or not an object; - gift tastes longer than a slot. - **The artifact:** all five files present, and the four payload files match their manifest hashes and sizes. The bundled `server.mjs` loads under Node and `client.js` parses. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Opening Contacts no longer freezes the game or reloads the current life. * Character-sheet sections now load independently, so an unavailable section won’t prevent other sections from appearing. * If a screen cannot be displayed, an error message and a button to return to the map are shown. * **Release** * Modern Life Sim updated to version 0.2.5. <!-- 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:08:03 +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#1305
No description provided.