Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(posthog-ai): stop /ticket bodies carrying two summary headings (#79696)

Christiaan Hendriksenacab270703d0
diff --git a/frontend/src/scenes/max/ticketUtils.test.ts b/frontend/src/scenes/max/ticketUtils.test.ts
index 61d16f584b16..2f07c62225de 100644
--- a/frontend/src/scenes/max/ticketUtils.test.ts
+++ b/frontend/src/scenes/max/ticketUtils.test.ts
@@ -68,7 +68,7 @@ describe('ticketUtils', () => {
'note leads with summary attached',
'It still repros in prod',
SUMMARY,
- `It still repros in prod\n\n----\nPostHog AI's analysis:\n${SUMMARY}`,
+ `It still repros in prod\n\n----\n${SUMMARY}`,
],
['summary alone when note is empty', '', SUMMARY, SUMMARY],
['summary alone when note is whitespace', ' ', SUMMARY, SUMMARY],
diff --git a/frontend/src/scenes/max/ticketUtils.ts b/frontend/src/scenes/max/ticketUtils.ts
index 4b90417b43a2..355de8a30f71 100644
--- a/frontend/src/scenes/max/ticketUtils.ts
+++ b/frontend/src/scenes/max/ticketUtils.ts
@@ -145,7 +145,7 @@ export function getTicketSummaryData(
export function composeTicketBody({ note, summary }: { note: string; summary?: string }): string {
const trimmedNote = note.trim()
if (summary) {
- return trimmedNote ? `${trimmedNote}\n\n----\nPostHog AI's analysis:\n${summary}` : summary
+ return trimmedNote ? `${trimmedNote}\n\n----\n${summary}` : summary
}
return trimmedNote
}