From 80489af57b94790a5ae67956658cdc9cb1a1043f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:30:29 -0500 Subject: [PATCH 1/2] feat(automation): add enterprise feature check and user guidance (#2131) Co-authored-by: Tofik Hasanov --- .../actions/task-automation-actions.ts | 5 ++- .../automation/[automationId]/page.tsx | 33 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/automation/[automationId]/actions/task-automation-actions.ts b/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/automation/[automationId]/actions/task-automation-actions.ts index 40100081b..19097ed6c 100644 --- a/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/automation/[automationId]/actions/task-automation-actions.ts +++ b/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/automation/[automationId]/actions/task-automation-actions.ts @@ -34,7 +34,10 @@ function getEnterpriseConfig() { const enterpriseApiKey = process.env.ENTERPRISE_API_SECRET; if (!enterpriseApiKey) { - throw new Error('Not authorized to access enterprise API'); + throw new EnterpriseApiError( + 'Task automations require an enterprise license. Please contact sales@trycomp.ai to learn more.', + 403, + ); } return { enterpriseApiUrl, enterpriseApiKey }; diff --git a/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/automation/[automationId]/page.tsx b/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/automation/[automationId]/page.tsx index 03b122f87..b4a178599 100644 --- a/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/automation/[automationId]/page.tsx +++ b/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/automation/[automationId]/page.tsx @@ -1,4 +1,6 @@ import { db } from '@db'; +import { ArrowLeft, Lock } from 'lucide-react'; +import Link from 'next/link'; import { redirect } from 'next/navigation'; import { loadChatHistory } from './actions/task-automation-actions'; import { AutomationLayoutWrapper } from './automation-layout-wrapper'; @@ -23,6 +25,37 @@ export default async function Page({ redirect('/tasks'); } + // Check if enterprise API is configured + if (!process.env.ENTERPRISE_API_SECRET) { + return ( +
+
+
+ +
+

Enterprise Feature

+

+ Task automations require an enterprise license. Contact{' '} + + sales@trycomp.ai + {' '} + to learn more about enabling this feature. +

+ + + Back to task + +
+
+ ); + } + const taskName = task.title; // Load chat history server-side (skip for ephemeral 'new' automations) From 43809195c1410129bb0bbf39521d9dc20c16f258 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:32:42 -0500 Subject: [PATCH 2/2] style(SingleTask): change text wrapping from break-all to break-words (#2132) Co-authored-by: Tofik Hasanov Co-authored-by: Tofik Hasanov <72318342+tofikwest@users.noreply.github.com> --- .../app/(app)/[orgId]/tasks/[taskId]/components/SingleTask.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/components/SingleTask.tsx b/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/components/SingleTask.tsx index 58aabc9c4..f33f507a0 100644 --- a/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/components/SingleTask.tsx +++ b/apps/app/src/app/(app)/[orgId]/tasks/[taskId]/components/SingleTask.tsx @@ -362,7 +362,7 @@ export function SingleTask({ {task.description && ( -

+

{task.description}

)}