🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: fix image prompt form (#9995)
Coooolfan799e6fd0fd8a
diff --git a/src/app/[variants]/(main)/image/features/PromptInput/index.tsx b/src/app/[variants]/(main)/image/features/PromptInput/index.tsxindex 32fdb753861..16dd6e0258c 100644--- a/src/app/[variants]/(main)/image/features/PromptInput/index.tsx+++ b/src/app/[variants]/(main)/image/features/PromptInput/index.tsx@@ -73,7 +73,7 @@ const PromptInput = ({ showTitle = false }: PromptInputProps) => {};const handleKeyDown = (e: KeyboardEvent<HTMLTextAreaElement>) => {- if (e.key === 'Enter' && !e.shiftKey) {+ if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) {e.preventDefault();if (!isCreating && value.trim()) {handleGenerate();diff --git a/src/libs/trpc/lambda/context.ts b/src/libs/trpc/lambda/context.tsindex dd1daf5517f..8d6f3085c91 100644--- a/src/libs/trpc/lambda/context.ts+++ b/src/libs/trpc/lambda/context.ts@@ -80,7 +80,10 @@ export const createLambdaContext = async (request: NextRequest): Promise<LambdaCconst isMockUser = process.env.ENABLE_MOCK_DEV_USER === '1';if (process.env.NODE_ENV === 'development' && (isDebugApi || isMockUser)) {- return { userId: process.env.MOCK_DEV_USER_ID };+ return {+ authorizationHeader: request.headers.get(LOBE_CHAT_AUTH_HEADER),+ userId: process.env.MOCK_DEV_USER_ID,+ };}log('createLambdaContext called for request');