mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1356] [MERGED] fix(noodle,slurp2,calls): Engine Claude (Subscription) privacy fixes in package bundles; SpicyAPI edit references in Slurp #1418
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1418
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1356
Author: @SpicyMarinara
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/1313-claude-subscription-spicyapi-refs📝 Commits (5)
8dd4a29fix(noodle,slurp2,calls): carry the Engine's Claude (Subscription) privacy fixes; SpicyAPI edit references in Slurp8eab51dfix(slurp2,calls): keep the Slurp splash file under its size cap; pin Calls 1.1.3 in its release test90f88betest: match the missing-plugin error without building a regex (CodeQL)98b4de8Merge origin/staging; move Slurp to 0.3.36e5cb3c0Merge origin/staging; Slurp 0.3.37; warn when Claude Code ignores the chat-context plugin📊 Changes
43 files changed (+2126 additions, -797 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+3 -0)📝
CONTRIBUTING.md(+1 -0)➕
artifacts/conversation-calls-1.1.3.zip(+0 -0)➕
artifacts/noodle-1.5.6.zip(+0 -0)➕
artifacts/slurp2-0.3.37.zip(+0 -0)📝
catalog/catalog.json(+65 -20)📝
catalog/notes.json(+18 -6)📝
catalog/v2/catalog.json(+65 -20)📝
catalog/v2/notes.json(+18 -6)📝
catalog/v3/catalog.json(+65 -20)📝
catalog/v3/notes.json(+18 -6)📝
eslint.config.mjs(+1 -0)📝
package.json(+3 -3)📝
packages/conversation-calls/CHANGELOG.md(+4 -0)➕
packages/conversation-calls/claude-code-plugin/.claude-plugin/plugin.json(+6 -0)➕
packages/conversation-calls/claude-code-plugin/hooks/hooks.json(+4 -0)➕
packages/conversation-calls/claude-code-plugin/hooks/register.mjs(+9 -0)📝
packages/conversation-calls/manifest.json(+18 -3)📝
packages/conversation-calls/server.mjs(+175 -175)📝
packages/noodle/CHANGELOG.md(+4 -0)...and 23 more files
📄 Description
Pull request
Linked issue
Closes #1313
Refs #1337 (stays open: Slurp has no SpicyAPI image adapter yet, so this PR only prepares the reference-image rule)
Why this change
sources/enginesnapshot. That copy predates Pasta-Devs/Marinara-Engine#7448 and Pasta-Devs/Marinara-Engine#7460. With a Claude (Subscription) connection, every package request still did two things the Engine has stopped doing. It made a hidden second request to name the session (generate_session_title). It also let Claude Code put the account email, the date and the server's environment between the system prompt and the chat./editand which accept references.What changed
runtime.languageModels.resolve(...).chatComplete. It is non-streaming, and the three packages create providers in many places, so switching to it would be a migration, not a small fix. Instead,sources/claude-subscription-overlay/holds one package-owned copy of the provider. The builder stacks it oversources/enginefor the three packages, inprepareFeatureBuildRoot, behind the newclaudeSubscription: truefeature flag. The vendored file and its baseline entry are untouched.title: "Title", so there is no hidden session-title request.plugins: [{ type: "local", path }], which loads themarinara-chat-contextplugin. Its three files are byte-identical to Enginepackages/server/src/assets/claude-code-plugin.assertChatContextPlugin()runs before the SDK starts, so the request fails closed when the plugin files are missing.stopIfClaudeCodeExposesMcp: the request aborts and errors wheninitlists MCP servers ormcp__tools.staging, Agent SDK 0.3.293) drops them. The packages run whatever Claude Code the host links, so the strip needs an Engine release after 2.5.0. The changelogs,notes.jsonand the Slurp splash say so. It warns instead of refusing: refusing would break Claude (Subscription) in all three packages on 2.5.0, whose own chats send the same context. The init message only arrives after the CLI has sent the request, so this is a signal, not a guard.CUSTOMIZABLE_SDK_OPTION_KEYS), so a connection's Custom Parameters can no longer overridetitle,plugins,envor the tool isolation. Before, they were deep-merged into every SDK option exceptresume/cwd/sessionStore.ChatOptionsfields the frozen snapshot doesn't have, and the packages never shared the installed-CLI code. The MCP error therefore drops the Engine'sCLAUDE_SUBSCRIPTION_USE_INSTALLED_CLIhint, because packages always run the SDK's own Claude Code.new URL("./claude-code-plugin", import.meta.url). In a package that URL isserver.mjs, so the builder copies the plugin topackages/<id>/claude-code-plugin/and declares the three files as package files. The Engine copies every declared file into the runtime snapshot besideserver.mjs. Captures exclude the overlay path, so a build never writes it back intosources/engine.npm run check(Prettier + ESLint globs) andnpm run typecheck:packagesnow include it. I confirmed the typecheck catches an undefined name in it. CONTRIBUTING's layout section documents it.slpImageReferencesSupportedreturns true for servicespicyapiwhen the model ends in/edit. All other rules are unchanged, and a fallback connection must still accept references too. I added no host match: the Engine's connection editor always savesimageService: "spicyapi"for SpicyAPI connections, and SpicyAPI connections only exist since Engine #7489.SLURP2_VERSIONand a one-line splash note; the file stays under the 800-line cap at 799 lines; staging published 0.3.35 from #1353 and 0.3.36 from #1358 while this PR was open), Calls 1.1.2 → 1.1.3. Each is above every version its catalog lanes have published. Patch changelog entries added; manifests, payloads, zips, v2/v3/legacy catalogs andnotes.jsonregenerated by the builders.Package and security impact
noodle,slurp2,conversation-calls.builtAgainstare unchanged, and the packages keep working on Engine 2.4.1/2.4.6 and later. The title fix and the MCP stop work on every supported Engine. The email/date/environment strip only takes effect with Claude Code 2.1.293 or newer, which no Engine release ships yet (2.5.0 has 2.1.282, Enginestaginghas 2.1.293). On 2.5.0 the server logs a warning instead.claude-code-plugin/.claude-plugin/plugin.json,claude-code-plugin/hooks/hooks.jsonandclaude-code-plugin/hooks/register.mjs.register.mjsis executable code that Claude Code loads. Its whole body ison("prompt.attachment", async () => ({ text: null })), the same as the Engine's.tsconfig.jsonbeside the plugin in the runtime snapshot, which is temporary and owned by Marinara. Installed files are unaffected.betas,effort,fallbackModel,maxBudgetUsd,maxThinkingTokens,model,outputFormat,taskBudgetandthinking, the same allowlist as the Engine.Build provenance (non-hermetic builds)
MARINARA_ENGINE_ROOTd71106851client.jsis unchanged.ead04150aserver.mjswas byte-identical there. Published 1.5.5'sclient.jscame from a newer root, so I rebuilt onlyserver.mjsand packaged it with the committedclient.js(MARINARA_RELEASE_BUILD=0 MARINARA_REUSE_FEATURE_RUNTIME=1). That two-step build of unchanged 1.5.5 reproduced the published zip byte for byte.client.jsis unchanged.dc0760d2a(the root #1346 named)server.mjswas byte-identical there and at staging1c0e7e1b1. No Engine staging root reproduces theclient.jsof 0.3.33–0.3.36 (staging's 0.3.35 and 0.3.36 rebuilt there give an identicalserver.mjsand the same CSS-onlyclient.jsdifference; 0.3.36 rebuilt at Enginestaging41e403e24does not match either); those were built outside these roots. The newSLURP2_VERSIONforces a client rebuild (the builder enforces it). The JS part grows by 170 bytes for the splash entry, apart from renamed minified identifiers. The scoped CSS block is about 190 KB larger, the same size 0.3.31/0.3.32 shipped from this root.Validation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run (not ticked above):
npm run check: 0 errors (warnings unchanged; none in changed files).npm run typecheck:packages: clean for all five 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,git diff --check: all pass.New
tests/claude-subscription-overlay.regression.mjs, now in the Catalog validation job. It stacks the overlay over the vendored server sources the way the builder does and driveschat()through a fake Agent SDK:title: "Title"and the plugin path, and keepsENABLE_CLAUDEAI_MCP_SERVERS=false, even when Custom Parameters try to blanktitle,pluginsandenv;mcp__tools alone, abort and reject the request;initreporting Claude Code 2.1.282 logs the "ignores the chat-context mod" warning once across two requests, and 2.1.293 logs nothing (this part fails against the previous overlay);server.mjspresets the title and resolves the plugin from its own location.Against the frozen vendored provider, the same test fails on the first assertion (
titleis'').tests/conversation-calls-summary.regression.mjspins the Calls version, so it now expects 1.1.3.Slurp regressions (
scripts/run-slurp-regressions.mjs, Enginedc0760d2awith shared built): 289/289 pass on this branch and on a pristineorigin/stagingworktree. Noodle/NoodleR/Calls regressions: the same 5 fail as on a pristineorigin/stagingworktree (noodle-public-only, fournoodler-*); none are new.tests/slurp2-appearance-profile.regression.tscovers the SpicyAPI rules: an edit model gets references, a text-to-image model does not, and the fallback rule holds both ways. It fails one case without the fix.tests/slurp2-release-notes.regression.tsandtests/slurp2-splash.regression.tspass.validate-vendored-engine.mjsagainst Engine staging1c0e7e1b1reports 124 unbaselined drifted files. Those come from Engine-side changes since the baseline. This PR changes neithersources/enginenor the baseline, soorigin/staginggets the same result.Needs a human, please:
OTEL_LOG_RAW_API_BODIES=file:<folder>in.env, that one Noodle generation, one Slurp post or reply and one Calls turn each show a single request per generation in<folder>/index.jsonl(nogenerate_session_title), and that the request files have no account email reminder and no# Environmentblock. Delete the folder afterwards, because it holds the account email.capability-runtime-snapshots/<id>-<version>-*/containsclaude-code-plugin/besideserver.mjs, and that a Claude (Subscription) request from each package succeeds.Claude Code 2.1.282 ignores the chat-context modonce in the server log, and that the request still succeeds.Known gap (not fixed here)
Slurp's bundled image code (
sources/engine/.../image-generation.ts, frozen) has no SpicyAPI adapter. The frozeninferImageSourceandnormalizeExplicitImageSourceroute aspicyapiconnection to the OpenAI images path, so SpicyAPI pictures don't generate in Slurp at all yet. This PR makes Slurp hand edit-model references togenerateImageas #1337 asks, and the changelog says so plainly. Getting SpicyAPI pictures working in Slurp needs a follow-up: a package-owned SpicyAPI adapter overlay, or a host image-generation capability.Documentation impact
CONTRIBUTING's repository layout now lists
sources/claude-subscription-overlay/.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.