Expand description
Concrete ToolEventSink forwarding tool-dispatch hooks to
SessionRegistry::record_tool_* (#2056).
Why: #2055 built the emission plumbing; #2056’s agent_loop extension
built the hook (agent_loop::ToolEventSink) that CAN call it. This is the
small piece of glue that actually wires the two together for a specific
session, kept in task (the daemon-execution layer) rather than
agent_loop (the generic engine) or session (which must not depend
upward on the engine) — see agent_loop::sink’s module docs for the
layering rationale.
What: SessionToolEventSink holds an Arc<SessionRegistry> and the
target session_id; each hook forwards to the matching record_tool_*
call, logging (not propagating — the sink trait’s methods return ())
any failure, which in practice only happens if the session vanished
mid-run (e.g. a race with daemon shutdown).
Test: task::sink::tests::*.
Structs§
- Session
Tool Event Sink - Forwards
AgentLooptool-dispatch hooks to a specific session’sSessionRegistry::record_tool_*calls (#2056).