From 6d2af28dffb08cdad65e0d3dc3db68652a30b8c0 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Thu, 30 Apr 2026 11:22:09 +0200 Subject: [PATCH 1/7] feat(inbox): Show failed reports --- .../components/detail/ReportDetailPane.tsx | 37 +++++++++++++++++++ .../inbox/components/list/FilterSortMenu.tsx | 1 + .../inbox/stores/inboxSignalsFilterStore.ts | 1 + 3 files changed, 39 insertions(+) diff --git a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx index fde806a44..5ecb46cf0 100644 --- a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx +++ b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx @@ -15,6 +15,7 @@ import { XIcon, } from "@phosphor-icons/react"; import { Box, Flex, ScrollArea, Text, Tooltip } from "@radix-ui/themes"; +import { EXTERNAL_LINKS } from "@renderer/utils/links"; import { getDeeplinkProtocol } from "@shared/deeplink"; import type { ActionabilityJudgmentArtefact, @@ -294,6 +295,42 @@ export function ReportDetailPane({ report, onClose }: ReportDetailPaneProps) { gap="2" className="min-w-0 @2xl:px-6 @3xl:px-8 @4xl:px-10 @5xl:px-12 @lg:px-4 @md:px-3 @xl:px-5 px-2 @2xl:pt-3 @3xl:pt-4 @4xl:pt-5 @5xl:pt-6 @lg:pt-2 @md:pt-1.5 @xl:pt-2.5 pt-1 @2xl:pb-6 @3xl:pb-8 @4xl:pb-10 @5xl:pb-12 @lg:pb-4 @md:pb-3 @xl:pb-5 pb-2" > + {/* ── Failed report error ──────────────────────────── */} + {report.status === "failed" && ( + + + + + Report processing failed + + + There was an issue processing this report. This has been + reported to the PostHog Code team. +
+ To get in touch with the team directly,{" "} + + join our Discord + + . +
+
+
+ )} + {/* ── Description ─────────────────────────────────────── */} {report.status !== "ready" ? ( diff --git a/apps/code/src/renderer/features/inbox/components/list/FilterSortMenu.tsx b/apps/code/src/renderer/features/inbox/components/list/FilterSortMenu.tsx index 225280aa2..e383772de 100644 --- a/apps/code/src/renderer/features/inbox/components/list/FilterSortMenu.tsx +++ b/apps/code/src/renderer/features/inbox/components/list/FilterSortMenu.tsx @@ -70,6 +70,7 @@ const FILTERABLE_STATUSES: SignalReportStatus[] = [ "ready", "pending_input", "in_progress", + "failed", "candidate", "potential", ]; diff --git a/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.ts b/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.ts index 624deb407..c53c4c9e5 100644 --- a/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.ts +++ b/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.ts @@ -25,6 +25,7 @@ const DEFAULT_STATUS_FILTER: SignalReportStatus[] = [ "ready", "pending_input", "in_progress", + "failed", "candidate", "potential", ]; From 9bce9e1d51ce6bbc7d72f416d8fac85cdbe64eb7 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Thu, 30 Apr 2026 10:39:30 +0100 Subject: [PATCH 2/7] Update apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../features/inbox/components/detail/ReportDetailPane.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx index 5ecb46cf0..ded6a73eb 100644 --- a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx +++ b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx @@ -321,10 +321,9 @@ export function ReportDetailPane({ report, onClose }: ReportDetailPaneProps) { - join our Discord - . From db6225e6494b00b3eb7a80f4450b4c9e1649f5a3 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Thu, 30 Apr 2026 10:39:37 +0100 Subject: [PATCH 3/7] Update apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../features/inbox/components/detail/ReportDetailPane.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx index ded6a73eb..85567114c 100644 --- a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx +++ b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx @@ -302,7 +302,7 @@ export function ReportDetailPane({ report, onClose }: ReportDetailPaneProps) { gap="2" px="2" py="2" - className="user-select-none rounded-sm border border-red-6 bg-red-2" + className="select-none rounded-sm border border-red-6 bg-red-2" > Date: Thu, 30 Apr 2026 10:40:21 +0100 Subject: [PATCH 4/7] Omit "PostHog Code" from team --- .../features/inbox/components/detail/ReportDetailPane.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx index 85567114c..5dc4e17f5 100644 --- a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx +++ b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx @@ -315,7 +315,7 @@ export function ReportDetailPane({ report, onClose }: ReportDetailPaneProps) { There was an issue processing this report. This has been - reported to the PostHog Code team. + reported to the team.
To get in touch with the team directly,{" "} Date: Thu, 30 Apr 2026 10:40:45 +0100 Subject: [PATCH 5/7] "our" --- .../features/inbox/components/detail/ReportDetailPane.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx index 5dc4e17f5..9f73a6c28 100644 --- a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx +++ b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx @@ -315,7 +315,7 @@ export function ReportDetailPane({ report, onClose }: ReportDetailPaneProps) {
There was an issue processing this report. This has been - reported to the team. + reported to our team.
To get in touch with the team directly,{" "}
Date: Thu, 30 Apr 2026 12:37:30 +0200 Subject: [PATCH 6/7] fix(ci): restore Discord link JSX and satisfy noBannedTypes - Close failed-report Discord anchor with visible label text - Use Record instead of {} for ArtifactTransfer default --- .../features/inbox/components/detail/ReportDetailPane.tsx | 2 ++ packages/agent/src/handoff-checkpoint.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx index 9f73a6c28..a44521b79 100644 --- a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx +++ b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx @@ -324,6 +324,8 @@ export function ReportDetailPane({ report, onClose }: ReportDetailPaneProps) { rel="noreferrer" className="text-(--red-9) underline hover:text-(--red-11)" > + Discord + . diff --git a/packages/agent/src/handoff-checkpoint.ts b/packages/agent/src/handoff-checkpoint.ts index cc0abd067..8ef36e7f2 100644 --- a/packages/agent/src/handoff-checkpoint.ts +++ b/packages/agent/src/handoff-checkpoint.ts @@ -18,7 +18,7 @@ export interface HandoffCheckpointTrackerConfig { logger?: Logger; } -type ArtifactTransfer = T & { +type ArtifactTransfer> = T & { rawBytes: number; wireBytes: number; }; From 27be87e3f79ada4ef2c7a30f242156d8be3d5d29 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Thu, 30 Apr 2026 12:48:12 +0200 Subject: [PATCH 7/7] fix: align inbox filter tests with failed default; repair Discord link tag - DEFAULT_STATUS_FILTER includes failed; update test expectations and beforeEach - Restore opening tag that was truncated in ReportDetailPane --- .../features/inbox/components/detail/ReportDetailPane.tsx | 2 +- .../features/inbox/stores/inboxSignalsFilterStore.test.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx index a44521b79..a6bf1908b 100644 --- a/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx +++ b/apps/code/src/renderer/features/inbox/components/detail/ReportDetailPane.tsx @@ -324,7 +324,7 @@ export function ReportDetailPane({ report, onClose }: ReportDetailPaneProps) { rel="noreferrer" className="text-(--red-9) underline hover:text-(--red-11)" > - Discord + join our Discord . diff --git a/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.test.ts b/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.test.ts index f48727f6d..00693aa44 100644 --- a/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.test.ts +++ b/apps/code/src/renderer/features/inbox/stores/inboxSignalsFilterStore.test.ts @@ -12,6 +12,7 @@ describe("inboxSignalsFilterStore", () => { "ready", "pending_input", "in_progress", + "failed", "candidate", "potential", ], @@ -29,6 +30,7 @@ describe("inboxSignalsFilterStore", () => { "ready", "pending_input", "in_progress", + "failed", "candidate", "potential", ]); @@ -119,6 +121,7 @@ describe("inboxSignalsFilterStore", () => { "ready", "pending_input", "in_progress", + "failed", "candidate", "potential", ]);