huskies: merge 1059

This commit is contained in:
dave
2026-05-14 19:04:29 +00:00
parent 7d7e02f7b0
commit 6d53382f8c
6 changed files with 121 additions and 4 deletions
@@ -24,6 +24,9 @@ export const STATUS_COLORS: Record<AgentStatusValue, string> = {
* them again inside the markdown body creates duplicate information.
*/
export function stripDisplayContent(content: string): string {
// Guard: content may be undefined/null at runtime if the server response is
// missing the field (e.g. a tombstoned story returns an error object).
if (!content) return "";
let text = content;
// Strip YAML front matter (--- ... ---)
if (text.startsWith("---")) {