@lobehub/lobehub 2.0.0-next.12 → 2.0.0-next.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 2.0.0-next.13](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.12...v2.0.0-next.13)
6
+
7
+ <sup>Released on **2025-11-02**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix image prompt form.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix image prompt form, closes [#9995](https://github.com/lobehub/lobe-chat/issues/9995) ([799e6fd](https://github.com/lobehub/lobe-chat/commit/799e6fd))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ## [Version 2.0.0-next.12](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.11...v2.0.0-next.12)
6
31
 
7
32
  <sup>Released on **2025-11-02**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix image prompt form."
6
+ ]
7
+ },
8
+ "date": "2025-11-02",
9
+ "version": "2.0.0-next.13"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.12",
3
+ "version": "2.0.0-next.13",
4
4
  "description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -73,7 +73,7 @@ const PromptInput = ({ showTitle = false }: PromptInputProps) => {
73
73
  };
74
74
 
75
75
  const handleKeyDown = (e: KeyboardEvent<HTMLTextAreaElement>) => {
76
- if (e.key === 'Enter' && !e.shiftKey) {
76
+ if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) {
77
77
  e.preventDefault();
78
78
  if (!isCreating && value.trim()) {
79
79
  handleGenerate();
@@ -80,7 +80,10 @@ export const createLambdaContext = async (request: NextRequest): Promise<LambdaC
80
80
  const isMockUser = process.env.ENABLE_MOCK_DEV_USER === '1';
81
81
 
82
82
  if (process.env.NODE_ENV === 'development' && (isDebugApi || isMockUser)) {
83
- return { userId: process.env.MOCK_DEV_USER_ID };
83
+ return {
84
+ authorizationHeader: request.headers.get(LOBE_CHAT_AUTH_HEADER),
85
+ userId: process.env.MOCK_DEV_USER_ID,
86
+ };
84
87
  }
85
88
 
86
89
  log('createLambdaContext called for request');