Commit 89ac7ec
fix(plugin): provision on first prompt — /reload-plugins never fires SessionStart
Installing mid-session left the plugin looking alive (skills/commands/MCP
hot-load) while silently capturing nothing: provisioning was wired only to
SessionStart, which /reload-plugins does not fire, so ensure-ultan.sh never
ran and every per-turn hook no-op'd on the missing binary — until the next
fresh session.
The UserPromptSubmit hook now falls back to the provisioner when the binary
is absent: first prompt after a mid-session install kicks off the background
install (instant return, atomic-lock idempotent — repeat prompts exit on the
lock). SessionStart wiring is unchanged for the fresh-session path.
README quick-start now tells the truth about /reload-plugins, and the
bin/ultan wrapper's not-provisioned message says "send any message" instead
of "start a new session".
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c6a0bae commit 89ac7ec
3 files changed
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments