Add hidden prompt_to_focus field to OpenPromptLibrary action (#29062)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-04-18 14:39:40 -06:00 committed by GitHub
parent 327fee4d22
commit 73a767fc45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 60 additions and 18 deletions

View file

@ -13,3 +13,4 @@ gpui.workspace = true
schemars.workspace = true
serde.workspace = true
workspace-hack.workspace = true
uuid.workspace = true

View file

@ -190,13 +190,21 @@ pub mod agent {
}
pub mod assistant {
use gpui::{action_with_deprecated_aliases, actions, impl_actions};
use gpui::{actions, impl_action_with_deprecated_aliases, impl_actions};
use schemars::JsonSchema;
use serde::Deserialize;
use uuid::Uuid;
actions!(assistant, [ToggleFocus, ShowConfiguration]);
action_with_deprecated_aliases!(
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema)]
#[serde(deny_unknown_fields)]
pub struct OpenPromptLibrary {
#[serde(skip)]
pub prompt_to_focus: Option<Uuid>,
}
impl_action_with_deprecated_aliases!(
assistant,
OpenPromptLibrary,
["assistant::DeployPromptLibrary"]