feat(app): plumb resume flag through restart_surface bridge + binding

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-15 16:07:32 +07:00
parent 31c08b5387
commit 375e4c5c92
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -348,8 +348,8 @@ pub async fn apply_preset(state: BridgeState<'_>, workspace_id: String, preset_i
}
#[tauri::command]
pub async fn restart_surface(state: BridgeState<'_>, surface_id: String) -> Result<Value, String> {
data_of(state.request(Cmd::RestartSurface { surface_id: SurfaceId(surface_id) }).await.map_err(|e| e.to_string())?)
pub async fn restart_surface(state: BridgeState<'_>, surface_id: String, resume: bool) -> Result<Value, String> {
data_of(state.request(Cmd::RestartSurface { surface_id: SurfaceId(surface_id), resume }).await.map_err(|e| e.to_string())?)
}
#[tauri::command]