pub struct WorkspaceIndexStatus {
pub workspace_id: WorkspaceId,
pub workspace_id_short: String,
pub workspace_id_full: String,
pub source_roots: Vec<WorkspaceSourceRootStatus>,
}Expand description
Aggregate status of a logical workspace, returned by
daemon/workspaceStatus { workspace_id }.
The daemon walks every WorkspaceKey whose workspace_id matches
the request and aggregates them into this view. A workspace is
“partially evicted” when at least one source root reports
WorkspaceState::Evicted but at least one other reports any
non-Evicted state — see Self::partially_evicted.
STEP_12 (workspace-aware-cross-repo, 2026-04-26) introduced the
hex-string telemetry fields workspace_id_short (16 hex chars,
display) and workspace_id_full (64 hex chars, machine identity).
Scripts consuming this payload should key on workspace_id_full —
the 32-byte workspace_id is the canonical bytewise identity but
the hex string is what humans / shell tooling read. The two hex
fields are derived from workspace_id; they are NOT independent
inputs — they exist purely for ergonomic JSON consumption.
Fields§
§workspace_id: WorkspaceIdIdentity the request matched against.
workspace_id_short: StringSTEP_12 — short (16 hex) form of workspace_id, suitable for
CLI columns and human-scale log lines. Display only.
workspace_id_full: StringSTEP_12 — full (64 hex) form of workspace_id. Machine
identity. Cross-process script consumers MUST key on this
rather than the short form to avoid the (remote, non-zero)
possibility of short-hex collisions across hundreds of
thousands of distinct workspaces.
source_roots: Vec<WorkspaceSourceRootStatus>Per-source-root status rows, sorted by source_root for
deterministic CLI / test output.
Implementations§
Source§impl WorkspaceIndexStatus
impl WorkspaceIndexStatus
Sourcepub fn partially_evicted(&self) -> bool
pub fn partially_evicted(&self) -> bool
Whether at least one source root is in WorkspaceState::Evicted
while at least one other is not. false for fully-loaded or
fully-evicted aggregates.
Trait Implementations§
Source§impl Clone for WorkspaceIndexStatus
impl Clone for WorkspaceIndexStatus
Source§fn clone(&self) -> WorkspaceIndexStatus
fn clone(&self) -> WorkspaceIndexStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more