Skip to content

Commit 8c2561e

Browse files
committed
chore(env): add DIRECT_LAUNCH to example
1 parent efb8942 commit 8c2561e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ ONLY_COLLECT_CURRENT_USER_ATTACHMENTS=false
7575
# 启动模式 (normal, headless, virtual_display, direct_debug_no_browser)
7676
LAUNCH_MODE=normal
7777

78+
# 快速启动
79+
DIRECT_LAUNCH=true
80+
7881
# =============================================================================
7982
# API 默认参数配置
8083
# =============================================================================
@@ -204,4 +207,4 @@ USER_INPUT_END_MARKER_SERVER=__USER_INPUT_END__
204207
# 流超时日志状态配置
205208
STREAM_MAX_INITIAL_ERRORS=3
206209
STREAM_WARNING_INTERVAL_AFTER_SUPPRESS=60.0
207-
STREAM_SUPPRESS_DURATION_AFTER_INITIAL_BURST=400.0
210+
STREAM_SUPPRESS_DURATION_AFTER_INITIAL_BURST=400.0

launcher/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def _resolve_auth_file_path(self):
454454
if DIRECT_LAUNCH:
455455
selected_profile = available_profiles[0]
456456
self.effective_active_auth_json_path = selected_profile["path"]
457-
logger.info(f" 直接启动模式:自动选择第一个可用认证文件: {selected_profile['name']}")
457+
logger.info(f" 快速启动:自动选择第一个可用认证文件: {selected_profile['name']}")
458458
else:
459459
print("-" * 60 + "\n 找到以下可用的认证文件:", flush=True)
460460
for i, profile in enumerate(available_profiles):

0 commit comments

Comments
 (0)