[PR #1117] [MERGED] fix(modern-life-sim): 0.2.1 — room to think for reasoning models, no picture flicker, sharp text #1299

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

📋 Pull Request Information

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

Base: staging ← Head: staging


📝 Commits (1)

  • 5d18171 fix(modern-life-sim): 0.2.1 — room to think for reasoning models, no picture flicker, sharp text

📊 Changes

12 files changed (+182 additions, -156 deletions)

View changed files

➕ artifacts/modern-life-sim-0.2.1.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 (+6 -0)
📝 packages/modern-life-sim/README.md (+2 -0)
📝 packages/modern-life-sim/client.js (+8 -8)
📝 packages/modern-life-sim/manifest.json (+5 -5)
📝 packages/modern-life-sim/server.mjs (+119 -119)

📄 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 #1114
Closes #1115
Closes #1116

Why this change

Three reports from staging testers:

  • A tester's GLM 5.2 could not create a life. Every card reading was cut off at 1,900 tokens: the model
    spent the package's output budget thinking before it wrote the answer, and the retry had the same budget.
    Every other call in the game has the same problem.
  • While pictures were being painted, every picture on screen flickered and loaded again, in Settings and on
    every other screen.
  • The phone's labels read blurry, as if the text had no sharpening.

What changed

  • packages/modern-life-sim/server.mjs: rebuilt from the package's source tree as a pre-built,
    minified esbuild bundle, as before. What changed in it:
    • Room to think. Every model call asks for its answer's own budget plus 16,000 tokens to think, as
      Gacha Forge has done since 1.8.5.
      • When the connection's context window is known, that extra room shrinks to what the window has left
        after the prompt, so the Engine never has to trim the prompt.
      • It never drops below the budget the call had in 0.2.0.
    • One retry with more room. A call cut off by the output limit (finishReason: "length") runs once
      more with twice the room, plus a note to reason briefly and write the whole answer. The package's DEBUG
      list shows it as <task>-more-room.
    • Reasoning none. The life's Reasoning setting gains none, which asks the model not to think,
      where the model allows it. low stays the default.
    • maximum now reaches the Engine as its own word, max.
    • In game, the GUIDE's settings article and WHAT'S NEW describe the change.
  • packages/modern-life-sim/client.js: rebuilt the same way. No more flicker.
    • Before: while the paint queue had work, the client checked it every 3 seconds and rebuilt the whole
      screen (in Settings, the whole picture grid on every check). A rebuilt element asks for its picture
      again, and gallery files are served with max-age=0 and no ETag, so the browser could fetch each
      picture again in full. Measured: four backgrounds of about 750 KB each, on each repaint.
    • Now: those repaints bring the screen up to date node by node (a small morph). An element whose
      picture did not change stays the same element, and only what changed moves. The result is the same
      HTML as a full repaint (checked in the browser against a deliberately stale screen).
    • Sharp text in what scrolls. The browser draws a box that scrolls on its own layer, and when that layer
      is see-through it gives up the system's sharp text smoothing (ClearType), so the text inside read soft.
      After each repaint, a scroller that paints nothing of its own is given the solid colour already behind it
      (the first solid background up its ancestors). That happens only when the colour is certain: no picture,
      nothing half see-through and nothing positioned over something else on the way. Nothing changes to the
      eye. The phone, the Guide's index and What's New take it. Ruled out first, one by one, in a mockup: the
      phone's tilt, the font, the size and the map's blur.
  • packages/modern-life-sim/manifest.json: version 0.2.1. The payload hashes and sizes are
    re-derived. builtAgainst, permissions, entrypoints and the engine range are unchanged.
  • packages/modern-life-sim/CHANGELOG.md and README.md: the 0.2.1 entry, and a line about it.
  • artifacts/modern-life-sim-0.2.1.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. Re-running the builder after the commit leaves the tree clean.

Package and security impact

  • Affected package IDs: modern-life-sim only.
  • Engine compatibility impact: none. The engine range stays >=2.4.4 <4.0.0 and Capability API 1.9.
    The package stays staging only.
  • New permissions/entrypoints: none. There are no new routes, no new storage and no new network calls.
  • Restart, storage, update, or uninstall impact: restartRequired: true, as before. Saves from 0.2.0
    open unchanged.
  • Cost: a larger cap is not a larger bill. Tokens are paid as they are written, not as they are allowed.
  • Payload:
    • server.mjs 874,134 bytes;
    • client.js 841,991 bytes;
    • the artifact, 1,726,175 bytes;
    • the diff, +182 / −156 lines.

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 artifact exists there only after
    the PR lands. The same bytes were installed by sideload instead: the artifact zip, with every file
    checked against its manifest hash.
  • 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 (6d9af421);
    • no changed file has CRLF line endings;
    • 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. The green ones:

    • 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,252 tests, all green. Seven are new: one guards that the painter's repaints never
    swap a screen whole, one that a scroller only takes a colour it is certain of, and five cover the room to
    think:

    • the room to think on every call;
    • how that room shrinks in a small window without dropping below the old budget;
    • the retry with twice the room and its note;
    • only one retry;
    • the words sent for each Reasoning level.
  • Sideloaded into Engine staging (3ec25a04e) from artifacts/modern-life-sim-0.2.1.zip:

    • all four files matched their manifest hashes;
    • the package came up active/ready at 0.2.1;
    • Reasoning offers none;
    • WHAT'S NEW shows 0.2.1 above 0.2.0;
    • the client carries the new repaint and the solid scrollers;
    • a life's sheet, its chart and the GUIDE answered;
    • the Engine logged no error.
  • With a real model (Claude Opus, Reasoning none): a card reading went out with a 17,700 cap (1,700
    for the answer plus 16,000 to think). It finished normally (stop) after 1,241 tokens, with no retry.

Documentation impact

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

The package's README.md and CHANGELOG.md describe 0.2.1, and so do the GUIDE and WHAT'S NEW in game.

UI evidence (if applicable)

Not applicable. The visible changes are the Reasoning list gaining none, pictures that no longer flicker, and sharper text in lists that scroll.

Summary by CodeRabbit

  • New Features
    • Added a “None” option for reasoning.
    • Reasoning models have more room to respond and can retry once with additional room if an answer runs out of space.
  • Improvements
    • Reduced image flicker and reloads while navigating Settings and other screens.
    • Improved text sharpness on phones, including in the Guide, What’s New, and scrolling lists.

🔄 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/1117 **Author:** [@SonaGat3](https://github.com/SonaGat3) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/27/2026 **Merged by:** [@SonaGat3](https://github.com/SonaGat3) **Base:** `staging` ← **Head:** `staging` --- ### 📝 Commits (1) - [`5d18171`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5d18171850daf99ea58464d3fb301b161b5f3da3) fix(modern-life-sim): 0.2.1 — room to think for reasoning models, no picture flicker, sharp text ### 📊 Changes **12 files changed** (+182 additions, -156 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/modern-life-sim-0.2.1.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` (+6 -0) 📝 `packages/modern-life-sim/README.md` (+2 -0) 📝 `packages/modern-life-sim/client.js` (+8 -8) 📝 `packages/modern-life-sim/manifest.json` (+5 -5) 📝 `packages/modern-life-sim/server.mjs` (+119 -119) </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 #1114 Closes #1115 Closes #1116 ## Why this change Three reports from staging testers: - A tester's GLM 5.2 could not create a life. Every card reading was cut off at 1,900 tokens: the model spent the package's output budget thinking before it wrote the answer, and the retry had the same budget. Every other call in the game has the same problem. - While pictures were being painted, every picture on screen flickered and loaded again, in Settings and on every other screen. - The phone's labels read blurry, as if the text had no sharpening. ## What changed - **`packages/modern-life-sim/server.mjs`**: rebuilt from the package's source tree as a pre-built, minified esbuild bundle, as before. What changed in it: - **Room to think.** Every model call asks for its answer's own budget plus 16,000 tokens to think, as Gacha Forge has done since 1.8.5. - When the connection's context window is known, that extra room shrinks to what the window has left after the prompt, so the Engine never has to trim the prompt. - It never drops below the budget the call had in 0.2.0. - **One retry with more room.** A call cut off by the output limit (`finishReason: "length"`) runs once more with twice the room, plus a note to reason briefly and write the whole answer. The package's DEBUG list shows it as `<task>-more-room`. - **Reasoning `none`.** The life's Reasoning setting gains `none`, which asks the model not to think, where the model allows it. `low` stays the default. - **`maximum`** now reaches the Engine as its own word, `max`. - **In game**, the GUIDE's settings article and WHAT'S NEW describe the change. - **`packages/modern-life-sim/client.js`**: rebuilt the same way. **No more flicker.** - **Before:** while the paint queue had work, the client checked it every 3 seconds and rebuilt the whole screen (in Settings, the whole picture grid on every check). A rebuilt element asks for its picture again, and gallery files are served with `max-age=0` and no ETag, so the browser could fetch each picture again in full. Measured: four backgrounds of about 750 KB each, on each repaint. - **Now:** those repaints bring the screen up to date node by node (a small `morph`). An element whose picture did not change stays the same element, and only what changed moves. The result is the same HTML as a full repaint (checked in the browser against a deliberately stale screen). - **Sharp text in what scrolls.** The browser draws a box that scrolls on its own layer, and when that layer is see-through it gives up the system's sharp text smoothing (ClearType), so the text inside read soft. After each repaint, a scroller that paints nothing of its own is given the solid colour already behind it (the first solid background up its ancestors). That happens only when the colour is certain: no picture, nothing half see-through and nothing positioned over something else on the way. Nothing changes to the eye. The phone, the Guide's index and What's New take it. Ruled out first, one by one, in a mockup: the phone's tilt, the font, the size and the map's blur. - **`packages/modern-life-sim/manifest.json`**: `version` 0.2.1. The payload hashes and sizes are re-derived. `builtAgainst`, permissions, entrypoints and the `engine` range are unchanged. - **`packages/modern-life-sim/CHANGELOG.md`** and **`README.md`**: the 0.2.1 entry, and a line about it. - **`artifacts/modern-life-sim-0.2.1.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. Re-running the builder after the commit leaves the tree clean. ## Package and security impact - **Affected package IDs:** `modern-life-sim` only. - **Engine compatibility impact:** none. The `engine` range stays `>=2.4.4 <4.0.0` and Capability API 1.9. The package stays staging only. - **New permissions/entrypoints:** none. There are no new routes, no new storage and no new network calls. - **Restart, storage, update, or uninstall impact:** `restartRequired: true`, as before. Saves from 0.2.0 open unchanged. - **Cost:** a larger cap is not a larger bill. Tokens are paid as they are written, not as they are allowed. - **Payload:** - `server.mjs` 874,134 bytes; - `client.js` 841,991 bytes; - the artifact, 1,726,175 bytes; - the diff, +182 / −156 lines. ## 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 artifact exists there only after > the PR lands. The same bytes were installed by sideload instead: the artifact zip, with every file > checked against its manifest hash. > - 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` (`6d9af421`); - no changed file has CRLF line endings; - `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. The green ones: - `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,252 tests, all green. Seven are new: one guards that the painter's repaints never swap a screen whole, one that a scroller only takes a colour it is certain of, and five cover the room to think: - the room to think on every call; - how that room shrinks in a small window without dropping below the old budget; - the retry with twice the room and its note; - only one retry; - the words sent for each Reasoning level. - **Sideloaded into Engine `staging` (`3ec25a04e`)** from `artifacts/modern-life-sim-0.2.1.zip`: - all four files matched their manifest hashes; - the package came up `active`/`ready` at 0.2.1; - Reasoning offers `none`; - WHAT'S NEW shows 0.2.1 above 0.2.0; - the client carries the new repaint and the solid scrollers; - a life's sheet, its chart and the GUIDE answered; - the Engine logged no error. - **With a real model (Claude Opus, Reasoning `none`):** a card reading went out with a 17,700 cap (1,700 for the answer plus 16,000 to think). It finished normally (`stop`) after 1,241 tokens, with no retry. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The package's `README.md` and `CHANGELOG.md` describe 0.2.1, and so do the GUIDE and WHAT'S NEW in game. ## UI evidence (if applicable) Not applicable. The visible changes are the Reasoning list gaining `none`, pictures that no longer flicker, and sharper text in lists that scroll. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a “None” option for reasoning. * Reasoning models have more room to respond and can retry once with additional room if an answer runs out of space. * **Improvements** * Reduced image flicker and reloads while navigating Settings and other screens. * Improved text sharpness on phones, including in the Guide, What’s New, and scrolling lists. <!-- 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:07:51 +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#1299
No description provided.