pub struct DiscoveryQuery {
pub workspace: Option<PathBuf>,
pub harnesses: Vec<HarnessId>,
pub homes: HarnessHomes,
pub query: Option<String>,
pub cursor: Option<String>,
pub limit: Option<usize>,
pub include_topic_candidates: bool,
pub include_child_sessions: bool,
pub root_session_id: Option<String>,
}Expand description
Filters and roots used for one catalog scan.
Fields§
§workspace: Option<PathBuf>Only return sessions whose recorded working directory is this path.
harnesses: Vec<HarnessId>Harnesses to scan. Empty means all built-ins.
homes: HarnessHomesStorage roots to scan.
query: Option<String>Case-insensitive search over harness, id, title, workspace, and model.
cursor: Option<String>Opaque cursor returned by a prior HarnessCatalog::discover_page.
limit: Option<usize>Maximum number of results after newest-first sorting.
include_topic_candidates: boolInclude oldest-first bounded topic candidates for harnesses whose native store does not publish a useful title. Off by default because topics are stable and list clients can retain them across refreshes.
include_child_sessions: boolInclude harness-native child rollouts such as Codex subagents. Off by default because they are parts of a parent conversation, not chats the user independently started. Translation/tree callers can opt in.
root_session_id: Option<String>Restrict an explicit child-inclusive discovery to one root and every descendant linked to it by native lineage. Applied before pagination.
Trait Implementations§
Source§impl Clone for DiscoveryQuery
impl Clone for DiscoveryQuery
Source§fn clone(&self) -> DiscoveryQuery
fn clone(&self) -> DiscoveryQuery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more