fix(hooks): expose typed gateway startup context

This commit is contained in:
Vincent Koc
2026-04-22 11:21:27 -07:00
parent 3e24898690
commit 6d003cbcee
9 changed files with 262 additions and 216 deletions

View File

@@ -462,6 +462,7 @@ AI CLI backend such as `codex-cli`.
- `message_sending`: returning `{ cancel: false }` is treated as no decision (same as omitting `cancel`), not as an override.
- `message_received`: use the typed `threadId` field when you need inbound thread/topic routing. Keep `metadata` for channel-specific extras.
- `message_sending`: use typed `replyToId` / `threadId` routing fields before falling back to channel-specific `metadata`.
- `gateway_start`: use `ctx.config`, `ctx.workspaceDir`, and `ctx.getCron?.()` for gateway-owned startup state instead of relying on internal `gateway:startup` hooks.
### API object fields