@lobehub/chat 1.121.0 โ†’ 1.121.1

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,32 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.121.1](https://github.com/lobehub/lobe-chat/compare/v1.121.0...v1.121.1)
6
+
7
+ <sup>Released on **2025-09-03**</sup>
8
+
9
+ #### ๐Ÿ› Bug Fixes
10
+
11
+ - **misc**: Fix socks5 proxy not work problem, fix virtuaso minheight was null.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix socks5 proxy not work problem, closes [#9053](https://github.com/lobehub/lobe-chat/issues/9053) ([b13563c](https://github.com/lobehub/lobe-chat/commit/b13563c))
21
+ - **misc**: Fix virtuaso minheight was null, closes [#9055](https://github.com/lobehub/lobe-chat/issues/9055) ([ef79721](https://github.com/lobehub/lobe-chat/commit/ef79721))
22
+
23
+ </details>
24
+
25
+ <div align="right">
26
+
27
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
28
+
29
+ </div>
30
+
5
31
  ## [Version 1.121.0](https://github.com/lobehub/lobe-chat/compare/v1.120.7...v1.121.0)
6
32
 
7
33
  <sup>Released on **2025-09-03**</sup>
@@ -31,6 +31,7 @@
31
31
  "dependencies": {
32
32
  "electron-updater": "^6.6.2",
33
33
  "electron-window-state": "^5.0.3",
34
+ "fetch-socks": "^1.3.2",
34
35
  "get-port-please": "^3.1.2",
35
36
  "pdfjs-dist": "4.10.38"
36
37
  },
@@ -1,4 +1,5 @@
1
1
  import { NetworkProxySettings } from '@lobechat/electron-client-ipc';
2
+ import { SocksProxies, socksDispatcher } from 'fetch-socks';
2
3
  import { Agent, ProxyAgent, getGlobalDispatcher, setGlobalDispatcher } from 'undici';
3
4
 
4
5
  import { createLogger } from '@/utils/logger';
@@ -91,8 +92,29 @@ export class ProxyDispatcherManager {
91
92
  */
92
93
  static createProxyAgent(proxyType: string, proxyUrl: string) {
93
94
  try {
94
- // undici ็š„ ProxyAgent ๆ”ฏๆŒ http, https ๅ’Œ socks5
95
- return new ProxyAgent({ uri: proxyUrl });
95
+ if (proxyType === 'socks5') {
96
+ // ่งฃๆž SOCKS5 ไปฃ็† URL
97
+ const url = new URL(proxyUrl);
98
+ const socksProxies: SocksProxies = [
99
+ {
100
+ host: url.hostname,
101
+ port: parseInt(url.port, 10),
102
+ type: 5,
103
+ ...(url.username && url.password
104
+ ? {
105
+ password: url.password,
106
+ userId: url.username,
107
+ }
108
+ : {}),
109
+ },
110
+ ];
111
+
112
+ // ไฝฟ็”จ fetch-socks ๅค„็† SOCKS5 ไปฃ็†
113
+ return socksDispatcher(socksProxies);
114
+ } else {
115
+ // undici ็š„ ProxyAgent ๆ”ฏๆŒ http, https
116
+ return new ProxyAgent({ uri: proxyUrl });
117
+ }
96
118
  } catch (error) {
97
119
  logger.error(`Failed to create proxy agent for ${proxyType}:`, error);
98
120
  throw new Error(
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix socks5 proxy not work problem, fix virtuaso minheight was null."
6
+ ]
7
+ },
8
+ "date": "2025-09-03",
9
+ "version": "1.121.1"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "features": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.121.0",
3
+ "version": "1.121.1",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot 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",
@@ -55,21 +55,21 @@ const ByTimeMode = memo(() => {
55
55
  const groupContent = useCallback(
56
56
  (index: number) => {
57
57
  if (index === 0) return <div style={{ height: 1 }} />;
58
-
59
58
  const topicGroup = groups[index];
60
59
  return <TopicGroupItem {...topicGroup} />;
61
60
  },
62
61
  [groups],
63
62
  );
64
63
 
65
- // const activeIndex = topics.findIndex((topic) => topic.id === activeTopicId);
66
-
67
64
  return (
68
65
  <GroupedVirtuoso
69
66
  groupContent={groupContent}
70
67
  groupCounts={groupCounts}
71
68
  itemContent={itemContent}
72
69
  ref={virtuosoRef}
70
+ style={{
71
+ minHeight: groupCounts.length === 1 ? '0px' : '200px',
72
+ }}
73
73
  />
74
74
  );
75
75
  });