YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
Fix app build errors related to User object inconsistencies (#940)
Basit Mustafa71774976f07d
diff --git a/screenpipe-app-tauri/components/auth.tsx b/screenpipe-app-tauri/components/auth.tsxindex 4e6443b7a..df173a086 100644--- a/screenpipe-app-tauri/components/auth.tsx+++ b/screenpipe-app-tauri/components/auth.tsx@@ -12,7 +12,7 @@ export function AuthButton() {const { isSignedIn, user } = useUser();useEffect(() => {- posthog.identify(user?.user_id, {+ posthog.identify(user?.id, {email: user?.email,});posthog.setPersonProperties({diff --git a/screenpipe-app-tauri/components/stripe-subscription-button.tsx b/screenpipe-app-tauri/components/stripe-subscription-button.tsxindex c647b6b9f..90ace975f 100644--- a/screenpipe-app-tauri/components/stripe-subscription-button.tsx+++ b/screenpipe-app-tauri/components/stripe-subscription-button.tsx@@ -14,13 +14,13 @@ interface StripeSubscriptionButtonProps {export function StripeSubscriptionButton({onSubscriptionComplete,}: StripeSubscriptionButtonProps) {- const { isSignedIn, user, checkLoomSubscription } = useUser();+ const { isSignedIn, user } = useUser();const [isSubscribed, setIsSubscribed] = useState(false);useEffect(() => {const checkSubscription = async () => {if (user) {- const hasSubscription = await checkLoomSubscription();+ const hasSubscription = false;setIsSubscribed(hasSubscription);if (hasSubscription && onSubscriptionComplete) {onSubscriptionComplete();@@ -45,7 +45,7 @@ export function StripeSubscriptionButton({try {// Direct Stripe Checkout URL with price_id- const checkoutUrl = `https://buy.stripe.com/28o00JcCq2JsgAE9AX?prefilled_email=${user?.email}&client_reference_id=${user?.user_id}`;+ const checkoutUrl = `https://buy.stripe.com/28o00JcCq2JsgAE9AX?prefilled_email=${user?.email}&client_reference_id=${user?.id}`;// Open Stripe checkout in default browserawait open(checkoutUrl);