Skip to content

Post-reboot verification after homelab_piReboot #170

Closed

Description

@TMHSDigital

Summary

piReboot returns "Reboot command sent." and nothing confirms the node came back with the same containers running.

Where

  • mcp-server/src/tools/piReboot.ts:31-48
  • mcp-server/src/prompts.ts:30-41 (pre-reboot prompt only)

Details

There is a pre-reboot checklist prompt but no post-reboot counterpart.

Impact

A node that fails to boot, or a container with restart: no, goes unnoticed.

Suggested fix

Add a post-reboot-verify prompt (poll homelab_sshTest, then serviceHealth, failed systemd units and piStatus throttle) and include the pre-reboot container list in piReboot's response so the prompt can compare.

Open question: an optional bounded waitForReturn flag, or prompt-only?

Acceptance criteria

  • Prompt registered and read-only
  • piReboot response includes the container list

Getting started

  • Relevant files: mcp-server/src/tools/piReboot.ts, mcp-server/src/prompts.ts
  • How to run tests: cd mcp-server && npm install && npm test (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
  • Conventions: see CLAUDE.md and CONTRIBUTING.md

Filed by repo-audit/full-audit at 636fefb. Severity: low. Effort: S. audit-key: enhancement|mcp-server/src/tools/piReboot.ts|homelab_piReboot

Activity

  1. added
    enhancement
    severity: low
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 19, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in bbef611: piReboot lists the containers running before the reboot and points to the new read-only post-reboot-verify prompt (sshTest retries, serviceHealth compared against the optional containers argument, failed systemd units, piStatus uptime/throttle). Open question resolved as prompt-only, per the acceptance criteria. Verified with a piReboot handler test and prompt tests (listing, comparison text, no state-changing calls); build, typecheck, Vitest and structure tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementseverity: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions