mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #22748] issue: Uncaught (in promise) ReferenceError: idx is not defined in InputVariablesModal.svelte
#58475
Reference in New Issue
Block a user
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 @silentoplayz on GitHub (Mar 17, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22748
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
v0.18.0
Operating System
Ubuntu 24.04.4 LTS
Browser (if applicable)
Mozilla Firefox Snap for Ubuntu v148.0.2 (64-bit) / Google Chrome v146.0.7680.80 (Official Build) (64-bit)
Confirmation
README.md.Expected Behavior
When selecting a custom prompt (using the
/trigger) that contains prompt variables (e.g.,{{variable_name}}), a modal should appear allowing the user to fill in these variables. The modal should load the input fields and allow the user to save them to populate the chat input.Actual Behavior
When the "Input Variables" modal appears, it displays a perpetual loading spinner/animation. The input fields never appear, and the browser console throws a
ReferenceError: idx is not definedinsidesrc/lib/components/chat/MessageInput/InputVariablesModal.svelte. This prevents the user from using any prompts that require variable input.Steps to Reproduce
Hello {{name}})./and select the custom prompt.ReferenceError: idx is not defined.Logs & Screenshots
Browser Console Error:
Screenshot of Infinite Loading:

Additional Information
src/lib/components/chat/MessageInput/InputVariablesModal.svelte, likely within theinitfunction or a surrounding reactive block.@tjbck commented on GitHub (Mar 22, 2026):
Should be addressed in dev.
@silentoplayz commented on GitHub (Mar 22, 2026):
This is still an issue on the latest
devbranch for me.@silentoplayz commented on GitHub (Mar 22, 2026):
https://github.com/user-attachments/assets/a0cdeac6-7fd6-4840-8b61-38e41fad7523
@silentoplayz commented on GitHub (Mar 22, 2026):
It looks like the
0dcd6ac983commit on the dev branch has solved the issue! I'm closing out this issue report now. Thanks @tjbck! 🍻