diff --git a/packages/desktop/src-tauri/src/opencode_auth.rs b/packages/desktop/src-tauri/src/opencode_auth.rs index e21fb5aa..633ab363 100644 --- a/packages/desktop/src-tauri/src/opencode_auth.rs +++ b/packages/desktop/src-tauri/src/opencode_auth.rs @@ -95,22 +95,4 @@ pub async fn remove_provider_auth(provider_id: &str) -> Result { Ok(true) } -/// Get provider auth entry -pub async fn get_provider_auth(provider_id: &str) -> Result> { - let auth = read_auth().await?; - Ok(auth - .as_object() - .and_then(|obj| obj.get(provider_id)) - .cloned()) -} - -/// List all provider IDs with auth -pub async fn list_provider_auths() -> Result> { - let auth = read_auth().await?; - - Ok(auth - .as_object() - .map(|obj| obj.keys().cloned().collect()) - .unwrap_or_default()) -} diff --git a/packages/ui/src/lib/opencode/client.ts b/packages/ui/src/lib/opencode/client.ts index f5f64ce1..b33c3bc7 100644 --- a/packages/ui/src/lib/opencode/client.ts +++ b/packages/ui/src/lib/opencode/client.ts @@ -473,6 +473,7 @@ class OpencodeService { async abortSession(id: string): Promise { const response = await this.client.session.abort({ path: { id }, + query: this.currentDirectory ? { directory: this.currentDirectory } : undefined, throwOnError: true, }); return Boolean(response.data);