From cd22335838c5afa8b37dadf943d1f9c56c1ca998 Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Thu, 16 Jul 2026 20:34:42 +0200 Subject: [PATCH] feat(custom-chips): AI entry point + friendly auth error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 'Create with AI' button in CustomChipDialog dispatches the generic velxio:agent-prompt window event (no-op without a listener — the pro overlay's chat panel picks it up and prefills the composer). - chipCompileService maps the hosted deployment's 401 gate to a human 'sign in to compile custom chips' message instead of a raw status line. Self-hosted OSS keeps the route open and never sees either. --- .../components/customChips/CustomChipDialog.tsx | 17 +++++++++++++++++ frontend/src/services/chipCompileService.ts | 6 +++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/customChips/CustomChipDialog.tsx b/frontend/src/components/customChips/CustomChipDialog.tsx index c9140e21..b4acb91b 100644 --- a/frontend/src/components/customChips/CustomChipDialog.tsx +++ b/frontend/src/components/customChips/CustomChipDialog.tsx @@ -283,6 +283,23 @@ export const CustomChipDialog = ({ initial, onClose, onSave }: CustomChipDialogP {compiling ? t('editor.customChip.compiling') : t('editor.customChip.compile')} )} +