[GH-ISSUE #3140] [Issue]: Expose Persona IDs to reduce ambiguous persona searches #1687

Closed
opened 2026-10-21 05:41:43 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3140

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Personas have IDs, but users cannot easily view or copy them like Character IDs in the character editor. This makes Mari searches ambiguous and can waste tokens or fail when locating personas, especially when names overlap.

Expected behavior

Users should be able to view and copy Persona IDs, similar to Character IDs, and use them to unambiguously reference personas.

Actual behavior

Only characters expose a Character ID. Persona IDs are not easily discoverable without asking Mari, and Mari may search standard characters instead of personas when the user says "custom character" or uses a name.

Steps to reproduce

  1. Create or use a persona/custom user character.
  2. Ask Mari to find it by name using wording such as "custom character" followed by the name.
  3. Observe that Mari may search standard characters instead of personas, fail to locate the persona, or spend many tokens searching.
  4. Use the term "persona" instead and observe that it improves the search target.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Discord report: user says persona IDs exist but cannot be found without asking Mari to make changes; Mari wasted many tokens on searches and failed to locate the persona several times. User also noted search messages are deleted when Mari does not find anything.

Additional context

A maintainer suggested adding Persona IDs to copy like in the Characters editor. The issue is more visible when two people/personas have the same name but different backgrounds.

Discord thread: Character ID
Discord thread link: https://discord.com/channels/1417099416812392641/1521874779857223680
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (14 messages)
[2026-07-01T13:47:02.584Z] Krewetco: Currently, only characters have a Character ID, whereas user characters do not.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521874779857223680]

[2026-07-01T13:51:39.733Z] AgentX: When you say user "user characters", do you mean Personas? (aka {{user}}) I think those are completely different class/model/data type, so they wouldn't have a characterId, they have a personaId.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521875942304387203]

[2026-07-01T13:54:04.586Z] Krewetco: A situation might arise where, for example, there are two individuals with the same name.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521876549861642350]

[2026-07-01T13:55:06.501Z] AgentX: yes, but they'd have different characterId and/or personaId. In what scenario would that cause a problem?
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521876809552105522]

[2026-07-01T13:56:00.336Z] Krewetco: The personas do have an ID, but for some reason, you can't find out what it is without asking Mari to make changes. Right now, this has resulted in her wasting a ton of tokens on searches and failing to locate the persona several times.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877035352588411]

[2026-07-01T13:56:57.989Z] Krewetco: And that’s despite the fact that there is only one character with that name.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877277166669875]

[2026-07-01T13:57:02.397Z] AgentX: Ah, so when using Mari to search for a card based on a name, then it might get confused. Sorry, was just trying to find a specific use case so it's easier to understand.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877295655288842]

[2026-07-01T13:58:07.075Z] Krewetco: The funniest part is, I pointed out that it was a custom character, but she started searching among the standard characters.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877566934482944]

[2026-07-01T13:59:02.009Z] Krewetco: I noticed that Mari has become worse at searching; if she doesn't find anything, she stops, and the search messages are deleted.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877797344120972]

[2026-07-01T13:59:02.982Z] AgentX: Can you try saying user or persona instead of "custom character", I feel "character" will have her look for actual characters (not personas).
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877801425436733]

[2026-07-01T14:02:50.625Z] Krewetco: Hmm. That helped. Out of habit, I always used to type "character" followed by the name, and it would find it. They must have changed something about the search method that I wasn't aware of.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521878756229251292]

[2026-07-01T14:04:47.640Z] Krewetco: Although it doesn't eliminate the problem if there are two people with the same name. With different backgrounds.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521879247025868961]

[2026-07-01T14:46:53.244Z] AgentX: I think Mari looks for table names in the database, so using persona should have her look elsewhere
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521889840176566443]

[2026-07-02T10:05:45.296Z] Marinara: We vcan add Persona IDs to copy like we did in Characters editor.
[Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1522181478740529182]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3140 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Personas have IDs, but users cannot easily view or copy them like Character IDs in the character editor. This makes Mari searches ambiguous and can waste tokens or fail when locating personas, especially when names overlap. ## Expected behavior Users should be able to view and copy Persona IDs, similar to Character IDs, and use them to unambiguously reference personas. ## Actual behavior Only characters expose a Character ID. Persona IDs are not easily discoverable without asking Mari, and Mari may search standard characters instead of personas when the user says "custom character" or uses a name. ## Steps to reproduce 1. Create or use a persona/custom user character. 2. Ask Mari to find it by name using wording such as "custom character" followed by the name. 3. Observe that Mari may search standard characters instead of personas, fail to locate the persona, or spend many tokens searching. 4. Use the term "persona" instead and observe that it improves the search target. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Discord report: user says persona IDs exist but cannot be found without asking Mari to make changes; Mari wasted many tokens on searches and failed to locate the persona several times. User also noted search messages are deleted when Mari does not find anything. ## Additional context A maintainer suggested adding Persona IDs to copy like in the Characters editor. The issue is more visible when two people/personas have the same name but different backgrounds. Discord thread: Character ID Discord thread link: https://discord.com/channels/1417099416812392641/1521874779857223680 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (14 messages)</summary> ```text [2026-07-01T13:47:02.584Z] Krewetco: Currently, only characters have a Character ID, whereas user characters do not. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521874779857223680] [2026-07-01T13:51:39.733Z] AgentX: When you say user "user characters", do you mean Personas? (aka {{user}}) I think those are completely different class/model/data type, so they wouldn't have a characterId, they have a personaId. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521875942304387203] [2026-07-01T13:54:04.586Z] Krewetco: A situation might arise where, for example, there are two individuals with the same name. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521876549861642350] [2026-07-01T13:55:06.501Z] AgentX: yes, but they'd have different characterId and/or personaId. In what scenario would that cause a problem? [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521876809552105522] [2026-07-01T13:56:00.336Z] Krewetco: The personas do have an ID, but for some reason, you can't find out what it is without asking Mari to make changes. Right now, this has resulted in her wasting a ton of tokens on searches and failing to locate the persona several times. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877035352588411] [2026-07-01T13:56:57.989Z] Krewetco: And that’s despite the fact that there is only one character with that name. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877277166669875] [2026-07-01T13:57:02.397Z] AgentX: Ah, so when using Mari to search for a card based on a name, then it might get confused. Sorry, was just trying to find a specific use case so it's easier to understand. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877295655288842] [2026-07-01T13:58:07.075Z] Krewetco: The funniest part is, I pointed out that it was a custom character, but she started searching among the standard characters. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877566934482944] [2026-07-01T13:59:02.009Z] Krewetco: I noticed that Mari has become worse at searching; if she doesn't find anything, she stops, and the search messages are deleted. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877797344120972] [2026-07-01T13:59:02.982Z] AgentX: Can you try saying user or persona instead of "custom character", I feel "character" will have her look for actual characters (not personas). [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521877801425436733] [2026-07-01T14:02:50.625Z] Krewetco: Hmm. That helped. Out of habit, I always used to type "character" followed by the name, and it would find it. They must have changed something about the search method that I wasn't aware of. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521878756229251292] [2026-07-01T14:04:47.640Z] Krewetco: Although it doesn't eliminate the problem if there are two people with the same name. With different backgrounds. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521879247025868961] [2026-07-01T14:46:53.244Z] AgentX: I think Mari looks for table names in the database, so using persona should have her look elsewhere [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1521889840176566443] [2026-07-02T10:05:45.296Z] Marinara: We vcan add Persona IDs to copy like we did in Characters editor. [Discord message: https://discord.com/channels/1417099416812392641/1521874779857223680/1522181478740529182] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:41:43 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Jul 2, 2026):

Codex is triaging this in branch codex/issue-sweep-3136-3143 for a staging-targeted follow-up sweep. If the report needs more repro detail, I will note that on the issue instead of guessing.

<!-- gh-comment-id:4864760700 --> @SpicyMarinara commented on GitHub (Jul 2, 2026): Codex is triaging this in branch codex/issue-sweep-3136-3143 for a staging-targeted follow-up sweep. If the report needs more repro detail, I will note that on the issue instead of guessing.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 2, 2026):

Fix is ready in PR #3144 and will close this on merge. Local validation passed: git diff --check, pnpm check, pnpm smoke:ui, and pnpm regression:prompt.

<!-- gh-comment-id:4864967290 --> @SpicyMarinara commented on GitHub (Jul 2, 2026): Fix is ready in PR #3144 and will close this on merge. Local validation passed: `git diff --check`, `pnpm check`, `pnpm smoke:ui`, and `pnpm regression:prompt`.
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#1687
No description provided.