@@ -12,7 +12,6 @@ import type {
1212 TaskGroup ,
1313} from "@posthog/core/sidebar/sidebarData.types" ;
1414import { MenuLabel } from "@posthog/quill" ;
15- import { getFileName } from "@posthog/shared" ;
1615import { builderHog } from "@posthog/ui/assets/hedgehogs" ;
1716import { useFolders } from "@posthog/ui/features/folders/useFolders" ;
1817import { useSettingsStore } from "@posthog/ui/features/settings/settingsStore" ;
@@ -92,32 +91,10 @@ function TaskRow({
9291 depth ?: number ;
9392} ) {
9493 const workspace = useWorkspace ( task . id ) ;
95- const { folders } = useFolders ( ) ;
9694 const effectiveMode =
9795 workspace ?. mode ??
9896 ( task . taskRunEnvironment === "cloud" ? "cloud" : undefined ) ;
9997
100- // Chip identifying the checkout the task runs in: app-managed worktrees
101- // (worktree mode) and local tasks whose registered folder is itself a
102- // linked worktree of the group's main clone.
103- const worktreeCheckout = useMemo ( ( ) => {
104- if ( workspace ?. worktreePath ) {
105- return {
106- name : workspace . worktreeName ?? getFileName ( workspace . worktreePath ) ,
107- path : workspace . worktreePath ,
108- } ;
109- }
110- if ( workspace ?. mode === "local" && workspace . folderPath ) {
111- const folder = folders . find ( ( f ) => f . path === workspace . folderPath ) ;
112- if ( folder ?. mainRepoPath ) {
113- return {
114- name : getFileName ( workspace . folderPath ) ,
115- path : workspace . folderPath ,
116- } ;
117- }
118- }
119- return null ;
120- } , [ workspace , folders ] ) ;
12198 const { prState, hasDiff } = useTaskPrStatus ( task ) ;
12299 const isArchiving = useArchivingTasksStore ( ( s ) =>
123100 s . archivingTaskIds . has ( task . id ) ,
@@ -134,8 +111,6 @@ function TaskRow({
134111 hideHoverActions = { hideHoverActions }
135112 isEditing = { isEditing }
136113 workspaceMode = { effectiveMode }
137- worktreeName = { worktreeCheckout ?. name }
138- worktreePath = { worktreeCheckout ?. path }
139114 isSuspended = { task . isSuspended }
140115 isGenerating = { task . isGenerating }
141116 isUnread = { task . isUnread }
0 commit comments