mirror of
https://github.com/openai/codex.git
synced 2026-11-25 07:23:22 +00:00
sort plugins first in menu (#14163)
we want plugin mentions to show up before others, like apps and skills. updated tests.
This commit is contained in:
1 parent
aa04ea6bd7
commit
a3cd9f16f5
3 files changed
+19
-13
No files matched your search
@@ -3580,6 +3580,7 @@ impl ChatComposer {
|
||||
search_terms,
|
||||
path: Some(skill.path_to_skills_md.to_string_lossy().into_owned()),
|
||||
category_tag: Some("[Skill]".to_string()),
|
||||
sort_rank: 1,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -3631,6 +3632,7 @@ impl ChatComposer {
|
||||
search_terms,
|
||||
path: Some(format!("plugin://{}", plugin.config_name)),
|
||||
category_tag: Some("[Plugin]".to_string()),
|
||||
sort_rank: 0,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -3654,6 +3656,7 @@ impl ChatComposer {
|
||||
search_terms,
|
||||
path: Some(format!("app://{connector_id}")),
|
||||
category_tag: Some("[App]".to_string()),
|
||||
sort_rank: 1,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user