mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-07 02:22:46 +00:00
fix(slack): preserve completed native progress titles
This commit is contained in:
@@ -372,7 +372,6 @@ describe("native Slack progress stream chunks", () => {
|
||||
kind: "command-output",
|
||||
icon: "🛠️",
|
||||
label: "Bash",
|
||||
detail: "completed",
|
||||
status: "completed",
|
||||
text: "🛠️ completed",
|
||||
toolName: "bash",
|
||||
|
||||
@@ -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)}`);
|
||||
|
||||
Reference in New Issue
Block a user