: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(desktop): worktree row falls back to slug, not description (#98005)
Paul D'Ambra70ee02989a36
diff --git a/products/desktop/packages/shared/src/domain-types.ts b/products/desktop/packages/shared/src/domain-types.tsindex 1c5137dbb525..718c7716b20f 100644--- a/products/desktop/packages/shared/src/domain-types.ts+++ b/products/desktop/packages/shared/src/domain-types.ts@@ -76,6 +76,9 @@ export interface Task {title: string;title_manually_set?: boolean;description: string;+ // First characters of the description, present instead of the full body when the+ // list was fetched with basic=true. Absent on the full and single-task responses.+ description_preview?: string;created_at: string;updated_at: string;/**diff --git a/products/desktop/packages/ui/src/features/settings/sections/worktrees/WorktreeRow.tsx b/products/desktop/packages/ui/src/features/settings/sections/worktrees/WorktreeRow.tsxindex 2e7556dadb25..9d5f2e6c88ad 100644--- a/products/desktop/packages/ui/src/features/settings/sections/worktrees/WorktreeRow.tsx+++ b/products/desktop/packages/ui/src/features/settings/sections/worktrees/WorktreeRow.tsx@@ -14,7 +14,15 @@ export interface WorktreeEntry {}function getTaskTitle(task: Task): string {- return task.title || task.description?.slice(0, 50) || task.id;+ // The sidebar task list is fetched with basic=true, which omits the full+ // description, so prefer description_preview, then the full description+ // (present on non-basic responses), and finally the id.+ return (+ task.title ||+ task.description_preview?.slice(0, 50) ||+ task.description?.slice(0, 50) ||+ task.id+ );}interface WorktreeRowProps {