Skip to content

: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.

fix(desktop): preserve billing CTA for usage limits (#87790)

Adam Bowker9d91cfa94d3a
diff --git a/products/desktop/packages/ui/src/features/task-detail/hooks/useTaskCreation.ts b/products/desktop/packages/ui/src/features/task-detail/hooks/useTaskCreation.ts
index 29457dcefa1b..17cafd434cf7 100644
--- a/products/desktop/packages/ui/src/features/task-detail/hooks/useTaskCreation.ts
+++ b/products/desktop/packages/ui/src/features/task-detail/hooks/useTaskCreation.ts
@@ -540,7 +540,7 @@ export function useTaskCreation({
});
// Usage-limit blocks already show the upgrade modal; don't also toast an error.
if (isUsageLimitResult(result)) {
- useUsageLimitStore.getState().show();
+ useUsageLimitStore.getState().show({ cause: "org_limit" });
log.warn("Cloud task creation blocked by usage limit");
} else {
const title = getErrorTitle(result.failedStep);