: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): mobile land new tasks directly on their chat (#96008)
Tom Owers0e582505b9c1
diff --git a/products/desktop/apps/mobile/src/app/task/index.tsx b/products/desktop/apps/mobile/src/app/task/index.tsxindex 3c262f3652df..c49c8deded96 100644--- a/products/desktop/apps/mobile/src/app/task/index.tsx+++ b/products/desktop/apps/mobile/src/app/task/index.tsx@@ -297,9 +297,9 @@ export default function NewTaskScreen() {setAt: Date.now(),});- // Durably record the prompt so it survives the app being killed before- // creation completes; cleared once the task exists (or on failure, when- // the text is still live in the composer).+ // Durably record the prompt so it survives the app being killed. Cleared+ // once the task exists; kept on failure so the next launch can restore+ // the draft into the composer.if (trimmedPrompt) {pendingPromptRecoveryStoreApi.set(pendingKey, trimmedPrompt);}@@ -385,7 +385,6 @@ export default function NewTaskScreen() {} catch (creationError) {log.error("Failed to create task", creationError);pendingTaskPromptStoreApi.clear(currentPendingKey);- pendingPromptRecoveryStoreApi.clear(pendingKey);} finally {setCreating(false);}