Commit 309348f
Fix sessionStart/chatStart hook race condition
sessionStart was fired in a fire-and-forget future* after
deliver-plugins-resolved!, allowing chatStart (which waits on
await-plugins-resolved!) to run before sessionStart completed.
Now sessionStart runs synchronously before deliver-plugins-resolved!,
guaranteeing it completes before any chatStart hook can fire.
🤖 Generated with [eca](https://eca.dev)
Co-Authored-By: eca-agent <git@eca.dev>1 parent 43478e4 commit 309348f
1 file changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | 136 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
0 commit comments