mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5266] [Issue]: Macro reference modal displays [object Object] instead of {{macro}} #2917
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#2917
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 (Aug 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5266
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The macro reference modal displays
[object Object]in its usage guidance instead of the{{macro}}example. The issue occurs in both English and Korean.Expected behavior
The first line of the macro reference modal should read "Use {{macro}} anywhere in prompt fields…".
Actual behavior
The first line reads "Use [object Object] anywhere in prompt fields…". The
<or>||</or>and<and>&&</and>content renders correctly, but<macro>{{example}}</macro>does not.Steps to reproduce
[object Object]in the first line of the modal instead of{{macro}}.Environment
34442e26da)Logs, screenshots, or video
Screenshot: https://cdn.discordapp.com/attachments/1539644929482166372/1539644930656567346/image.png?ex=6a871194&is=6a85c014&hm=67ce5ae3e0aba6bf3b9c14a0cb71851d01287741ba200c5382382673f38c5ba3&
Additional context
Affected translation key:
ui.ui.macrosreferencemodal.macroUsageGuidance, rendered by<Trans>atMacroTextarea.tsx:235withvalues={{ example: "{{macro}}" }}andcomponents={{ macro, or, and }}. A likely values/components name collision causesmacroto resolve to a React element and stringify as[object Object]. Suggested fix: render the example as a literal tag child or rename the value/component key. Dependencies: i18next 26.3.6 and react-i18next 17.0.10.localization/i18n.ts:20sets onlyescapeValue: false.Discord thread: Macro reference modal shows [object Object] instead of {{macro}}
Discord thread link: https://discord.com/channels/1417099416812392641/1539644929482166372
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: