fix(slack): preserve completed native progress titles

This commit is contained in:
Vincent Koc
2026-06-17 11:06:18 +08:00
parent 27c8fae1ce
commit 975d2e9b2b
2 changed files with 1 additions and 2 deletions

View File

@@ -372,7 +372,6 @@ describe("native Slack progress stream chunks", () => {
kind: "command-output",
icon: "🛠️",
label: "Bash",
detail: "completed",
status: "completed",
text: "🛠️ completed",
toolName: "bash",

View File

@@ -80,7 +80,7 @@ function legacyLineDetail(line: ChannelProgressDraftLine, maxChars: number): str
function lineTaskTitle(line: ChannelProgressDraftLine, maxLineChars: number): string {
const label = line.label.replace(/\s+/g, " ").trim() || line.toolName || line.kind || "Update";
const detail = lineDetailParts(line).join(" · ");
const detail = lineDetailParts(line).join(" · ") || line.status?.trim();
const fallback = line.text.replace(/\s+/g, " ").trim();
if (detail) {
return compactTitle(`${label}${compactDetail(detail, maxLineChars)}`);