mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
UI tweaks on skills popup. (#8250)
Only display the skill name (not the folder), and truncate the skill description to a maximum of two lines.
This commit is contained in:
committed by
GitHub
Unverified
parent
6c76d17713
commit
dcc01198e2
@@ -15,6 +15,7 @@ const SYSTEM_SKILLS_DIR: Dir =
|
||||
const SYSTEM_SKILLS_DIR_NAME: &str = ".system";
|
||||
const SKILLS_DIR_NAME: &str = "skills";
|
||||
const SYSTEM_SKILLS_MARKER_FILENAME: &str = ".codex-system-skills.marker";
|
||||
const SYSTEM_SKILLS_MARKER_SALT: &str = "v1";
|
||||
|
||||
/// Returns the on-disk cache location for embedded system skills.
|
||||
///
|
||||
@@ -103,6 +104,7 @@ fn embedded_system_skills_fingerprint() -> String {
|
||||
items.sort_unstable_by(|(a, _), (b, _)| a.cmp(b));
|
||||
|
||||
let mut hasher = DefaultHasher::new();
|
||||
SYSTEM_SKILLS_MARKER_SALT.hash(&mut hasher);
|
||||
for (path, contents_hash) in items {
|
||||
path.hash(&mut hasher);
|
||||
contents_hash.hash(&mut hasher);
|
||||
|
||||
Reference in New Issue
Block a user