pub struct VcsStateChangedMessage {
pub kind: VcsMutationKind,
pub cwd: String,
pub branch: Option<String>,
pub uuid: String,
pub session_id: String,
}Expand description
vcs_state_changed system message — a harness-observed shell command
mutated repository state. A cache-invalidation signal, deliberately
payload-free beyond classification: consumers re-read state (branch, head,
PR status) instead of decoding the event.
Fields§
§kind: VcsMutationKindWhat class of mutation was observed. New kinds may be added — treat an unrecognized kind exactly like a recognized one (something changed).
cwd: StringThe session’s working directory — a hint, not necessarily the mutated
repo’s path (git -C or an inner cd mutates elsewhere).
branch: Option<String>The branch a commit landed on or a push updated. Commit and push events carry it; a command that pushed several branches emits one push event per branch. A best-effort hint: absent whenever attribution is uncertain, and never a required key (CLI 2.1.239+).
uuid: String§session_id: StringTrait Implementations§
Source§impl Clone for VcsStateChangedMessage
impl Clone for VcsStateChangedMessage
Source§fn clone(&self) -> VcsStateChangedMessage
fn clone(&self) -> VcsStateChangedMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more