Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6c2ce63
feat: adapt to new AI Studio login flow
bbbugg Feb 20, 2026
7fdacae
feat: add robust WebSocket initialization monitoring and error recovery
bbbugg Feb 20, 2026
ce9dbec
feat: add health monitor initialization and restart logic
bbbugg Feb 20, 2026
de03620
refactor: simplify WebSocket initialization monitoring and improve fl…
bbbugg Feb 20, 2026
216f1a3
refactor: improve WebSocket initialization flow and flag handling
bbbugg Feb 20, 2026
a9d42fc
refactor: enhance WebSocket flag initialization, reuse console listen…
bbbugg Feb 20, 2026
bdd951b
refactor: deprecate WS_PORT env variable, enforce fixed WebSocket por…
bbbugg Feb 20, 2026
2607cbe
chore: remove WS_PORT customization, enforce fixed WebSocket endpoint…
bbbugg Feb 20, 2026
2f16e4f
refactor: replace local logger import with class-level logger in Conf…
bbbugg Feb 20, 2026
d377706
fix: correct target URL and simplify app ID validation
bbbugg Feb 20, 2026
4efffe1
fix: reorder initialization flow with URL validation after popup hand…
bbbugg Feb 20, 2026
3d8f229
fix: skip redundant WebSocket initialization if already completed
bbbugg Feb 20, 2026
46287d9
fix: reset WebSocket flags before re-navigation to prevent stale state
bbbugg Feb 20, 2026
82b80c5
fix: adjust popup handling order to ensure correct URL validation bef…
bbbugg Feb 21, 2026
0c04c6d
chore: filter out expected WebGL not supported warning in logs
bbbugg Feb 21, 2026
f30a41d
fix: replace page reload with navigation to target URL for improved p…
bbbugg Feb 21, 2026
d645ce1
fix: add random mouse movement simulation during wait to enhance huma…
bbbugg Feb 21, 2026
c639fce
refactor: implement navigation verification and retry mechanism for c…
bbbugg Feb 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ PORT=7860
HOST=0.0.0.0

# WebSocket server port for internal browser communication
# ⚠️ DEPRECATED: This environment variable is no longer supported in the current version
# The WebSocket port is now fixed at 9998 and cannot be customized
WS_PORT=9998

# ===================================
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,14 @@ sudo docker compose down

#### 🗒️ 其他配置

| 变量名 | 描述 | 默认值 |
| :------------------------- | :---------------------------------------------------------------------------------- | :------- |
| `STREAMING_MODE` | 流式传输模式。`real` 为真流式,`fake` 为假流式。 | `real` |
| `FORCE_THINKING` | 强制为所有请求启用思考模式。 | `false` |
| `FORCE_WEB_SEARCH` | 强制为所有请求启用网络搜索。 | `false` |
| `FORCE_URL_CONTEXT` | 强制为所有请求启用 URL 上下文。 | `false` |
| `CAMOUFOX_EXECUTABLE_PATH` | Camoufox 浏览器的可执行文件路径(支持绝对或相对路径)。仅在手动下载浏览器时需配置。 | 自动检测 |
| 变量名 | 描述 | 默认值 |
| :------------------------- | :---------------------------------------------------------------------------------- | :--------- |
| `STREAMING_MODE` | 流式传输模式。`real` 为真流式,`fake` 为假流式。 | `real` |
| `FORCE_THINKING` | 强制为所有请求启用思考模式。 | `false` |
| `FORCE_WEB_SEARCH` | 强制为所有请求启用网络搜索。 | `false` |
| `FORCE_URL_CONTEXT` | 强制为所有请求启用 URL 上下文。 | `false` |
| `CAMOUFOX_EXECUTABLE_PATH` | Camoufox 浏览器的可执行文件路径(支持绝对或相对路径)。仅在手动下载浏览器时需配置。 | 自动检测 |
| ~~`WS_PORT`~~ | ~~WebSocket 服务器端口。~~ **⚠️ 已弃用:此环境变量不再支持,端口固定为 9998。** | ~~`9998`~~ |

### 🧠 模型列表配置

Expand Down
1 change: 1 addition & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ This endpoint forwards requests to the official Gemini API format endpoint.
| `FORCE_WEB_SEARCH` | Force enable web search for all requests. | `false` |
| `FORCE_URL_CONTEXT` | Force enable URL context for all requests. | `false` |
| `CAMOUFOX_EXECUTABLE_PATH` | Path to the Camoufox browser executable (supports both absolute and relative paths). Only required if manually downloaded. | Auto-detected |
| ~~`WS_PORT`~~ | ~~WebSocket server port.~~ **⚠️ Deprecated: This environment variable is no longer supported. Port is fixed at 9998.** | ~~`9998`~~ |

### 🧠 Model List Configuration

Expand Down
2 changes: 1 addition & 1 deletion scripts/client/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Logger = {

class ConnectionManager extends EventTarget {
// [BrowserManager Injection Point] Do not modify the line below.
// This line is dynamically replaced by BrowserManager.js based on WS_PORT environment variable.
// WebSocket endpoint is now fixed at ws://127.0.0.1:9998 and cannot be customized.
constructor(endpoint = "ws://127.0.0.1:9998") {
super();
this.endpoint = endpoint;
Expand Down
Loading