Skip to content

[Bug] Edit Prompt Fails When Template Field Is Empty #591

@rakdutta

Description

@rakdutta

Summary:

When editing a prompt and leaving the template field empty, clicking Save Changes does nothing. No error message is displayed to the user, but a validation error is shown in the browser console.

🔁 Steps to Reproduce

Navigate Global Prompts.

Fill in the following fields:

Name: summary_prompt

Description: System status summary

Leave the Template field empty.

Click Save Changes to create the prompt.

Now click the Edit button for the newly added prompt.

Modify any of the following:

Name, Description, or Template

Click Save Changes again.

⚠️ Actual Result
No updates are saved.

No validation message appears on the screen.

Inspecting the browser console shows this error:

Image

`

✅ Expected Result
The UI should show a proper validation error indicating that the template field is required.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions