huskies: merge 1059
This commit is contained in:
@@ -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("---")) {
|
||||
|
||||
Reference in New Issue
Block a user