pub struct ShellCwdMessage {
pub cwd: String,
pub uuid: String,
pub session_id: String,
}Expand description
system/shell_cwd — the folder that a main-thread Bash or PowerShell call
that did not fail left its shell in, whether or not it moved. Sent only to
a host that marked a hook matcher replacedByFrame: 'shell_cwd', before
the call’s result and before its PostToolUse hooks; Claude Code does not
wait for the host. Not sent for a subagent’s call or a call served for
another machine’s session (CLI 2.1.327+).
Fields§
§cwd: StringThe cwd a PostToolUse hook on this call is given. A call that
overlapped another reports its own folder, so the last frame need not
say where the next command starts. The model’s own cd moves it, so
treat it as data.
uuid: String§session_id: StringTrait Implementations§
Source§impl Clone for ShellCwdMessage
impl Clone for ShellCwdMessage
Source§impl Debug for ShellCwdMessage
impl Debug for ShellCwdMessage
Source§impl<'de> Deserialize<'de> for ShellCwdMessage
impl<'de> Deserialize<'de> for ShellCwdMessage
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
impl Eq for ShellCwdMessage
Source§impl PartialEq for ShellCwdMessage
impl PartialEq for ShellCwdMessage
Source§impl Serialize for ShellCwdMessage
impl Serialize for ShellCwdMessage
impl StructuralPartialEq for ShellCwdMessage
Auto Trait Implementations§
impl Forget for ShellCwdMessage
impl Freeze for ShellCwdMessage
impl Move for ShellCwdMessage
impl RefUnwindSafe for ShellCwdMessage
impl Send for ShellCwdMessage
impl Sync for ShellCwdMessage
impl Unpin for ShellCwdMessage
impl UnsafeUnpin for ShellCwdMessage
impl UnwindSafe for ShellCwdMessage
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