[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

Closed
opened 2026-10-21 06:03:20 +07:00 by bsakaguchi · 3 comments
Owner

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 staging at 14de2d1ad.

How to reproduce (try it yourself)

  1. Create a persona "Alice" and set it as active in the Personas panel.
  2. Start a new Conversation chat and do not pick a persona. Open the persona switcher next to the composer, then send a message or use Peek Prompt.
  3. Start a new Roleplay chat. Look at the persona step in the setup, then open the same switcher and Peek Prompt in that chat.
  4. In that Roleplay chat, type 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 - resolveChatPersonaCandidate falls back to the active persona only when chatMode === "conversation". Deliberate: CHANGELOG entry from #3715 ("only Conversation mode may fall back to the globally active Persona"), used by packages/server/src/services/chat-user-identity.ts for prompts and prompt previews.
  • docs/characters/choosing-your-persona.md lines 11 and 64-70, and docs/characters/personas.md line 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 ?? null with no fallback, so the switcher and the composer avatar report None for the same chat. Choosing "None" there sets personaId to 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 - selectActivePersona uses allowGlobalFallback = chat?.mode !== "game", so the Roleplay composer (ChatInput.tsx, resolveInputMacros applied to the outgoing text) expands {{user}} with the active persona and stores it, unlike the server. It should reuse the shared resolveChatPersonaCandidate.
  • 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 from setActivePersona bumping updatedAt and the list's default updated-at ordering.
  • packages/client/src/components/chat/ChatSetupWizard.tsx and 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 the mari personas active command.

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

  • Decide the rule (product call): keep Conversation-only, or restore the documented "any chat without its own persona" behavior. Update docs/characters/choosing-your-persona.md and docs/characters/personas.md to match.
  • Client: in Conversation chats without a persona, resolve the effective persona through the shared resolveChatPersonaCandidate and show it in the switcher and avatar as a default (a "default" badge, not a chat-level selection). Make chat-macros.ts use the same shared helper so the composer matches the server.
  • Personas panel: say what active means in the tooltip and, if there is room, a short caption.

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.

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 `staging` at 14de2d1ad. ## How to reproduce (try it yourself) 1. Create a persona "Alice" and set it as active in the Personas panel. 2. Start a new Conversation chat and do not pick a persona. Open the persona switcher next to the composer, then send a message or use Peek Prompt. 3. Start a new Roleplay chat. Look at the persona step in the setup, then open the same switcher and Peek Prompt in that chat. 4. In that Roleplay chat, type `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` - `resolveChatPersonaCandidate` falls back to the active persona only when `chatMode === "conversation"`. Deliberate: CHANGELOG entry from #3715 ("only Conversation mode may fall back to the globally active Persona"), used by `packages/server/src/services/chat-user-identity.ts` for prompts and prompt previews. - `docs/characters/choosing-your-persona.md` lines 11 and 64-70, and `docs/characters/personas.md` line 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 ?? null` with no fallback, so the switcher and the composer avatar report None for the same chat. Choosing "None" there sets `personaId` to 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` - `selectActivePersona` uses `allowGlobalFallback = chat?.mode !== "game"`, so the Roleplay composer (`ChatInput.tsx`, `resolveInputMacros` applied to the outgoing text) expands `{{user}}` with the active persona and stores it, unlike the server. It should reuse the shared `resolveChatPersonaCandidate`. - `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 from `setActivePersona` bumping `updatedAt` and the list's default updated-at ordering. - `packages/client/src/components/chat/ChatSetupWizard.tsx` and 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 the `mari personas active` command. ## 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 - Decide the rule (product call): keep Conversation-only, or restore the documented "any chat without its own persona" behavior. Update `docs/characters/choosing-your-persona.md` and `docs/characters/personas.md` to match. - Client: in Conversation chats without a persona, resolve the effective persona through the shared `resolveChatPersonaCandidate` and show it in the switcher and avatar as a default (a "default" badge, not a chat-level selection). Make `chat-macros.ts` use the same shared helper so the composer matches the server. - Personas panel: say what active means in the tooltip and, if there is room, a short caption. ## 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.
bsakaguchi 2026-10-21 06:03:20 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Yeah, this is an artifact feature; it should be removed.

<!-- gh-comment-id:5667822643 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Yeah, this is an artifact feature; it should be removed.
Author
Owner

@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.

<!-- gh-comment-id:5668436014 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:5668918881 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3459
No description provided.