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.

feat(inbox): Casual report summaries + line breaks in markdown (#65942)

Michael Matloka98cba066f3f2
diff --git a/frontend/jest.config.ts b/frontend/jest.config.ts
index 44fdb8c25ac8..538ede2d888f 100644
--- a/frontend/jest.config.ts
+++ b/frontend/jest.config.ts
@@ -181,6 +181,7 @@ const config: Config = {
'^lib/(.*)$': '<rootDir>/src/lib/$1',
'^react-markdown$': '<rootDir>/src/test/mocks/reactMarkdownMock.js',
'^remark-gfm$': '<rootDir>/src/test/mocks/emptyMock.js',
+ '^remark-breaks$': '<rootDir>/src/test/mocks/emptyMock.js',
'^mdast-util-find-and-replace$': '<rootDir>/src/test/mocks/emptyMock.js',
'^chart\\.js$': '<rootDir>/src/test/insight-testing/chartjs-mock',
'chartjs-plugin-crosshair': '<rootDir>/src/test/mocks/emptyMock.js',
diff --git a/frontend/package.json b/frontend/package.json
index 798378cd8ee6..b8222ab8962c 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -254,6 +254,7 @@
"react-toastify": "^10.0.0",
"react-virtualized-auto-sizer": "^2.0.2",
"react-window": "^2.2.5",
+ "remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.0",
"rrule": "^2.8.1",
"simple-statistics": "^7.8.8",
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index fda2bf428495..6f51ca81fe36 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -6753,13 +6753,13 @@ snapshots:
scenes-app-user-interviews-transcript-chat--assistant-and-interviewee--light:
hash: v1.k794b7964.ac9dcafd733b4669abdf4346ec886d2be3caf9551f690ae7c887c370569b0599.VMuLrQmjU8gBA61lvpyk7360NR4I2T5uwGxV52mhhbk
scenes-app-user-interviews-transcript-chat--fallback-leading-prose--dark:
- hash: v1.k794b7964.c04bd79bbd7bc6fd9119c0a8cf704e3293afe3474e62a37e94660db8ad2f26d7.IWZ1amZiK34rBHG7N6lHaHL8_a1eNHucou_vpih4x4c
+ hash: v1.k794b7964.14d999440bd0534fddb1594c6cca4c83be620172cf4e73532323e5e9d9fcb79e.0D8yitzde-9uSKVq7B0oZ8H04Gp0cbKQgpNh84oOboE
scenes-app-user-interviews-transcript-chat--fallback-leading-prose--light:
- hash: v1.k794b7964.a3c00f1579375ee60f28231aff6bc45f9f80780f9409d1f27aa4449e3f37a1a5.1N2j25UzfJ-Ib9tPPbQJX3PVv0oMzRJ1BNll-RfB0H0
+ hash: v1.k794b7964.45aa691bf6bd88979c4fe00a5a1381ba7486e7f282200d580f23ab5db894c8fc.FDDJmiMZLGXHjWdo0iy2P7OhhDwRw_73ZgSMN6eqj70
scenes-app-user-interviews-transcript-chat--fallback-no-speaker-markers--dark:
- hash: v1.k794b7964.2da863960282263c55425bdc6bb744dc5627586836eb6ecc921855a34a514e1d.SXUwzmnrsfqf6tNE8F_hrfQrjpojiiojwlxRdC5RMWA
+ hash: v1.k794b7964.ebc49cb74d51832166e4185904b3deb8580a9ceb5b5a9f91013f4291bba09e61.Pf6zhvTj8w8pcDpKbeBHgR0jEZD3HwuJYJAvitPN5gY
scenes-app-user-interviews-transcript-chat--fallback-no-speaker-markers--light:
- hash: v1.k794b7964.dc2f9e817ce3bc81003424482bf60a0e5bda85a1e464de66fe18b99e823a91b6.7x1RHD4I7Qlm51wxgSUKMq8hUJAMP7_wJwFUppG0cpo
+ hash: v1.k794b7964.65f30a61359af52c95b5bfd1b9a7ebb1333bb5401a4c5d89c1bd4063aeb078f3.33BpNCWr_Wg5AyoS0-PGNhf4RrqLSydxOHP7dtcqLng
scenes-app-user-interviews-transcript-chat--identifier-only--dark:
hash: v1.k794b7964.cbe2c32f613a77a4c12c6ed5f879eec9018cb9f13f9fa598e53debebb8233876.CNGKBKjA2KejougKMqUdL0XywZqwUUhK2hCaU4jzBco
scenes-app-user-interviews-transcript-chat--identifier-only--light:
diff --git a/frontend/src/lib/lemon-ui/LemonMarkdown/LemonMarkdown.tsx b/frontend/src/lib/lemon-ui/LemonMarkdown/LemonMarkdown.tsx
index 93f1d00a73f1..7fbe29517639 100644
--- a/frontend/src/lib/lemon-ui/LemonMarkdown/LemonMarkdown.tsx
+++ b/frontend/src/lib/lemon-ui/LemonMarkdown/LemonMarkdown.tsx
@@ -3,6 +3,7 @@ import './LemonMarkdown.scss'
import clsx from 'clsx'
import React, { memo, useMemo } from 'react'
import ReactMarkdown from 'react-markdown'
+import remarkBreaks from 'remark-breaks'
import remarkGfm from 'remark-gfm'
import { CodeSnippet, getLanguage, Language } from 'lib/components/CodeSnippet'
@@ -202,9 +203,12 @@ const LemonMarkdownRenderer = memo(function LemonMarkdownRenderer({
[disableDocsRedirect, disableImages, lowKeyHeadings, wrapCode, generateHeadingIds, renderMermaid]
)
+ // remark-breaks: a single newline becomes a line break, so prose authored without the arcane
+ // two-trailing-spaces hard-break rule (e.g. agent-written report summaries) renders with the
+ // line breaks the author intended.
return (
/* eslint-disable-next-line react/forbid-elements */
- <ReactMarkdown components={components} remarkPlugins={[remarkGfm, remarkMentions]} skipHtml>
+ <ReactMarkdown components={components} remarkPlugins={[remarkGfm, remarkBreaks, remarkMentions]} skipHtml>
{children}
</ReactMarkdown>
)
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2913751fb572..c5d2de1f3f66 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -308,7 +308,7 @@ importers:
version: 3.12.1
jest:
specifier: 'catalog:'
+ version: 29.7.0(@types/[email protected])
oxfmt:
specifier: 'catalog:'
version: 0.35.0
@@ -363,7 +363,7 @@ importers:
version: 0.25.12
jest:
specifier: ^29.7.0
+ version: 29.7.0
puppeteer:
specifier: 19.0.0
version: 19.0.0([email protected])
@@ -391,7 +391,7 @@ importers:
version: 29.5.14
jest:
specifier: ^29.7.0
+ version: 29.7.0
common/storybook:
dependencies:
@@ -1158,6 +1158,9 @@ importers:
react-window:
specifier: ^2.2.5
+ remark-breaks:
+ specifier: ^4.0.0
+ version: 4.0.0
remark-gfm:
specifier: ^4.0.0
version: 4.0.1
@@ -1851,7 +1854,7 @@ importers:
'@storybook/test-runner':
specifier: ^0.19.1
'@storybook/theming':
specifier: ^8.6.14
@@ -1872,7 +1875,7 @@ importers:
jest-image-snapshot:
specifier: ^6.4.0
+ version: 6.4.0([email protected](@types/[email protected]))
storybook:
specifier: ^8.6.14
version: 8.6.18([email protected])
@@ -1985,19 +1988,19 @@ importers:
version: 18.3.7(@types/[email protected])
'@vitejs/plugin-react':
specifier: ^5.1.1
jest:
specifier: ^29.7.0
+ version: 29.7.0(@types/[email protected])
typescript:
specifier: 6.0.3
version: 6.0.3
vite:
specifier: ^6.3.5
vite-plugin-dts:
specifier: ^4.5.4
packages/quill/packages/components:
dependencies:
@@ -2841,7 +2844,7 @@ importers:
version: 14.6.1(@testing-library/[email protected])
jest:
specifier: ^29.7.0
+ version: 29.7.0
kea-test-utils:
specifier: 'catalog:'
@@ -2961,7 +2964,7 @@ importers:
version: 14.6.1(@testing-library/[email protected])
jest:
specifier: ^29.7.0
+ version: 29.7.0
products/data_modeling:
dependencies:
@@ -3536,7 +3539,7 @@ importers:
version: 3.1.3
jest:
specifier: '*'
+ version: 29.7.0
kea:
specifier: 'catalog:'
version: 4.0.0-pre.5([email protected])
@@ -18231,6 +18234,9 @@ packages:
resolution: {integrity: sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==}
+ resolution: {integrity: sha512-MbgeFca0hLYIEx/2zGsszCSEJJ1JSCdiY5xQxRcLDDGa8EPvlLPupJ4DSajbMPAnC0je8jfb9TiUATnxxrHUog==}
+
resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==}
@@ -20660,6 +20666,9 @@ packages:
resolution: {integrity: sha512-gUAyHVHPPC5wdqX/LG4LWtRYtgjxyX78oanFNTMMyFEfOqdC54s3eE82imuWKbOeqYht2CrNf64Qb8vgmmtZGA==}
engines: {node: '>=4'}
+ resolution: {integrity: sha512-IjEjJOkH4FuJvHZVIW0QCDWxcG96kCq7An/KVH2NfJe6rKZU2AsHeB3OEjPNRxi4QC34Xdx7I2KGYn6IpT7gxQ==}
+
resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}
@@ -27249,41 +27258,6 @@ snapshots:
- supports-color
- ts-node
- dependencies:
- '@jest/console': 29.7.0
- '@jest/reporters': 29.7.0
- '@jest/test-result': 29.7.0
- '@jest/transform': 29.7.0
- '@jest/types': 29.6.3
- '@types/node': 22.18.8
- ansi-escapes: 4.3.2
- chalk: 4.1.2
- ci-info: 3.8.0
- exit: 0.1.2
- graceful-fs: 4.2.11
- jest-changed-files: 29.7.0
- jest-haste-map: 29.7.0
- jest-message-util: 29.7.0
- jest-regex-util: 29.6.3
- jest-resolve: 29.7.0
- jest-resolve-dependencies: 29.7.0
- jest-runner: 29.7.0
- jest-runtime: 29.7.0
- jest-snapshot: 29.7.0
- jest-util: 29.7.0
- jest-validate: 29.7.0
- jest-watcher: 29.7.0
- micromatch: 4.0.8
- pretty-format: 29.7.0
- slash: 3.0.0
- strip-ansi: 6.0.1
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
- - ts-node
-
dependencies:
'@jest/console': 29.7.0
@@ -27319,41 +27293,6 @@ snapshots:
- supports-color
- ts-node
- dependencies:
- '@jest/console': 29.7.0
- '@jest/reporters': 29.7.0
- '@jest/test-result': 29.7.0
- '@jest/transform': 29.7.0
- '@jest/types': 29.6.3
- '@types/node': 22.18.8
- ansi-escapes: 4.3.2
- chalk: 4.1.2
- ci-info: 3.8.0
- exit: 0.1.2
- graceful-fs: 4.2.11
- jest-changed-files: 29.7.0
- jest-haste-map: 29.7.0
- jest-message-util: 29.7.0
- jest-regex-util: 29.6.3
- jest-resolve: 29.7.0
- jest-resolve-dependencies: 29.7.0
- jest-runner: 29.7.0
- jest-runtime: 29.7.0
- jest-snapshot: 29.7.0
- jest-util: 29.7.0
- jest-validate: 29.7.0
- jest-watcher: 29.7.0
- micromatch: 4.0.8
- pretty-format: 29.7.0
- slash: 3.0.0
- strip-ansi: 6.0.1
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
- - ts-node
-
dependencies:
'@jest/console': 30.0.5
@@ -28101,14 +28040,6 @@ snapshots:
transitivePeerDependencies:
- '@types/react'
- '@microsoft/[email protected](@types/[email protected])':
- dependencies:
- '@microsoft/tsdoc': 0.16.0
- '@microsoft/tsdoc-config': 0.18.1
- '@rushstack/node-core-library': 5.21.0(@types/[email protected])
- transitivePeerDependencies:
- - '@types/node'
-
'@microsoft/[email protected](@types/[email protected])':
dependencies:
'@microsoft/tsdoc': 0.16.0
@@ -28117,25 +28048,6 @@ snapshots:
transitivePeerDependencies:
- '@types/node'
- '@microsoft/[email protected](@types/[email protected])':
- dependencies:
- '@microsoft/api-extractor-model': 7.33.5(@types/[email protected])
- '@microsoft/tsdoc': 0.16.0
- '@microsoft/tsdoc-config': 0.18.1
- '@rushstack/node-core-library': 5.21.0(@types/[email protected])
- '@rushstack/rig-package': 0.7.2
- '@rushstack/terminal': 0.22.4(@types/[email protected])
- '@rushstack/ts-command-line': 5.3.4(@types/[email protected])
- diff: 8.0.4
- lodash: 4.18.1
- minimatch: 10.2.3
- resolve: 1.22.8
- semver: 7.5.4
- source-map: 0.6.1
- typescript: 6.0.3
- transitivePeerDependencies:
- - '@types/node'
-
'@microsoft/[email protected](@types/[email protected])':
dependencies:
'@microsoft/api-extractor-model': 7.33.5(@types/[email protected])
@@ -30817,19 +30729,6 @@ snapshots:
'@rollup/[email protected]':
optional: true
- '@rushstack/[email protected](@types/[email protected])':
- dependencies:
- ajv: 8.18.0
- ajv-draft-04: 1.0.0([email protected])
- ajv-formats: 3.0.1([email protected])
- fs-extra: 11.3.5
- import-lazy: 4.0.0
- jju: 1.4.0
- resolve: 1.22.8
- semver: 7.5.4
- optionalDependencies:
- '@types/node': 22.18.8
-
'@rushstack/[email protected](@types/[email protected])':
dependencies:
ajv: 8.18.0
@@ -30843,10 +30742,6 @@ snapshots:
optionalDependencies:
'@types/node': 25.8.0
- '@rushstack/[email protected](@types/[email protected])':
- optionalDependencies:
- '@types/node': 22.18.8
-
'@rushstack/[email protected](@types/[email protected])':
optionalDependencies:
'@types/node': 25.8.0
@@ -30856,14 +30751,6 @@ snapshots:
resolve: 1.22.8
strip-json-comments: 3.1.1
- '@rushstack/[email protected](@types/[email protected])':
- dependencies:
- '@rushstack/node-core-library': 5.21.0(@types/[email protected])
- '@rushstack/problem-matcher': 0.2.1(@types/[email protected])
- supports-color: 8.1.1
- optionalDependencies:
- '@types/node': 22.18.8
-
'@rushstack/[email protected](@types/[email protected])':
dependencies:
'@rushstack/node-core-library': 5.21.0(@types/[email protected])
@@ -30872,15 +30759,6 @@ snapshots:
optionalDependencies:
'@types/node': 25.8.0
- '@rushstack/[email protected](@types/[email protected])':
- dependencies:
- '@rushstack/terminal': 0.22.4(@types/[email protected])
- '@types/argparse': 1.0.38
- argparse: 1.0.10
- string-argv: 0.3.2
- transitivePeerDependencies:
- - '@types/node'
-
'@rushstack/[email protected](@types/[email protected])':
dependencies:
'@rushstack/terminal': 0.22.4(@types/[email protected])
@@ -31908,7 +31786,7 @@ snapshots:
prettier: 3.6.2
storybook: 8.6.18([email protected])
dependencies:
'@babel/core': 7.29.0
'@babel/generator': 7.29.1
@@ -31922,14 +31800,14 @@ snapshots:
'@swc/core': 1.15.18
'@swc/jest': 0.2.37(@swc/[email protected])
expect-playwright: 0.8.0
+ jest: 29.7.0(@types/[email protected])
jest-circus: 29.7.0
jest-environment-node: 29.7.0
jest-junit: 16.0.0
jest-runner: 29.7.0
jest-serializer-html: 7.1.0
+ jest-watch-typeahead: 2.2.2([email protected](@types/[email protected]))
nyc: 15.1.0
playwright: 1.60.0
transitivePeerDependencies:
@@ -33962,18 +33840,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@babel/core': 7.29.0
- '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/[email protected])
- '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/[email protected])
- '@rolldown/pluginutils': 1.0.0-rc.3
- '@types/babel__core': 7.20.5
- react-refresh: 0.18.0
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@babel/core': 7.29.0
@@ -35733,13 +35599,13 @@ snapshots:
- supports-color
- ts-node
dependencies:
'@jest/types': 29.6.3
chalk: 4.1.2
exit: 0.1.2
graceful-fs: 4.2.11
+ jest-config: 29.7.0(@types/[email protected])
jest-util: 29.7.0
prompts: 2.4.2
transitivePeerDependencies:
@@ -35763,13 +35629,13 @@ snapshots:
- supports-color
- ts-node
dependencies:
'@jest/types': 29.6.3
chalk: 4.1.2
exit: 0.1.2
graceful-fs: 4.2.11
+ jest-config: 29.7.0(@types/[email protected])
jest-util: 29.7.0
prompts: 2.4.2
transitivePeerDependencies:
@@ -38991,16 +38857,16 @@ snapshots:
- supports-color
- ts-node
dependencies:
+ '@jest/core': 29.7.0
'@jest/test-result': 29.7.0
'@jest/types': 29.6.3
chalk: 4.1.2
+ create-jest: 29.7.0(@types/[email protected])
exit: 0.1.2
import-local: 3.2.0
+ jest-config: 29.7.0(@types/[email protected])
jest-util: 29.7.0
jest-validate: 29.7.0
yargs: 17.7.2
@@ -39029,16 +38895,16 @@ snapshots:
- supports-color
- ts-node
dependencies:
+ '@jest/core': 29.7.0
'@jest/test-result': 29.7.0
'@jest/types': 29.6.3
chalk: 4.1.2
+ create-jest: 29.7.0(@types/[email protected])
exit: 0.1.2
import-local: 3.2.0
+ jest-config: 29.7.0(@types/[email protected])
jest-util: 29.7.0
jest-validate: 29.7.0
yargs: 17.7.2
@@ -39178,37 +39044,6 @@ snapshots:
- babel-plugin-macros
- supports-color
- dependencies:
- '@babel/core': 7.29.0
- '@jest/test-sequencer': 29.7.0
- '@jest/types': 29.6.3
- babel-jest: 29.7.0(@babel/[email protected])
- chalk: 4.1.2
- ci-info: 3.8.0
- deepmerge: 4.3.1
- glob: 7.2.3
- graceful-fs: 4.2.11
- jest-circus: 29.7.0
- jest-environment-node: 29.7.0
- jest-get-type: 29.6.3
- jest-regex-util: 29.6.3
- jest-resolve: 29.7.0
- jest-runner: 29.7.0
- jest-util: 29.7.0
- jest-validate: 29.7.0
- micromatch: 4.0.8
- parse-json: 5.2.0
- pretty-format: 29.7.0
- slash: 3.0.0
- strip-json-comments: 3.1.1
- optionalDependencies:
- '@types/node': 22.18.8
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
-
dependencies:
'@babel/core': 7.29.0
@@ -39240,38 +39075,7 @@ snapshots:
- babel-plugin-macros
- supports-color
- dependencies:
- '@babel/core': 7.29.0
- '@jest/test-sequencer': 29.7.0
- '@jest/types': 29.6.3
- babel-jest: 29.7.0(@babel/[email protected])
- chalk: 4.1.2
- ci-info: 3.8.0
- deepmerge: 4.3.1
- glob: 7.2.3
- graceful-fs: 4.2.11
- jest-circus: 29.7.0
- jest-environment-node: 29.7.0
- jest-get-type: 29.6.3
- jest-regex-util: 29.6.3
- jest-resolve: 29.7.0
- jest-runner: 29.7.0
- jest-util: 29.7.0
- jest-validate: 29.7.0
- micromatch: 4.0.8
- parse-json: 5.2.0
- pretty-format: 29.7.0
- slash: 3.0.0
- strip-json-comments: 3.1.1
- optionalDependencies:
- '@types/node': 22.18.8
- transitivePeerDependencies:
- - babel-plugin-macros
- - supports-color
-
dependencies:
'@babel/core': 7.29.0
'@jest/test-sequencer': 29.7.0
@@ -39297,7 +39101,6 @@ snapshots:
strip-json-comments: 3.1.1
optionalDependencies:
'@types/node': 25.8.0
transitivePeerDependencies:
- babel-plugin-macros
- supports-color
@@ -39602,7 +39405,7 @@ snapshots:
optionalDependencies:
dependencies:
chalk: 4.1.2
get-stdin: 5.0.1
@@ -39613,7 +39416,7 @@ snapshots:
rimraf: 2.7.1
ssim.js: 3.5.0
optionalDependencies:
+ jest: 29.7.0(@types/[email protected])
dependencies:
@@ -39759,10 +39562,10 @@ snapshots:
'@types/node': 22.18.8
jest-util: 30.0.5
dependencies:
expect-playwright: 0.8.0
+ jest: 29.7.0(@types/[email protected])
jest-circus: 29.7.0
jest-environment-node: 29.7.0
jest-process-manager: 0.4.0
@@ -40198,11 +40001,11 @@ snapshots:
leven: 3.1.0
pretty-format: 30.0.5
dependencies:
ansi-escapes: 6.0.0
chalk: 5.6.2
+ jest: 29.7.0(@types/[email protected])
jest-regex-util: 29.6.3
jest-watcher: 29.7.0
slash: 5.1.0
@@ -40297,12 +40100,12 @@ snapshots:
- supports-color
- ts-node
dependencies:
+ '@jest/core': 29.7.0
'@jest/types': 29.6.3
import-local: 3.2.0
+ jest-cli: 29.7.0(@types/[email protected])
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
@@ -40321,12 +40124,12 @@ snapshots:
- supports-color
- ts-node
dependencies:
+ '@jest/core': 29.7.0
'@jest/types': 29.6.3
import-local: 3.2.0
+ jest-cli: 29.7.0(@types/[email protected])
transitivePeerDependencies:
- '@types/node'
- babel-plugin-macros
@@ -41300,6 +41103,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ '@types/mdast': 4.0.4
+ mdast-util-find-and-replace: 3.0.2
+
dependencies:
'@types/mdast': 4.0.4
@@ -44390,6 +44198,12 @@ snapshots:
dependencies:
es6-error: 4.1.1
+ dependencies:
+ '@types/mdast': 4.0.4
+ mdast-util-newline-to-break: 2.0.0
+ unified: 11.0.5
+
dependencies:
'@types/mdast': 4.0.4
@@ -46005,27 +45819,6 @@ snapshots:
tslib: 2.8.1
typescript: 6.0.3
- dependencies:
- '@cspotcode/source-map-support': 0.8.1
- '@tsconfig/node10': 1.0.9
- '@tsconfig/node12': 1.0.11
- '@tsconfig/node14': 1.0.3
- '@tsconfig/node16': 1.0.3
- '@types/node': 22.18.8
- acorn: 8.15.0
- acorn-walk: 8.3.2
- arg: 4.1.3
- create-require: 1.1.1
- diff: 4.0.2
- make-error: 1.3.6
- typescript: 6.0.3
- v8-compile-cache-lib: 3.0.1
- yn: 3.1.1
- optionalDependencies:
- '@swc/core': 1.11.4
- optional: true
-
dependencies:
'@cspotcode/source-map-support': 0.8.1
@@ -46624,25 +46417,6 @@ snapshots:
- tsx
- yaml
- dependencies:
- '@microsoft/api-extractor': 7.58.1(@types/[email protected])
- '@rollup/pluginutils': 5.3.0([email protected])
- '@volar/typescript': 2.4.28
- '@vue/language-core': 2.2.0([email protected])
- compare-versions: 6.1.1
- debug: 4.4.3
- kolorist: 1.8.0
- local-pkg: 1.1.2
- magic-string: 0.30.21
- typescript: 6.0.3
- optionalDependencies:
- transitivePeerDependencies:
- - '@types/node'
- - rollup
- - supports-color
-
dependencies:
'@microsoft/api-extractor': 7.58.1(@types/[email protected])
@@ -46718,26 +46492,6 @@ snapshots:
sass-embedded: 1.70.0
terser: 5.46.0
- dependencies:
- esbuild: 0.25.12
- fdir: 6.5.0([email protected])
- picomatch: 4.0.4
- postcss: 8.5.15
- rollup: 4.60.4
- tinyglobby: 0.2.16
- optionalDependencies:
- '@types/node': 22.18.8
- fsevents: 2.3.3
- jiti: 2.6.1
- less: 4.2.2
- lightningcss: 1.32.0
- sass: 1.56.0
- sass-embedded: 1.70.0
- terser: 5.46.0
- tsx: 4.20.5
- yaml: 2.9.0
-
dependencies:
esbuild: 0.25.12
diff --git a/products/signals/backend/report_generation/research.py b/products/signals/backend/report_generation/research.py
index 1d7ed32bf865..58145fd69e6e 100644
--- a/products/signals/backend/report_generation/research.py
+++ b/products/signals/backend/report_generation/research.py
@@ -61,16 +61,23 @@ If the report already has a title that is PR-specific and still accurate after y
)
summary: str = Field(
description="""
-An Axios-style summary in four brief paragraphs:
-- A one-sentence "why it matters" tl;dr of the report. Ideally start with "Users …", explaining how users are being impacted, how many, or how important they are. If users aren't impacted, but the team building the product is, describe that. Otherwise, just describe what's going on.
-- '**What's happening:** …' - a brief description of the concrete facts, expanding on the tl;dr sentence. Reference specific signals, errors, metrics, or patterns. Use available tools to do research here like a product manager would.
-- '**Root cause:** …' - dig as deep as you can into the root cause of the issue, and explain it in plain terms. Use concrete references to problematic APIs or UI elements, so that the engineer familiar with the code understands this.
-- '**How to resolve:** …' - a single, concrete action plan for the code-level fix that addresses the root cause directly and resolves the symptom described in **What's happening** (not merely an adjacent issue). Skip if the report is not actionable.
-
-Principles:
-- Be direct and specific. Every sentence must carry information.
-- No filler phrases ("various issues detected", "it's worth noting").
-- Bold the section labels exactly as shown above.
+Write this the way a sharp colleague would explain it to you – first person, plain Silicon Valley English, direct and easy to read. Approachable and a little casual, never robotic or bureaucratic. The prose inside each section should read like a person talking, not a status report.
+
+The bar to clear: if someone dropped this report (or the PR) on you and said nothing else, this summary alone should make you get it – what's wrong, why it's worth caring about, and what the fix is. They don't need the line-by-line (the code diff is right there); they need the high-level rationale and the gist of the change.
+
+Give it light structure so a busy reader can scan it, three short sections under H2 headings:
+- '## Problem' – what's actually going wrong. Name the real culprit (the specific API, component, query, or behavior) in plain terms an engineer who knows this code will immediately recognize.
+- '## Impact' – who it hurts and how much: users (how many, how badly, how important), or, if it's not users, the team building the product. Lead with the thing that matters.
+- '## Solution' – what you'd do about it: the shape of the fix, not a spec. Omit this section entirely if the report isn't actionable.
+
+Within each section write a sentence or two of natural, flowing prose, not bullet soup. Bold the few phrases a reader should catch at a glance (the core symptom, the key number, the root cause, the proposed change) so it's scannable without becoming a wall of labels. Don't over-bold: if everything's bold, nothing is.
+
+Hard rules:
+- Everything must be factual, grounded in what you actually researched and what has actually happened. Never invent, never speculate as if it were fact. If something's a hypothesis, say so plainly.
+- Be specific. Reference the concrete signals, errors, metrics, or code paths you found; vagueness reads as not having done the work.
+- No filler ("various issues detected", "it's worth noting", "in conclusion").
+- Never use em dashes (—). Use an en dash (–) where you'd otherwise reach for a dash.
+- Separate sections and paragraphs with blank lines; you don't need any special line-break syntax.
"""
)