design(chat): hide verbose command args for dev server and shell tools to keep UI clean

This commit is contained in:
2026-06-11 17:14:15 -07:00
parent 180c55ee89
commit e240481ba6

View File

@@ -711,9 +711,14 @@ function TimelineToolGroup({
const isDone = e.status === "done"; const isDone = e.status === "done";
let argSummary = ""; let argSummary = "";
if (e.args) { if (
e.args &&
!e.name.includes("dev_server_start") &&
!e.name.includes("dev.server.start") &&
!e.name.includes("shell_exec") &&
!e.name.includes("shell.exec")
) {
if (e.args.path) argSummary = String(e.args.path); if (e.args.path) argSummary = String(e.args.path);
else if (e.args.command) argSummary = String(e.args.command);
else if (e.args.url) else if (e.args.url)
argSummary = String(e.args.url).replace(/^https?:\/\//, ""); argSummary = String(e.args.url).replace(/^https?:\/\//, "");
else if (e.args.name) argSummary = String(e.args.name); else if (e.args.name) argSummary = String(e.args.name);