[GH-ISSUE #677] [Bug]: Image prompt review modal renders raw localization keys in Noodle and Slurp #349

Closed
opened 2026-10-20 17:26:45 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Gunterlie on GitHub (Sep 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/677

Summary

Every text string in the image prompt review modal renders as a raw localization key. Ten keys used by ImagePromptReviewModal are referenced by the shipped client.js of both Noodle and Slurp but exist in neither package's locale catalog.

This is the "all of the text strings are broken" report. It is not Slurp-specific: ImagePromptReviewModal is a shared Engine component (components/ui/ImagePromptReviewModal) that both packages bundle, so Noodle's review modal is broken identically.

Evidence

Scanning the built bundle for ui.* key references and diffing against the package catalog:

slurp:  keys referenced in bundle: 1460 | missing from catalog: 24
noodle: same 23 of those 24 keys missing

The largest cluster by far is the review modal — all ten of its strings:

ui.ui.imagepromptreviewmodal.belowBeforeMarinaraSendsThe
ui.ui.imagepromptreviewmodal.editThePrompt
ui.ui.imagepromptreviewmodal.ready
ui.ui.imagepromptreviewmodal.request
ui.ui.imagepromptreviewmodal.requestNeedsAPrompt
ui.ui.imagepromptreviewmodal.reviewValue1Prompt
ui.ui.imagepromptreviewmodal.reviewValue1Prompts
ui.ui.imagepromptreviewmodal.toYourProvider
ui.ui.imagepromptreviewmodal.value1
ui.ui.imagepromptreviewmodal.value1_1d0dfc9

Note the ui.ui. double segment. Every other namespace in the catalog is ui.<area>.<component>. This one is ui.ui.<component>, because the component sits in components/ui/ rather than a feature folder — a naming collision the extractor did not handle.

Secondary defect in the same modal

The body sentence is assembled from six separate lookups with a pluralisation hack, visible in the compiled bundle:

i("ui.ui.imagepromptreviewmodal.editThePrompt"),
r.length === 1 ? "" : i("ui.noodle.stageprofileview.s"),   // borrowed "s" from an unrelated key
" ",
i("ui.ui.imagepromptreviewmodal.belowBeforeMarinaraSendsThe"),
" ", v, " ",
i("ui.ui.imagepromptreviewmodal.request"),
r.length === 1 ? "" : i("ui.noodle.stageprofileview.s"),
" ",
i("ui.ui.imagepromptreviewmodal.ready")

ui.noodle.stageprofileview.s is literally "s". An English sentence has been chopped into fragments and pluralised by concatenating a borrowed letter. Even with the keys restored this is unlocalisable — word order and plural rules differ per language. The fragments should be collapsed into one or two keys with proper {{count}} interpolation.

The other 14 missing keys

Same class of bug, smaller blast radius, also shared Engine components:

ui.agents.customagentrepositoriesmodal.prompt
ui.characters.characterclipcard.generate
ui.chat.chatgallery.copyPrompt / couldNotCopyPrompt / downloadImage
ui.chat.chatgallery.pinImageToChat / pinToChat / promptCopied
ui.chat.chatimagelightbox.closeImage / imagePreview
ui.chat.summarypopover.every
ui.panels.manualupdatecommand.copied
ui.panels.promptoverrideseditorbody.chars
ui.noodle.noodlerwizard.createCount        (slurp only)

Root cause

The package build vendors Engine UI components into client.js but does not pull those components' catalog entries into the package locale file. Anything the packages render from components/ui/, components/chat/, components/panels/ or components/characters/ ships with no strings.

Suggested fix

  1. Add the missing entries to packages/*/src/engine/packages/client/src/localization/locales/en.json, or better, make the build fail when a bundled ui.* key has no catalog entry. The check is cheap — extract "ui.*" literals from the built bundle and diff against the catalog. That is exactly how these were found, and it would have caught all 24 at build time.
  2. Collapse the fragmented review-modal sentence into whole-sentence keys with {{count}}.

Reproduction

Enable Review image prompts before sending, generate a post with an image, in either Noodle or Slurp. The modal shows key names instead of text.

Affects

Both packages, all recent versions. Reported against Slurp; confirmed present in Noodle from the same evidence.

Originally created by @Gunterlie on GitHub (Sep 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/677 ## Summary Every text string in the image prompt review modal renders as a raw localization key. Ten keys used by `ImagePromptReviewModal` are referenced by the shipped `client.js` of **both** Noodle and Slurp but exist in **neither** package's locale catalog. This is the "all of the text strings are broken" report. It is not Slurp-specific: `ImagePromptReviewModal` is a shared Engine component (`components/ui/ImagePromptReviewModal`) that both packages bundle, so Noodle's review modal is broken identically. ## Evidence Scanning the built bundle for `ui.*` key references and diffing against the package catalog: ``` slurp: keys referenced in bundle: 1460 | missing from catalog: 24 noodle: same 23 of those 24 keys missing ``` The largest cluster by far is the review modal — all ten of its strings: ``` ui.ui.imagepromptreviewmodal.belowBeforeMarinaraSendsThe ui.ui.imagepromptreviewmodal.editThePrompt ui.ui.imagepromptreviewmodal.ready ui.ui.imagepromptreviewmodal.request ui.ui.imagepromptreviewmodal.requestNeedsAPrompt ui.ui.imagepromptreviewmodal.reviewValue1Prompt ui.ui.imagepromptreviewmodal.reviewValue1Prompts ui.ui.imagepromptreviewmodal.toYourProvider ui.ui.imagepromptreviewmodal.value1 ui.ui.imagepromptreviewmodal.value1_1d0dfc9 ``` Note the `ui.ui.` double segment. Every other namespace in the catalog is `ui.<area>.<component>`. This one is `ui.ui.<component>`, because the component sits in `components/ui/` rather than a feature folder — a naming collision the extractor did not handle. ## Secondary defect in the same modal The body sentence is assembled from six separate lookups with a pluralisation hack, visible in the compiled bundle: ```js i("ui.ui.imagepromptreviewmodal.editThePrompt"), r.length === 1 ? "" : i("ui.noodle.stageprofileview.s"), // borrowed "s" from an unrelated key " ", i("ui.ui.imagepromptreviewmodal.belowBeforeMarinaraSendsThe"), " ", v, " ", i("ui.ui.imagepromptreviewmodal.request"), r.length === 1 ? "" : i("ui.noodle.stageprofileview.s"), " ", i("ui.ui.imagepromptreviewmodal.ready") ``` `ui.noodle.stageprofileview.s` is literally `"s"`. An English sentence has been chopped into fragments and pluralised by concatenating a borrowed letter. Even with the keys restored this is unlocalisable — word order and plural rules differ per language. The fragments should be collapsed into one or two keys with proper `{{count}}` interpolation. ## The other 14 missing keys Same class of bug, smaller blast radius, also shared Engine components: ``` ui.agents.customagentrepositoriesmodal.prompt ui.characters.characterclipcard.generate ui.chat.chatgallery.copyPrompt / couldNotCopyPrompt / downloadImage ui.chat.chatgallery.pinImageToChat / pinToChat / promptCopied ui.chat.chatimagelightbox.closeImage / imagePreview ui.chat.summarypopover.every ui.panels.manualupdatecommand.copied ui.panels.promptoverrideseditorbody.chars ui.noodle.noodlerwizard.createCount (slurp only) ``` ## Root cause The package build vendors Engine UI components into `client.js` but does not pull those components' catalog entries into the package locale file. Anything the packages render from `components/ui/`, `components/chat/`, `components/panels/` or `components/characters/` ships with no strings. ## Suggested fix 1. Add the missing entries to `packages/*/src/engine/packages/client/src/localization/locales/en.json`, or better, make the build fail when a bundled `ui.*` key has no catalog entry. The check is cheap — extract `"ui.*"` literals from the built bundle and diff against the catalog. That is exactly how these were found, and it would have caught all 24 at build time. 2. Collapse the fragmented review-modal sentence into whole-sentence keys with `{{count}}`. ## Reproduction Enable **Review image prompts before sending**, generate a post with an image, in either Noodle or Slurp. The modal shows key names instead of text. ## Affects Both packages, all recent versions. Reported against Slurp; confirmed present in Noodle from the same evidence.
bsakaguchi 2026-10-20 17:26:45 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Gunterlie commented on GitHub (Sep 1, 2026):

Fix opened as draft #683.

<!-- gh-comment-id:5492761372 --> @Gunterlie commented on GitHub (Sep 1, 2026): Fix opened as draft #683.
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-Agents#349
No description provided.