Commit 2b054e95ff73

Vincent Demeester <vincent@sbr.pm>
2026-02-10 14:16:53
fix(pi): jira-recent now displays issue summaries in table
Fixed [object Object] display issue by formatting recent issues as a markdown table with key and summary columns.
1 parent 1eee208
Changed files (1)
dots
pi
agent
extensions
dots/pi/agent/extensions/jira/index.ts
@@ -922,10 +922,21 @@ export default function (pi: ExtensionAPI) {
 				return;
 			}
 
-			const message =
-				`Recent Jira issues:\n` + recentIssues.map((key, i) => `${i + 1}. ${key}`).join("\n");
+			const lines = ["## ๐Ÿ•’ Recent Issues"];
+			lines.push("");
+			lines.push("| # | Key | Summary |");
+			lines.push("|---|-----|---------|");
+			
+			recentIssues.forEach((issue, i) => {
+				const summary = truncate(issue.summary, 80);
+				lines.push(`| ${i + 1} | ${issue.key} | ${summary} |`);
+			});
 
-			ctx.ui.notify(message, "info");
+			pi.sendMessage({
+				customType: "jira-recent",
+				content: lines.join("\n"),
+				display: true,
+			});
 		},
 	});