Update assistant
to agent
in settings and keymaps (#29943)
Closes #ISSUE Release Notes: - Agent Beta: Renamed the top-level `assistant` settings key to `agent`. A migration for existing settings files is included. - Agent Beta: Moved the `assistant::ToggleFocus`, `assistant::ToggleModelSelector`, and `assistant::OpenRulesLibrary` actions to the `agent` namespace. Existing keymaps that mention these actions by their old names will continue to work. --------- Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
34e10e4e56
commit
bdd911f89e
17 changed files with 191 additions and 58 deletions
|
@ -258,7 +258,7 @@ impl ContextEditor {
|
|||
|
||||
let show_edit_predictions = all_language_settings(None, cx)
|
||||
.edit_predictions
|
||||
.enabled_in_assistant;
|
||||
.enabled_in_text_threads;
|
||||
|
||||
editor.set_show_edit_predictions(Some(show_edit_predictions), window, cx);
|
||||
|
||||
|
@ -333,7 +333,7 @@ impl ContextEditor {
|
|||
self.editor.update(cx, |editor, cx| {
|
||||
let show_edit_predictions = all_language_settings(None, cx)
|
||||
.edit_predictions
|
||||
.enabled_in_assistant;
|
||||
.enabled_in_text_threads;
|
||||
|
||||
editor.set_show_edit_predictions(Some(show_edit_predictions), window, cx);
|
||||
});
|
||||
|
@ -1406,7 +1406,7 @@ impl ContextEditor {
|
|||
None,
|
||||
),
|
||||
Role::Assistant => {
|
||||
let base_label = Label::new("Assistant").color(Color::Info);
|
||||
let base_label = Label::new("Agent").color(Color::Info);
|
||||
let mut spinner = None;
|
||||
let mut note = None;
|
||||
let animated_label = if llm_loading {
|
||||
|
@ -1468,7 +1468,7 @@ impl ContextEditor {
|
|||
Tooltip::with_meta(
|
||||
"Toggle message role",
|
||||
None,
|
||||
"Available roles: You (User), Assistant, System",
|
||||
"Available roles: You (User), Agent, System",
|
||||
window,
|
||||
cx,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue