pub struct ConversationResetMessage {
pub new_conversation_id: String,
pub uuid: String,
pub session_id: String,
}Expand description
Emitted when the conversation is reset mid-stream (e.g. /clear sent as
user input). Identity semantics, measured live against CLI 2.1.232 —
two traps here:
- The session id rotates. After this frame the same process re-inits
and every subsequent frame carries a NEW
session_id; both the old and new ids get real transcript files on disk. A consumer keying a live stream’s transcript by its first-seen session id will mis-attribute everything after a reset — treat this frame as a session-identity boundary and adopt the nextsysteminit’s id. new_conversation_idis not the successor session id. In live measurement it matched nothing: not the post-resetsession_id, no transcript file, never referenced by any later frame. Do not key on it.
Pinned by conversation_reset_rotates_the_session_id in the live
integration tests.
Fields§
§new_conversation_id: StringA fresh id announced for the new conversation. Not observed to
match the post-reset session_id or anything else on the wire or
disk — see the type-level docs before using.
uuid: String§session_id: StringThe OLD session id — the identity being retired by this reset.
Trait Implementations§
Source§impl Clone for ConversationResetMessage
impl Clone for ConversationResetMessage
Source§fn clone(&self) -> ConversationResetMessage
fn clone(&self) -> ConversationResetMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConversationResetMessage
impl Debug for ConversationResetMessage
Source§impl<'de> Deserialize<'de> for ConversationResetMessage
impl<'de> Deserialize<'de> for ConversationResetMessage
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 ConversationResetMessage
impl RefUnwindSafe for ConversationResetMessage
impl Send for ConversationResetMessage
impl Sync for ConversationResetMessage
impl Unpin for ConversationResetMessage
impl UnsafeUnpin for ConversationResetMessage
impl UnwindSafe for ConversationResetMessage
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