mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7430] Roleplay: agents don't see whispers in their context #4140
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#4140
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 @SpicyMarinara on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7430
Originally assigned to: @SpicyMarinara on GitHub.
Problem
In Roleplay chats, Echo Chamber and every other agent miss whispers entirely. A whisper is saved privately with its message, and only its recipient (and the appointed narrator) get it in their prompt. Agents never do, so:
Cause
Roleplay whispers live in message
extra(roleplayCommandActivity, read withgetRoleplayWhispers, placed withgetRoleplayCommandContentOffset). Character responders get them throughappendRoleplayWhispers(packages/server/src/services/generation/roleplay-commands.ts) only when they are the recipient or the appointed narrator.generate.routes.tsstates that "Private state enters only the final responder request, after shared agent context". Agents get history built from visible message text only:agentContext.recentMessages/routingContext.recentMessagessharedPromptForAgents/publicRoleplayPromptforagentContext.memory._mainPromptPreviewretry-agentsroute contextslorebook-keeper-utilstool-resolution-runtimemainResponsefor post-generation agentsA whisper-only message has empty text and
agent-executor.tsfilters out messages with empty content.Decided behaviour
[Private whisper to Maukie: text].Owner: @SpicyMarinara (Claude Code agent working on it)
@SpicyMarinara commented on GitHub (Oct 11, 2026):
Fixed on staging by #7437. In Roleplay, every agent the Engine runs now reads whispers, including Smart response order. Each whisper sits at its place in the message and is marked private with its recipient. Hosted multiplayer rooms are the exception. Agent packages that read the chat themselves follow in Pasta-Devs/Marinara-Engine#7443 and Pasta-Devs/Marinara-Agents#1309.