Skip to content

[BUG] Prompts editor: Save button doesn’t activate on edit; requires two clicks to persist #5780

@beccare

Description

@beccare

Type

Bug

Problem / Value

Editing any prompt in Settings → Prompts does not activate the Save button. Users must click once to “wake” the button and then click again to persist changes, leading to confusion and accidental loss of edits.

Context

  • App: 3.23.12
  • Provider: OpenRouter
  • Model: any
  • Area: Settings → Prompts (textarea edits)

Reproduction

  1. Open Settings → Prompts
  2. Edit any prompt in the textarea
  3. Observe the Save button remains faded/inactive
  4. Click Save once → button appears active, but changes are not saved
  5. Click Save again → changes persist
  6. Navigate away and back to confirm actual save behavior

Expected

Save button activates immediately on content change and a single click persists the change.

Actual

Save button remains inactive after edit and requires two clicks to persist changes (first to activate, second to save).

Acceptance Criteria

  • Save button enables on any prompt textarea change (e.g., input/change event)
  • A single click saves the updated prompt
  • Navigating away and back shows the saved content without extra clicks
  • No regressions for other settings inputs

Notes

Consider debounced change handling if needed, but ensure clear enabled/disabled state tied to content diffs.

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions