huskies: merge 1149 story huskies health chat command — surface gateway, sled, matrix, creds, and build-hash status
This commit is contained in:
@@ -269,6 +269,11 @@ pub fn commands() -> &'static [BotCommand] {
|
||||
description: "List orphaned worktrees (dry run), or `cleanup_worktrees --confirm` to remove them",
|
||||
handler: handle_cleanup_worktrees_fallback,
|
||||
},
|
||||
BotCommand {
|
||||
name: "health",
|
||||
description: "Show subsystem health: gateway, sled, matrix-sync, creds, and build-hash",
|
||||
handler: handle_health_fallback,
|
||||
},
|
||||
BotCommand {
|
||||
name: "new",
|
||||
description: "Bootstrap a new project container (gateway only): `new project <name>`",
|
||||
@@ -446,6 +451,16 @@ fn handle_project_rebuild_fallback(_ctx: &CommandContext) -> Option<String> {
|
||||
None
|
||||
}
|
||||
|
||||
/// Fallback handler for the `health` command when it is not intercepted by the
|
||||
/// async handler in `on_room_message`. In practice this is never called — health
|
||||
/// is detected and handled before `try_handle_command` is invoked. The entry
|
||||
/// exists in the registry only so `help` lists it.
|
||||
///
|
||||
/// Returns `None` to prevent the LLM from receiving "health" as a prompt.
|
||||
fn handle_health_fallback(_ctx: &CommandContext) -> Option<String> {
|
||||
None
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Tests
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user