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 16:42:31 +00:00
committed by GitHub
parent 0ad4656489
commit e63df58adc
3 changed files with 5 additions and 5 deletions
+2 -2
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",
+2 -2
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",
+1 -1
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");
}