mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6206] Setting a persona as active looks like it does nothing: docs promise it applies to every chat, code applies it to Conversation only, and the chat UI reports None #3459
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#3459
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 @kolacheee on GitHub (Sep 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6206
Originally assigned to: @SpicyMarinara on GitHub.
Setting a persona as active in the Personas panel looks like it does nothing, and the app contradicts itself about what it does. The documentation says the active persona is used by any chat that has no persona of its own (Game Mode excepted), but the code only applies it to Conversation-mode chats; Roleplay and Game chats never use it, and their setup defaults to "Stay anonymous". In the one place it does apply, the chat UI says the opposite: the persona switcher shows "None - No persona selected" as checked and the composer avatar shows "?", while the prompt sent to the model and the name on your own messages use the active persona. The only visible feedback in the Personas panel is a highlight ring and a check badge; the persona also moves to the top when the list is sorted by Recent, but only because activating it refreshes its "updated" time.
Reported by a user on v2.4.4 ("having an active persona also doesn't really do anything ... it doesn't change current persona in a chat (at least in RP mode) and doesn't auto-select it when making a new chat, all i can see that it does is moves it to the top of the folder"). Re-verified on
stagingat14de2d1ad.How to reproduce (try it yourself)
Hi, I am {{user}}in the composer and send it.What you'll see: in the Conversation chat the switcher shows "None - No persona selected" as checked and the avatar shows "?", yet your message is labeled "Alice" and the prompt contains Alice's persona block. In the Roleplay chat the persona step starts on "Stay anonymous", the switcher shows None, and the prompt has no persona at all. At step 4 the stored message reads "Hi, I am Alice" (the composer expanded the macro with the active persona) while the model sees a persona-less chat.
What should happen: the documentation, the prompt, and the chat UI should agree. If Conversation-only is the intended rule (it was chosen deliberately in #3715), the docs and the Personas panel should say so, and a persona-less Conversation chat should show "Alice (default)" instead of "None". If the documented rule is the intended one, Roleplay setup should preselect the active persona with "Stay anonymous" one click away. Either way the composer must not expand
{{user}}with a persona the server will not use.Where it is
At staging
14de2d1ad:packages/shared/src/utils/chat-persona.ts-resolveChatPersonaCandidatefalls back to the active persona only whenchatMode === "conversation". Deliberate: CHANGELOG entry from #3715 ("only Conversation mode may fall back to the globally active Persona"), used bypackages/server/src/services/chat-user-identity.tsfor prompts and prompt previews.docs/characters/choosing-your-persona.mdlines 11 and 64-70, anddocs/characters/personas.mdline 13 - still describe the active persona as the fallback for "any chat that has no persona of its own", excepting only Game Mode. This text predates #3715 and was never updated, so users are told to expect exactly what the reporter expected.packages/client/src/components/chat/ChatArea.tsx-useActivePersona(... chatMode === "conversation")at line 872 and the identity memo at line 1082 label the user's messages with the active persona in Conversation chats.packages/client/src/components/chat/QuickPersonaSwitcher.tsx-activePersonaId = chat?.personaId ?? nullwith no fallback, so the switcher and the composer avatar report None for the same chat. Choosing "None" there setspersonaIdto null, which in a Conversation chat falls straight back to the active persona, so "None" cannot mean "no persona" while one is active (see the companion issue about clearing it).packages/client/src/lib/chat-macros.ts-selectActivePersonausesallowGlobalFallback = chat?.mode !== "game", so the Roleplay composer (ChatInput.tsx,resolveInputMacrosapplied to the outgoing text) expands{{user}}with the active persona and stores it, unlike the server. It should reuse the sharedresolveChatPersonaCandidate.packages/client/src/components/panels/PersonasPanel.tsx- the "Set as active" tooltip, the row highlight, and the avatar check badge (around line 1208) are the only feedback; there is no explanation of scope. The move-to-top comes fromsetActivePersonabumpingupdatedAtand the list's default updated-at ordering.packages/client/src/components/chat/ChatSetupWizard.tsxand the persona picker - the persona step starts on "Stay anonymous" (onChange(null)), never on the active persona.Other readers of the flag that are not mode-gated and keep working regardless: tracker card color defaults (
TrackerCardColorSettings.tsx), DJ Mari playlists, and themari personas activecommand.What's happening
The server and the chat header treat the active persona as a Conversation-only default, the switcher, avatar, and setup wizard only look at the chat's explicit persona, the composer uses a third rule of its own, and the docs describe a fourth. The mode the reporter tried it in (Roleplay) is excluded by design without anything saying so.
Suggested fix
docs/characters/choosing-your-persona.mdanddocs/characters/personas.mdto match.resolveChatPersonaCandidateand show it in the switcher and avatar as a default (a "default" badge, not a chat-level selection). Makechat-macros.tsuse the same shared helper so the composer matches the server.Context
Found while investigating a user report against v2.4.4; the behavior is unchanged on staging. Verified with the running app and the API (prompt preview) and a nine-way adversarial code review, not from a single reading. Please verify before fixing.
@SpicyMarinara commented on GitHub (Sep 14, 2026):
Yeah, this is an artifact feature; it should be removed.
@SpicyMarinara commented on GitHub (Sep 14, 2026):
Implementation owner: @SpicyMarinara, assisted by Codex. Taking this in the assigned issue sweep. Following the decision in #6206 to retire global active personas; explicit chat selections and stored persona data will be preserved. A linked draft PR is being opened before implementation.
@SpicyMarinara commented on GitHub (Sep 14, 2026):
Resolved in #6212, merged to staging. Following the maintainer decision here, the obsolete global active-persona feature has been removed. Chats now use only their explicitly selected persona; None remains anonymous. The library controls, rendering, composer, server identity, and guides agree.
Validation: pnpm check, prompt regressions, persona API/client regressions, and the focused browser flow on desktop Chromium, mobile Chromium, and mobile WebKit. Matching language packs are in #6213.