mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7448] [MERGED] fix(claude-subscription): stop the hidden title request and the extra coding-agent context #7739
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7739
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-Engine/pull/7448
Author: @JurijPietrowicz
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/claude-subscription-title-and-context📝 Commits (10+)
eed5feefix(claude-subscription): skip the CLI's hidden session-title request822c5e4fix(claude-subscription): drop the coding-agent context Claude Code adds345e0e2Merge branch 'staging' into fix/claude-subscription-title-and-context6353e03fix(claude-subscription): refuse to chat without the chat-context modbbda913docs(changelog): say when the Claude chat-context plugin can't help0795e48docs(changelog): say the Claude fix doesn't reach agent packages yet45058e5docs(changelog): shorten the Claude (Subscription) entry83da78aMerge branch 'staging' into fix/claude-subscription-title-and-context148f278Merge branch 'staging' into fix/claude-subscription-title-and-context9eb647ffix(claude-subscription): keep Claude Code's generated mod types out of format:check📊 Changes
8 files changed (+167 additions, -4 deletions)
View changed files
📝
.prettierignore(+2 -0)➕
packages/server/src/assets/claude-code-plugin/.claude-plugin/plugin.json(+6 -0)➕
packages/server/src/assets/claude-code-plugin/.gitignore(+3 -0)➕
packages/server/src/assets/claude-code-plugin/hooks/hooks.json(+4 -0)➕
packages/server/src/assets/claude-code-plugin/hooks/register.mjs(+9 -0)📝
packages/server/src/routes/connections.routes.ts(+2 -0)📝
packages/server/src/services/llm/providers/claude-subscription.provider.ts(+57 -4)➕
scripts/regressions/claude-subscription-chat-context.regression.ts(+84 -0)📄 Description
Linked issue
Closes #7447
Why this change
Claude (Subscription) chats run on Claude Code, which adds work meant for a coding agent:
What changed
titleoption ("Title"), so Claude Code skips the naming request. The connection test inconnections.routes.tspasses it too.packages/server/src/assets/claude-code-plugin/, drops everyprompt.attachment. The provider loads it with the SDK'spluginsoption..mjs, so tsc leaves it alone. The existingcopyRuntimeAssets()step copiessrc/assetsintodist/assets, so it ships in source, Docker and Android (esbuild) builds with no build changes.tsconfig.jsonbeside a mod each time it loads it. The types folder ignores itself, and a.gitignorein the plugin folder coverstsconfig.json, so source installs don't get untracked files.chat()checks the plugin's files before the SDK starts and stops with an error when any is missing, so nothing is sent. This is the check CodeRabbit asked for, moved earlier: throwing wheninitreports a load error doesn't stop the request, because the CLI sends it without waiting. In a live probe, 2 of 3 runs still sent and answered the chat.initdebug log lists loaded plugins. It warns when Claude Code reports a load error for this plugin only; a built-in plugin's error doesn't bring the context back.claude-subscription-chat-context.regression.tschecks that the provider sendstitleandplugins, that the plugin files exist where the provider points, and that the hook drops attachments without handing them on. The title check moved there from the cache regression..prettierignoreskipspackages/server/src/assets/claude-code-plugin/.claude-plugin/types/. Claude Code writes about 790 KB of mod API declarations there each time a source checkout loads the plugin. Prettier doesn't read that folder's own.gitignore, sopnpm checkfailed after one dev-mode chat.Not changed: the billing header and the line
You are a Claude agent, built on Anthropic's Claude Agent SDK.sit before Marinara's system prompt, and no SDK option or mod event controls them. The CLI also leaves an emptysystemmessage where the environment block was. It has no content.Follow-up: the downloadable Noodle, Slurp2 and Conversation Calls packages bundle their own copy of the provider, so they need a separate Marinara-Agents update to get this fix.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Done by the agent:
staging's options, the request carried the email,# Environment, model note, date and token budget. With this branch's provider, it carried only the system prompt and the message, and the reply came back normally.pnpm checkpassed (the one client lint warning was already onstaging).pnpm --filter ./packages/server buildcopies the plugin todist/assets/claude-code-plugin/. Theclaude-subscription-*regressions pass.claude plugin validatepasses on the plugin.OTEL_LOG_RAW_API_BODIES, on both the installed Claude Code 2.1.296 and the bundled 2.1.293. Cases: new chat, resume path with history, fold path, and a message with an image. Every case sent onesdkrequest and nogenerate_session_title. The request body had no email,# Environment, model note, token budget or date, and the reply was normal. The image still reached the model (it named the colour).marinara-chat-contextin theinitplugins list, noplugin_errors), including from a read-only folder, as in Docker where the app user can't write to/app/packages.hooks/register.mjsremoved, a chat stops with the new error and no request is captured.Done by the human:
OTEL_LOG_RAW_API_BODIES=file:<folder>in.env, starting a new chat and sending a full sentence.<folder>/index.jsonlhas onesdkrequest and nogenerate_session_title, and the request file has no email,# Environment, model or date lines.Still to verify by hand:
LOG_LEVEL=debuglistsmarinara-chat-contextunderpluginsinSDK init surface.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No
docs/page describes what Claude Code adds to requests, so there's nothing to translate. TheCHANGELOG.mdentry was dropped: pull requests no longer add changelog entries.UI evidence (if applicable)
Not applicable (server-side only).
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.