[GH-ISSUE #5266] [Issue]: Macro reference modal displays [object Object] instead of {{macro}} #2917

Closed
opened 2026-10-21 05:57:58 +07:00 by bsakaguchi · 0 comments
Owner

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

  1. Open any macro-enabled textarea.
  2. Click the macro reference button.
  3. Observe [object Object] in the first line of the modal instead of {{macro}}.

Environment

  • Marinara Engine version: 2.4.3 (build 2.4.3+34442e26da57, commit 34442e26da)
  • Install type: other (Windows local install) and docker (self-hosted)
  • OS + version: Server: Windows 10.0.19045 x64 and Linux 6.8.0-137-generic x64; client: Windows 10.0
  • Browser or app shell: Whale 4.39.410.14 / Chrome 150.0.0.0 on Windows 10 x64

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> at MacroTextarea.tsx:235 with values={{ example: "{{macro}}" }} and components={{ macro, or, and }}. A likely values/components name collision causes macro to 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:20 sets only escapeValue: 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)
[2026-08-19T14:39:16.408Z] Lattete: Marinara Engine diagnostics
Version: 2.4.3
Build: 2.4.3+34442e26da57
Commit: 34442e26da57
Server OS: Windows 10.0.19045 (x64) + Linux 6.8.0-137-generic (x64)
  └ Windows local install + self-hosted Docker
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Whale/4.39.410.14 Safari/537.36
GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 1050 (0x00001C81) Direct3D11 vs_5_0 ps_5_0, D3D11)

**Macro reference modal shows `[object Object]` instead of the macro example**

The first line of the macro reference modal reads "Use [object Object] anywhere in prompt fields…" where it should show `{{macro}}`.

Repro: open any macro-enabled textarea → macro reference button. Happens in both English and Korean UI, so it isn't a translation problem.

Key `ui.ui.macrosreferencemodal.macroUsageGuidance`, rendered by `<Trans>` at MacroTextarea.tsx:235 with `values={{ example: "{{macro}}" }}` and `components={{ macro, or, and }}`.

Useful detail: in the same sentence `<or>||</or>` and `<and>&&</and>` render fine. Only `<macro>{{example}}</macro>` breaks — the one whose tag wraps an interpolation placeholder instead of a literal. So tag substitution works; the interpolated value is what goes wrong.

Likely cause: the interpolated value is itself `"{{macro}}"`, and `macro` is also a key in `components`, so the substitution resolves to the React element and stringifies to `[object Object]`. This values/components name collision appears nowhere else in the codebase.

Suggested fix: remove the collision — render the example as a literal child of the tag, or rename either the value or the component key.

Versions: i18next 26.3.6, react-i18next 17.0.10; init at localization/i18n.ts:20 sets only `escapeValue: false`.

[attached image 1: https://cdn.discordapp.com/attachments/1539644929482166372/1539644930656567346/image.png?ex=6a871194&is=6a85c014&hm=67ce5ae3e0aba6bf3b9c14a0cb71851d01287741ba200c5382382673f38c5ba3&]
[Discord message: https://discord.com/channels/1417099416812392641/1539644929482166372/1539644929482166372]

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 (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 1. Open any macro-enabled textarea. 2. Click the macro reference button. 3. Observe `[object Object]` in the first line of the modal instead of `{{macro}}`. ## Environment - Marinara Engine version: 2.4.3 (build 2.4.3+34442e26da57, commit 34442e26da57) - Install type: other (Windows local install) and docker (self-hosted) - OS + version: Server: Windows 10.0.19045 x64 and Linux 6.8.0-137-generic x64; client: Windows 10.0 - Browser or app shell: Whale 4.39.410.14 / Chrome 150.0.0.0 on Windows 10 x64 ## 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>` at `MacroTextarea.tsx:235` with `values={{ example: "{{macro}}" }}` and `components={{ macro, or, and }}`. A likely values/components name collision causes `macro` to 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:20` sets only `escapeValue: 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) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-08-19T14:39:16.408Z] Lattete: Marinara Engine diagnostics Version: 2.4.3 Build: 2.4.3+34442e26da57 Commit: 34442e26da57 Server OS: Windows 10.0.19045 (x64) + Linux 6.8.0-137-generic (x64) └ Windows local install + self-hosted Docker Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Whale/4.39.410.14 Safari/537.36 GPU: ANGLE (NVIDIA, NVIDIA GeForce GTX 1050 (0x00001C81) Direct3D11 vs_5_0 ps_5_0, D3D11) **Macro reference modal shows `[object Object]` instead of the macro example** The first line of the macro reference modal reads "Use [object Object] anywhere in prompt fields…" where it should show `{{macro}}`. Repro: open any macro-enabled textarea → macro reference button. Happens in both English and Korean UI, so it isn't a translation problem. Key `ui.ui.macrosreferencemodal.macroUsageGuidance`, rendered by `<Trans>` at MacroTextarea.tsx:235 with `values={{ example: "{{macro}}" }}` and `components={{ macro, or, and }}`. Useful detail: in the same sentence `<or>||</or>` and `<and>&&</and>` render fine. Only `<macro>{{example}}</macro>` breaks — the one whose tag wraps an interpolation placeholder instead of a literal. So tag substitution works; the interpolated value is what goes wrong. Likely cause: the interpolated value is itself `"{{macro}}"`, and `macro` is also a key in `components`, so the substitution resolves to the React element and stringifies to `[object Object]`. This values/components name collision appears nowhere else in the codebase. Suggested fix: remove the collision — render the example as a literal child of the tag, or rename either the value or the component key. Versions: i18next 26.3.6, react-i18next 17.0.10; init at localization/i18n.ts:20 sets only `escapeValue: false`. [attached image 1: https://cdn.discordapp.com/attachments/1539644929482166372/1539644930656567346/image.png?ex=6a871194&is=6a85c014&hm=67ce5ae3e0aba6bf3b9c14a0cb71851d01287741ba200c5382382673f38c5ba3&] [Discord message: https://discord.com/channels/1417099416812392641/1539644929482166372/1539644929482166372] ``` </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:57:58 +07:00
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#2917
No description provided.