[PR #5027] [MERGED] Address the current Engine issue sweep #6596

Closed
opened 2026-10-23 04:11:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5027
Author: @SpicyMarinara
Created: 8/14/2026
Status: ✅ Merged
Merged: 8/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/issue-sweep-5023-5026


📝 Commits (10+)

  • f63ebb5 chore: start issue sweep
  • 482d005 docs: add personal extension authoring guide
  • 0076133 Fix empty agent prompt sections
  • 2f36a49 Add numeric variable addition macro (#5024)
  • ebf55a5 docs: record issue sweep changes
  • 97a3a56 fix(extensions): remove personal JS source cap
  • 7662f87 docs: complete extension author examples
  • f830c13 docs: fix sandbox example selector
  • ecd8f80 test: cover large extension profile restore
  • 7362216 fix: address issue sweep review feedback

📊 Changes

19 files changed (+543 additions, -30 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
➕ docs/examples/personal-extensions/browser-minimal/extension.css (+3 -0)
➕ docs/examples/personal-extensions/browser-minimal/extension.js (+30 -0)
➕ docs/examples/personal-extensions/browser-minimal/manifest.json (+13 -0)
➕ docs/examples/personal-extensions/server-minimal/manifest.json (+12 -0)
➕ docs/examples/personal-extensions/server-minimal/server-extension.js (+11 -0)
📝 docs/extending/personal-extensions.md (+3 -0)
➕ docs/extending/writing-personal-extensions.md (+259 -0)
📝 docs/prompts/macros.md (+1 -0)
📝 packages/client/src/lib/chat-macros.ts (+1 -1)
📝 packages/server/src/db/file-backed-store.ts (+16 -2)
📝 packages/server/src/routes/docs.routes.ts (+1 -1)
📝 packages/server/src/services/generation/runtime-agent-sections.ts (+1 -1)
📝 packages/shared/src/schemas/personal-extension.schema.ts (+2 -7)
📝 packages/shared/src/utils/macro-engine.ts (+15 -2)
📝 scripts/regressions/extension-security.regression.ts (+48 -3)
📝 scripts/regressions/profile-import-data-security.regression.ts (+24 -6)
📝 scripts/regressions/prompt.regression.ts (+46 -6)
📝 scripts/regressions/storage-writer-lock.regression.ts (+52 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issues

Closes #5023
Closes #5024
Closes #5025
Closes #5026
Closes #5029

Follow-up: #5028 tracks the required translated-doc synchronization.

Why this change

Resolve the Engine issue sweep, including the Termux launch regression reported while the PR was in review, with focused fixes and no unrelated refactors.

What changed

  • Omit a token-bounded runtime Agent section when its Agent produces no output.
  • Add {{addnumvar::name::value}} while preserving {{addvar}} string concatenation.
  • Remove only the shared 1 MiB js/serverJs schema refinement; keep separate ZIP, CSS, storage, request, protocol, approval, and sandbox boundaries.
  • Add a practical Personal Extension authoring guide with importable Browser and Server examples, API/manifest/limit references, lifecycle guidance, and troubleshooting.
  • Let Termux reclaim a dead writer lease only for canonical storage paths inside its app-private HOME; keep live PIDs and outside/shared paths blocked.
  • Record all user-facing changes under v2.4.3.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence

  • pnpm check
  • pnpm regression:prompt
  • pnpm regression:extensions-security (including macOS Seatbelt runtime proof)
  • pnpm regression:docs
  • pnpm regression:storage-writer-lock
  • pnpm version:check
  • pnpm credits:check
  • pnpm release:notes -- 2.4.3
  • Example manifests normalize as runnable client and server packages; JavaScript syntax checks pass.
  • git diff --check

Manual verification notes

  • No new Engine UI component or visual styling behavior is introduced. Review should focus on prompt output, macro arithmetic, extension import/runtime boundaries, and the rendered documentation.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • No new UI surface; not applicable.

Summary by CodeRabbit

  • New Features

    • Added the addnumvar macro for numeric variable updates.
    • Removed the 1 MiB source-size limit for Personal Extensions.
    • Added browser and server Personal Extension examples.
  • Bug Fixes

    • Fixed editor caret placement and shared local data handling.
    • Improved empty Agent prompt sections.
    • Improved Termux storage recovery after Android restarts.
  • Documentation

    • Added comprehensive Personal Extension authoring, API, validation, and troubleshooting guidance.
    • Documented the new addnumvar macro.

🔄 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-Engine/pull/5027 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/14/2026 **Status:** ✅ Merged **Merged:** 8/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/issue-sweep-5023-5026` --- ### 📝 Commits (10+) - [`f63ebb5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f63ebb5d4eb1ed651d479a9b9bc150e915e2ddd3) chore: start issue sweep - [`482d005`](https://github.com/Pasta-Devs/Marinara-Engine/commit/482d0055623beec4b3eff2a78cefb10f9c9ff19e) docs: add personal extension authoring guide - [`0076133`](https://github.com/Pasta-Devs/Marinara-Engine/commit/007613329b1aa6524c7835bb3695a7c71587aac2) Fix empty agent prompt sections - [`2f36a49`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2f36a49038ff3648c8337da4fe3b2617f755bc68) Add numeric variable addition macro (#5024) - [`ebf55a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ebf55a507f24dc29721ecf0258fcd886eab671b0) docs: record issue sweep changes - [`97a3a56`](https://github.com/Pasta-Devs/Marinara-Engine/commit/97a3a56ffeac83d148bfb4d2716ac2c79c7fa23e) fix(extensions): remove personal JS source cap - [`7662f87`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7662f8723214b6ca5d4a29443d4a5e2be4df27f3) docs: complete extension author examples - [`f830c13`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f830c131b177644835b49fc2e895fdca0fb25f70) docs: fix sandbox example selector - [`ecd8f80`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ecd8f8021b030d9586d9953aaa3533a36831984d) test: cover large extension profile restore - [`7362216`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73622161df874060e708572e0a1454d1a7aea4fc) fix: address issue sweep review feedback ### 📊 Changes **19 files changed** (+543 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) ➕ `docs/examples/personal-extensions/browser-minimal/extension.css` (+3 -0) ➕ `docs/examples/personal-extensions/browser-minimal/extension.js` (+30 -0) ➕ `docs/examples/personal-extensions/browser-minimal/manifest.json` (+13 -0) ➕ `docs/examples/personal-extensions/server-minimal/manifest.json` (+12 -0) ➕ `docs/examples/personal-extensions/server-minimal/server-extension.js` (+11 -0) 📝 `docs/extending/personal-extensions.md` (+3 -0) ➕ `docs/extending/writing-personal-extensions.md` (+259 -0) 📝 `docs/prompts/macros.md` (+1 -0) 📝 `packages/client/src/lib/chat-macros.ts` (+1 -1) 📝 `packages/server/src/db/file-backed-store.ts` (+16 -2) 📝 `packages/server/src/routes/docs.routes.ts` (+1 -1) 📝 `packages/server/src/services/generation/runtime-agent-sections.ts` (+1 -1) 📝 `packages/shared/src/schemas/personal-extension.schema.ts` (+2 -7) 📝 `packages/shared/src/utils/macro-engine.ts` (+15 -2) 📝 `scripts/regressions/extension-security.regression.ts` (+48 -3) 📝 `scripts/regressions/profile-import-data-security.regression.ts` (+24 -6) 📝 `scripts/regressions/prompt.regression.ts` (+46 -6) 📝 `scripts/regressions/storage-writer-lock.regression.ts` (+52 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issues Closes #5023 Closes #5024 Closes #5025 Closes #5026 Closes #5029 Follow-up: #5028 tracks the required translated-doc synchronization. ## Why this change Resolve the Engine issue sweep, including the Termux launch regression reported while the PR was in review, with focused fixes and no unrelated refactors. ## What changed - Omit a token-bounded runtime Agent section when its Agent produces no output. - Add `{{addnumvar::name::value}}` while preserving `{{addvar}}` string concatenation. - Remove only the shared 1 MiB `js`/`serverJs` schema refinement; keep separate ZIP, CSS, storage, request, protocol, approval, and sandbox boundaries. - Add a practical Personal Extension authoring guide with importable Browser and Server examples, API/manifest/limit references, lifecycle guidance, and troubleshooting. - Let Termux reclaim a dead writer lease only for canonical storage paths inside its app-private HOME; keep live PIDs and outside/shared paths blocked. - Record all user-facing changes under v2.4.3. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Automated evidence - `pnpm check` - `pnpm regression:prompt` - `pnpm regression:extensions-security` (including macOS Seatbelt runtime proof) - `pnpm regression:docs` - `pnpm regression:storage-writer-lock` - `pnpm version:check` - `pnpm credits:check` - `pnpm release:notes -- 2.4.3` - Example manifests normalize as runnable `client` and `server` packages; JavaScript syntax checks pass. - `git diff --check` ### Manual verification notes - No new Engine UI component or visual styling behavior is introduced. Review should focus on prompt output, macro arithmetic, extension import/runtime boundaries, and the rendered documentation. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - No new UI surface; not applicable. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added the `addnumvar` macro for numeric variable updates. * Removed the 1 MiB source-size limit for Personal Extensions. * Added browser and server Personal Extension examples. * **Bug Fixes** * Fixed editor caret placement and shared local data handling. * Improved empty Agent prompt sections. * Improved Termux storage recovery after Android restarts. * **Documentation** * Added comprehensive Personal Extension authoring, API, validation, and troubleshooting guidance. * Documented the new `addnumvar` macro. <!-- 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-23 04:11:56 +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-Engine#6596
No description provided.