Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src-tauri/src/commands/acp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use std::sync::Arc;
use tauri::{AppHandle, State};

use crate::services::acp::{
make_composite_key, AcpRunningSession, AcpService, AcpSessionInfo, AcpSessionRegistry,
GooseAcpManager,
make_composite_key, search_sessions_via_exports, AcpRunningSession, AcpService, AcpSessionInfo,
AcpSessionRegistry, GooseAcpManager, SessionSearchResult,
};

const DEPRECATED_PROVIDER_IDS: &[&str] = &["claude-code", "codex", "gemini-cli"];
Expand Down Expand Up @@ -166,6 +166,17 @@ pub async fn acp_list_sessions(app_handle: AppHandle) -> Result<Vec<AcpSessionIn
manager.list_sessions().await
}

/// Search session message content via exported Goose sessions.
#[tauri::command]
pub async fn acp_search_sessions(
app_handle: AppHandle,
query: String,
session_ids: Vec<String>,
) -> Result<Vec<SessionSearchResult>, String> {
let manager = GooseAcpManager::start(app_handle).await?;
search_sessions_via_exports(&manager, &query, &session_ids).await
}

/// Load an existing session, replaying its messages as Tauri events.
///
/// The goose binary sends `SessionNotification` events for each message in
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub fn run() {
commands::acp::acp_send_message,
commands::acp::acp_cancel_session,
commands::acp::acp_list_sessions,
commands::acp::acp_search_sessions,
commands::acp::acp_load_session,
commands::acp::acp_list_running,
commands::acp::acp_cancel_all,
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/src/services/acp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ pub(crate) mod goose_serve;
mod manager;
mod payloads;
mod registry;
mod search;
mod writer;

pub(crate) use goose_serve::resolve_goose_binary;
pub use manager::{AcpSessionInfo, GooseAcpManager};
pub use registry::{AcpRunningSession, AcpSessionRegistry};
pub use search::{search_sessions_via_exports, SessionSearchResult};
pub use writer::TauriMessageWriter;

use std::path::PathBuf;
Expand Down
Loading
Loading