pub struct SessionMetadataRecordContextChangeResult {}Expand description
Notify the session that its working directory context has changed. Emits a session.context_changed event so consumers (telemetry, OTel tracker, ACP, the timeline UI) can react. Use this when the host has detected a cwd/branch/repo change outside the session’s normal lifecycle (e.g., after a shell command in interactive mode). For a local session, a report whose cwd diverges from the session’s current working directory is ignored (the call still succeeds but records nothing and emits no event); move a local session’s working directory via metadata.setWorkingDirectory instead.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SessionMetadataRecordContextChangeResult
impl<'de> Deserialize<'de> for SessionMetadataRecordContextChangeResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SessionMetadataRecordContextChangeResult
impl RefUnwindSafe for SessionMetadataRecordContextChangeResult
impl Send for SessionMetadataRecordContextChangeResult
impl Sync for SessionMetadataRecordContextChangeResult
impl Unpin for SessionMetadataRecordContextChangeResult
impl UnsafeUnpin for SessionMetadataRecordContextChangeResult
impl UnwindSafe for SessionMetadataRecordContextChangeResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more