mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-11-25 17:38:32 +00:00
8ed9fdaf2f
The mod asked `pad session should-arm` once, at the session's first use of Pad, which is before any consent. A session that opted in afterwards with /pad:connect had no path to a stream: it never appeared in Chat and got no pushes. The on-skill-invoke monitor that was meant to cover it does not start in a session where the skill is invoked as a slash command. The mod now asks again when a Bash `pad session arm` returns, however the skill was reached (typed, or dispatched from natural language). It starts the stream only if should-arm now says yes and none is running; the wrapper's lock keeps the two start paths from streaming twice, and /pad:disconnect still ends the stream when the wrapper sees the withdrawn consent. Tests cover every shape of the arm command, the non-arming commands, a second arm, two arms in flight, an arm that did not take effect, and disconnect then reconnect. Claude-Session: https://claude.ai/code/session_0191CBGV25QRQMk6aiqDz6LJ