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:
@@ -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]
|
||||
|
||||
@@ -42,6 +42,9 @@ export interface AttachResult {
|
||||
snapshot: string;
|
||||
cols: number;
|
||||
rows: number;
|
||||
cursor_row?: number;
|
||||
cursor_col?: number;
|
||||
stopped?: boolean;
|
||||
}
|
||||
|
||||
export async function attachSurface(
|
||||
@@ -147,8 +150,8 @@ export async function applyPreset(workspaceId: string, presetId: string, slots:
|
||||
return data.surface_ids;
|
||||
}
|
||||
|
||||
export async function restartSurface(surfaceId: string): Promise<void> {
|
||||
await invoke("restart_surface", { surfaceId });
|
||||
export async function restartSurface(surfaceId: string, resume = false): Promise<void> {
|
||||
await invoke("restart_surface", { surfaceId, resume });
|
||||
}
|
||||
|
||||
export async function closeWorkspaceCmd(workspaceId: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user