[GH-ISSUE #8] Custom Prompt Selection Not Working Correctly #6

Open
opened 2026-10-15 13:26:26 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @stars-blue2081 on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/SillyTavern/Extension-Objective/issues/8

Originally assigned to: @Cohee1207 on GitHub.

Description

There are two related UI/functionality issues when working with custom prompts:

  1. UI Display Issue:

    • When clicking "Edit Prompt", the recently made Custom Prompt appears
    • However, the default prompts are shown instead of the custom ones
    • Temporary fix: Switching between default and custom prompt fixes the display
  2. Prompt Injection Issue:

    • The default Injected Prompt is being used instead of the custom one
    • Default Injected Prompt being sent: "Your current task is [{{task}}]. Balance existing roleplay with completing this task."
    • The custom Injected Prompt is not being used despite being selected from "Edit Prompt"

Expected Behavior

  • The selected custom prompt's Injected Prompt should be used instead of the default one

Current Behavior

  • When tapping on the "Save Prompt", the button looks like this:
    Screenshot_20241218_114211_Chrome
  • UI shows wrong prompts initially but fixes itself when switching between default/custom
  • Task placeholders work correctly
  • Default Injected Prompt is being sent instead of the custom one (confirmed via Prompt Inspector and cmd window)
Originally created by @stars-blue2081 on GitHub (Dec 18, 2024). Original GitHub issue: https://github.com/SillyTavern/Extension-Objective/issues/8 Originally assigned to: @Cohee1207 on GitHub. ## Description There are two related UI/functionality issues when working with custom prompts: 1. **UI Display Issue:** - When clicking "Edit Prompt", the recently made Custom Prompt appears - *However,* the default prompts are shown instead of the custom ones - Temporary fix: Switching between default and custom prompt fixes the display 2. **Prompt Injection Issue:** - The default Injected Prompt is being used instead of the custom one - Default Injected Prompt being sent: `"Your current task is [{{task}}]. Balance existing roleplay with completing this task."` - The custom Injected Prompt is not being used despite being selected from "Edit Prompt" ## Expected Behavior - The selected custom prompt's Injected Prompt should be used instead of the default one ## Current Behavior - When tapping on the "Save Prompt", the button looks like this: ![Screenshot_20241218_114211_Chrome](https://github.com/user-attachments/assets/2d1d3e94-f669-4804-80a0-c723f461c922) - UI shows wrong prompts initially but fixes itself when switching between default/custom - Task placeholders work correctly - Default Injected Prompt is being sent instead of the custom one (confirmed via Prompt Inspector and cmd window)
Author
Owner

@Cohee1207 commented on GitHub (Dec 21, 2024):

Confirmed, this part was in a rather broken state, I tried my best to make sense of it.

  1. Made the prompts actually restore from the metadata on load.
  2. The selection of the custom prompt set now persists per-chat.
  3. "Save Prompt" renamed to "Update Prompt" to better reflect what it does.
  4. Fixed edits to custom prompts not persisting upon page reload.
  5. Slightly redesigned the editor popup with more 'logical' layout.
<!-- gh-comment-id:2558253752 --> @Cohee1207 commented on GitHub (Dec 21, 2024): Confirmed, this part was in a rather broken state, I tried my best to make sense of it. 1. Made the prompts actually restore from the metadata on load. 2. The selection of the custom prompt set now persists per-chat. 3. "Save Prompt" renamed to "Update Prompt" to better reflect what it does. 4. Fixed edits to custom prompts not persisting upon page reload. 5. Slightly redesigned the editor popup with more 'logical' layout.
Sign in to join this conversation.
No labels
pull-request
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
SillyTavern/Extension-Objective#6
No description provided.