Set the agent identity for sessions created by this orchestrator. Called by the CLI hook handler after construction, before dispatching events. This ensures new sessions get the correct agent name (e.g., "claude-code" / "Claude Code") instead of "unknown".
(&mut self, name: impl Into<String>, display_name: impl Into<String>)
| 252 | /// events. This ensures new sessions get the correct agent name |
| 253 | /// (e.g., "claude-code" / "Claude Code") instead of "unknown". |
| 254 | pub fn set_agent(&mut self, name: impl Into<String>, display_name: impl Into<String>) { |
| 255 | self.agent_name = name.into(); |
| 256 | self.agent_display_name = display_name.into(); |
| 257 | } |
| 258 | |
| 259 | /// Returns the repository root path. |
| 260 | pub fn repo_root(&self) -> &Path { |
no outgoing calls