mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
docs(coding-agent): fix event bus docs - handlers persist, remove redundant note
This commit is contained in:
@@ -200,9 +200,7 @@ const unsubscribe = pi.events.on("other:event", (data) => {
|
||||
});
|
||||
```
|
||||
|
||||
Events are session-scoped. Use namespaced channel names like `"toolname:event"` to avoid collisions.
|
||||
|
||||
Handler errors (sync and async) are caught and logged.
|
||||
Event handlers persist across session switches (registered once at tool load time). Use namespaced channel names like `"toolname:event"` to avoid collisions. Handler errors (sync and async) are caught and logged.
|
||||
|
||||
### Sending Messages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user