mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7447] [Issue]: Claude subscription chats make an extra hidden request and send your email to the model #4149
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#4149
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?
Originally created by @JurijPietrowicz on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7447
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The Claude (Subscription) provider runs on Claude Code, and Claude Code adds things to every chat that only make sense for a coding tool:
PR for this issue here: https://github.com/Pasta-Devs/Marinara-Engine/pull/7448
Expected behavior
Actual behavior
Extra request: a second request named
generate_session_titleis sent next to the chat request when:CLAUDE_SUBSCRIPTION_USE_RESUME=false). Here it happens on every message.Follow-up messages in an existing chat and very short first messages (like "Hi") don't trigger it.
Extra information: Claude Code adds Environment block at the end of system prompt:
Claude Code also adds the following to the last user message:
The provider's current settings (
tools: [],skills: [],settingSources: []) don't remove it.Steps to reproduce
OTEL_LOG_RAW_API_BODIES=file:<folder>to Marinara's.env. This saves every request to that folder.<folder>/index.jsonl. There are two requests:query_source: "sdk"(the chat) andquery_source: "generate_session_title"(the extra one).# Environmentblock, the model note and the date.The saved files contain your email. Delete the folder and remove the
.envline when you're done.Environment
staging)Logs, screenshots, or video
The saved requests aren't attached because they contain the account email.
Additional context
Planned fix, in
packages/server/src/services/llm/providers/claude-subscription.provider.ts:titleoption. Claude Code then skips the naming request. The connection test inconnections.routes.tsgets the same option.pluginsoption. The plugin removes everything Claude Code adds between the system prompt and the chat (email, date, environment block and model note) before the request is sent. If a Claude Code version or an admin policy doesn't allow mods, the plugin is ignored and chats work as they do today. Original inspiration for a fix from here: https://github.com/AlexErrant/claude-code-no-emailNot part of this fix: Claude Code also adds a billing header and the line
You are a Claude agent, built on Anthropic's Claude Agent SDK.. Neither can be turned off. Both sit before Marinara's system prompt, not between the prompt and the chat. Without the model note, the model may guess wrong when asked which model it is. That doesn't matter for roleplay, and the connection test checks the model separately.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 12, 2026):
Fixed on staging by #7448.