mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-10-26 06:19:49 +00:00
977afa2b9d
Dave: "the plugin should not be doing anything when a session is started." session.start now only registers /pad-pane and restores the pane. It no longer runs `pad session register` / `should-arm`, no longer spawns pad-monitor.sh, and no longer starts the 5s refresh timer, which now runs only while the pane is open. wake() runs once per session, on the first pad Bash command, a Pad MCP tool call, or opening the pane. The first pad command waits for registration (never for should-arm), because register mints the worker id that leases key on. A .pad.toml push.auto_arm opt-in is therefore read at first use. Tests: session start runs no process and asks for no timer; non-pad Bash wakes nothing; wake runs once; an MCP tool wakes it; registration happens before the first pad command runs. Prose swept (skill, monitor script, CLAUDE.md, registry comments); docs/plugin-releases.md gets the stuck-0.3.x remedy. Claude-Session: https://claude.ai/code/session_01EZ6hZzQiytCeBxXrtCWcVd