Roo-Code/webview-ui/src/context
Chris Hasson 54edab571a
Fix the save/discard/revert flow for Prompt Settings (#4623)
Add support for the save/discard flow for support prompt setting page

Normally when you edit things on the settings pages, the save button lights up,
allowing you to discard your changes. Currently the prompts page doesn't support this flow-
the prompts are immediately saved when they change.

With this change, we use the normal cachedState system in the SettingView, allowing users to dicard changes to their prompts like any other setting.
This removed the need for the resetSupportPrompt event since we send the entire state of the support prompts (same as before).

Test plan:
* Manually verified prompts can be saved/discarded for different types of support prompts.
2025-06-14 10:36:14 -04:00
..
__tests__ feat: Enhance apply_diff with XML for multi-file/multi-diff operations & batch UI (#3342) 2025-06-12 12:36:34 -04:00
ExtensionStateContext.tsx Fix the save/discard/revert flow for Prompt Settings (#4623) 2025-06-14 10:36:14 -04:00