assistant2: Rename key context to AgentPanel (#27859)

This PR renames the key context for the Agent Panel from
"AssistantPanel2" to "AgentPanel".

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-04-01 12:42:31 -04:00 committed by GitHub
parent 0ad4656489
commit e63df58adc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -625,7 +625,7 @@
}
},
{
"context": "AssistantPanel2",
"context": "AgentPanel",
"bindings": {
"ctrl-n": "assistant2::NewThread",
"new": "assistant2::NewThread",
@ -640,7 +640,7 @@
}
},
{
"context": "AssistantPanel2 && prompt_editor",
"context": "AgentPanel && prompt_editor",
"use_key_equivalents": true,
"bindings": {
"cmd-n": "assistant2::NewPromptEditor",

View file

@ -277,7 +277,7 @@
}
},
{
"context": "AssistantPanel2",
"context": "AgentPanel",
"use_key_equivalents": true,
"bindings": {
"cmd-n": "assistant2::NewThread",
@ -292,7 +292,7 @@
}
},
{
"context": "AssistantPanel2 && prompt_editor",
"context": "AgentPanel && prompt_editor",
"use_key_equivalents": true,
"bindings": {
"cmd-n": "assistant2::NewPromptEditor",

View file

@ -1182,7 +1182,7 @@ impl AssistantPanel {
fn key_context(&self) -> KeyContext {
let mut key_context = KeyContext::new_with_defaults();
key_context.add("AssistantPanel2");
key_context.add("AgentPanel");
if matches!(self.active_view, ActiveView::PromptEditor) {
key_context.add("prompt_editor");
}