@@ -30,7 +30,7 @@ import {
3030import Animated , { runOnJS , useAnimatedStyle } from "react-native-reanimated" ;
3131import { useVoiceRecording } from "@/features/chat" ;
3232import { usePreferencesStore } from "@/features/preferences/stores/preferencesStore" ;
33- import { createTask , runTaskInCloud } from "@/features/tasks/api" ;
33+ import { runTaskInCloud } from "@/features/tasks/api" ;
3434import { GitHubConnectionPrompt } from "@/features/tasks/components/GitHubConnectionPrompt" ;
3535import { GitHubLoadNotice } from "@/features/tasks/components/GitHubLoadNotice" ;
3636import { AttachmentSheet } from "@/features/tasks/composer/attachments/AttachmentSheet" ;
@@ -80,6 +80,7 @@ import {
8080} from "@/features/tasks/utils/repositorySelection" ;
8181import { useScreenInsets } from "@/hooks/useScreenInsets" ;
8282import { logger } from "@/lib/logger" ;
83+ import { getPostHogApiClient } from "@/lib/posthogApiClient" ;
8384import { toRgba , useThemeColors } from "@/lib/theme" ;
8485
8586const log = logger . scope ( "task-create" ) ;
@@ -308,7 +309,7 @@ export default function NewTaskScreen() {
308309 ? `Attached: ${ attachments [ 0 ] . fileName } `
309310 : `Attached ${ attachments . length } files` ) ;
310311
311- const task = await createTask ( {
312+ const task = await getPostHogApiClient ( ) . createTask ( {
312313 description : descriptionText ,
313314 title : descriptionText . slice ( 0 , 100 ) ,
314315 repository : selection . repository ?? undefined ,
0 commit comments