rho-coding-agent 1.27.1

A lightweight agent harness inspired by Pi
Documentation
//! The `/hooks` command: reload hook configuration and show the spawn contract.

use super::{App, Entry, InteractiveRuntime};

impl App {
    pub(super) fn execute_hooks_command(
        &mut self,
        agent: &mut InteractiveRuntime,
    ) -> anyhow::Result<()> {
        match agent.reload_hooks() {
            Ok(report) => {
                self.insert_entry(&Entry::Notice(report.render()));
            }
            Err(error) => {
                self.insert_entry(&Entry::Error(format!("could not reload hooks: {error}")));
                self.set_status("hook reload failed");
            }
        }
        Ok(())
    }
}