diff --git a/.vscode/buster.code-workspace b/.vscode/buster.code-workspace index 162400a94..689cebe60 100644 --- a/.vscode/buster.code-workspace +++ b/.vscode/buster.code-workspace @@ -1,23 +1,23 @@ { "folders": [ - { "path": "./apps/api" }, - { "path": "./apps/electric-server" }, - { "path": "./apps/server" }, - { "path": "./apps/trigger" }, - { "path": "./apps/web" }, - { "path": "./packages/access-controls" }, - { "path": "./packages/ai" }, - { "path": "./packages/data-source" }, - { "path": "./packages/database" }, - { "path": "./packages/rerank" }, - { "path": "./packages/server-shared" }, - { "path": "./packages/slack" }, - { "path": "./packages/stored-values" }, - { "path": "./packages/supabase" }, - { "path": "./packages/test-utils" }, - { "path": "./packages/typescript-config" }, - { "path": "./packages/vitest-config" }, - { "path": "./packages/web-tools" } + { "path": "../apps/api" }, + { "path": "../apps/electric-server" }, + { "path": "../apps/server" }, + { "path": "../apps/trigger" }, + { "path": "../apps/web" }, + { "path": "../packages/access-controls" }, + { "path": "../packages/ai" }, + { "path": "../packages/data-source" }, + { "path": "../packages/database" }, + { "path": "../packages/rerank" }, + { "path": "../packages/server-shared" }, + { "path": "../packages/slack" }, + { "path": "../packages/stored-values" }, + { "path": "../packages/supabase" }, + { "path": "../packages/test-utils" }, + { "path": "../packages/typescript-config" }, + { "path": "../packages/vitest-config" }, + { "path": "../packages/web-tools" } ], "settings": { "editor.defaultFormatter": "biomejs.biome", diff --git a/apps/web/src/api/buster_rest/chats/requestsV2.ts b/apps/web/src/api/buster_rest/chats/requestsV2.ts index 33546f28d..acb8811ae 100644 --- a/apps/web/src/api/buster_rest/chats/requestsV2.ts +++ b/apps/web/src/api/buster_rest/chats/requestsV2.ts @@ -6,5 +6,5 @@ export const createNewChat = async (props: ChatCreateRequest) => { }; export const stopChat = async ({ chatId }: { chatId: string }) => { - return mainApiV2.patch(`/chats/${chatId}`, { stop: true }).then((res) => res.data); + return mainApiV2.delete(`/chats/${chatId}/cancel`).then((res) => res.data); }; diff --git a/apps/web/src/components/ui/inputs/InputTextAreaButton.tsx b/apps/web/src/components/ui/inputs/InputTextAreaButton.tsx index b293f417d..8fe8cb60c 100644 --- a/apps/web/src/components/ui/inputs/InputTextAreaButton.tsx +++ b/apps/web/src/components/ui/inputs/InputTextAreaButton.tsx @@ -108,29 +108,25 @@ const SubmitButton: React.FC<{ onSubmitPreflight: () => void; onStop?: () => void; }> = React.memo(({ disabled, sendIcon, loading, loadingIcon, onSubmitPreflight, onStop }) => { - const memoizedPrefix = useMemo(() => { - return ( + const prefix = ( +
-
- {sendIcon} -
-
- {loadingIcon} -
+ className={`absolute inset-0 transition-all duration-300 ease-out ${loading ? 'scale-80 opacity-0' : 'scale-100 opacity-100'}`}> + {sendIcon}
- ); - }, [loading, sendIcon, loadingIcon]); +
+ {loadingIcon} +
+
+ ); return (