Skip to content

Commit ee0d1f7

Browse files
SonAIengineclaude
andcommitted
fix: 앱 기본 모드를 Connected(xgen.x2bee.com)로 변경 — 프론트 API 통신 실패 해결
- settings.json 없을 때 기본 Standalone → Connected 모드로 변경 - 기본 serverUrl: https://xgen.x2bee.com - 원인: Standalone 모드에서 프론트가 IPC로 로컬 Rust에 API 요청 → 해당 API 없음 → 실패 - Connected 모드에서는 프론트가 HTTP로 xgen.x2bee.com에 직접 요청 - 캔버스 경로도 /canvas로 수정 (기존 /main?view=canvas) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a400f4b commit ee0d1f7

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src-tauri/src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,15 @@ async fn auto_init_app_mode(app: &tauri::AppHandle) -> Result<(), String> {
2828

2929
let config_path = config_dir.join("settings.json");
3030

31-
// Check if settings file exists
31+
// Check if settings file exists — 없으면 기본 Connected 모드 (xgen.x2bee.com)
3232
if !config_path.exists() {
33-
log::info!("No settings file found, using default Standalone mode");
33+
log::info!("No settings file found, defaulting to Connected mode (xgen.x2bee.com)");
34+
let state = app.state::<Arc<AppState>>();
35+
let default_url = "https://xgen.x2bee.com".to_string();
36+
let mut mode = state.app_mode.write().await;
37+
*mode = state::AppMode::Connected { server_url: default_url.clone() };
38+
let mut gateway = state.gateway_url.write().await;
39+
*gateway = Some(default_url);
3440
return Ok(());
3541
}
3642

0 commit comments

Comments
 (0)