From 2726c213836c19eb897d8d7eac90c75955fe223e Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Tue, 7 Jul 2026 01:07:49 -0700 Subject: [PATCH] feat(display): show file_path in skill_view tool progress lines (#60079) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When skill_view loads a supporting file (references/, scripts/, templates/) instead of the main SKILL.md, the CLI quiet-mode line and the friendly tool labels now show 'name → file_path' so it's clear which file was actually read. --- agent/display.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/agent/display.py b/agent/display.py index 060ac1266fa..5a16a77d00d 100644 --- a/agent/display.py +++ b/agent/display.py @@ -515,6 +515,16 @@ def build_tool_preview(tool_name: str, args: dict, max_len: int | None = None) - msg = msg[:17] + "..." return f"to {target}: \"{msg}\"" + if tool_name == "skill_view": + name = _oneline(str(args.get("name") or "")) + file_path = args.get("file_path") + if file_path: + file_path = _oneline(str(file_path)) + preview = f"{name} → {file_path}" if name else file_path + else: + preview = name + return _truncate_preview(preview, max_len) if preview else None + key = primary_args.get(tool_name) if not key: for fallback_key in ("query", "text", "command", "path", "name", "prompt", "code", "goal"): @@ -1384,7 +1394,11 @@ def get_cute_tool_message( if tool_name == "skills_list": return _wrap(f"┊ 📚 skills list {args.get('category', 'all')} {dur}") if tool_name == "skill_view": - return _wrap(f"┊ 📚 skill {_trunc(args.get('name', ''), 30)} {dur}") + label = args.get("name", "") + file_path = args.get("file_path") + if file_path: + label = f"{label} → {file_path}" if label else str(file_path) + return _wrap(f"┊ 📚 skill {_trunc(label, 44)} {dur}") if tool_name == "image_generate": return _wrap(f"┊ 🎨 create {_trunc(args.get('prompt', ''), 35)} {dur}") if tool_name == "text_to_speech":