Skip to content

Smoke-test the monitor extension under a live pi session #30

Description

@arecarn

The monitor extension has never executed inside pi. Everything about it is verified statically or against a stub: tsc, biome, jiti probes with a fake ExtensionAPI, and one real loader import confirming the factory registers the monitor tool, the monitor command and both session hooks. CI never runs pi, so CI cannot close this.

Unverified as a result:

  • whether deliverAs: "followUp" with triggerTurn: true actually wakes an idle session, and whether nextTurn lands where expected
  • how a customType: "monitor" message renders with no registered renderer
  • auto-discovery through the dploy-folded ~/.pi/agent/extensions symlink after inv stow. Inferred from loader.js accepting entry.isDirectory() || entry.isSymbolicLink(), never observed
  • ctx.ui.notify firing from the stored context on the quiet path

Smoke test, roughly two minutes in one interactive session:

  1. uv run inv stow
  2. arm a one-shot: monitor arm "sleep 2; echo hello" -- it should wake the session and report hello
  3. arm a streaming monitor and confirm it does not wake the session per line
  4. /monitor -- both should list with their effective wake value
  5. exit, then confirm no monitor processes survive

Verifying this needs a real interactive TUI session, since the checks are about what appears on screen and when, not about an exit code.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions