pub struct SessionTodoStore { /* private fields */ }Expand description
Writes one agent’s checklist into one session’s roster (#8235).
Why: see module docs.
What: every field is fixed at construction — the tool passes only the
list, so it can neither retarget the session nor forge another agent’s
identity.
Test: tests::tool_write_is_visible_through_get_agents.
Implementations§
Trait Implementations§
Source§impl TodoStore for SessionTodoStore
impl TodoStore for SessionTodoStore
Source§fn replace(&self, todos: Vec<TodoItem>) -> Result<(), TodoError>
fn replace(&self, todos: Vec<TodoItem>) -> Result<(), TodoError>
Forward the validated list to SessionRegistry::set_agent_todos.
Why: an RpcError here means the session went away mid-run, which the
model can act on (stop planning, finish) — so it is reported rather
than logged and swallowed. A swallowed failure would be the fail-open
shape #8235 forbids: a success over an unchanged list.
Test: tests::a_vanished_session_is_reported_not_swallowed.
Auto Trait Implementations§
impl Freeze for SessionTodoStore
impl RefUnwindSafe for SessionTodoStore
impl Send for SessionTodoStore
impl Sync for SessionTodoStore
impl Unpin for SessionTodoStore
impl UnsafeUnpin for SessionTodoStore
impl UnwindSafe for SessionTodoStore
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.