#23356: feat(slack): pass agent identity via chat:write.customize
gateway
commands
size: XS
Cluster:
Agent Messaging Enhancements
## Summary
- Wire `resolveAgentOutboundIdentity` into all `deliverOutboundPayloads` call sites so agent identity (`name`/`emoji`/`avatar`) is forwarded to channels that support it (e.g. Slack `chat:write.customize`)
- The Slack send path already handles `SlackSendIdentity` and gracefully falls back when the scope is missing — this change just ensures the identity data actually reaches it
- Follows the existing pattern used by the cron isolated-agent runner
**5 call sites updated:**
- `src/auto-reply/reply/route-reply.ts` — main auto-reply flow
- `src/commands/agent/delivery.ts` — CLI agent delivery
- `src/infra/heartbeat-runner.ts` — heartbeat OK + heartbeat delivery (2 calls)
- `src/gateway/server-methods/send.ts` — gateway send method
- `src/gateway/server-node-events.ts` — node event delivery
## Test plan
- [x] `pnpm check` passes (format + lint + types)
- [x] `pnpm build` succeeds
- [x] All 1249 unit tests pass (0 failures)
- [x] Existing `slack.test.ts` tests verify identity forwarding works
- [ ] Manual verification: configure multi-agent setup with `identity.name` + `identity.emoji`, confirm Slack messages show per-agent identity
Closes #23325
Most Similar PRs
#13643: feat(slack): add agent-specific persona support for messages
by cathrynlavery · 2026-02-10
76.6%
#7516: feat(sessions): Auto-inject From:/To: identity headers in agent-to-...
by RusDyn · 2026-02-02
69.0%
#15863: fix: route agent-to-agent Slack messages to bound sessions
by MisterGuy420 · 2026-02-14
67.9%
#6430: feat(protocol): include agent identity in hello-ok handshake response
by astoreyai · 2026-02-01
67.8%
#22485: fix(slack): use threadId from delivery context as threadTs fallback...
by dorukardahan · 2026-02-21
67.4%
#21147: feat(slack): support chat:write.customize for custom bot name/avatar
by bernardclaw · 2026-02-19
67.2%
#11491: feat(slack): allow agents to resolve channel IDs to names and list ...
by Lukavyi · 2026-02-07
66.7%
#9726: feat: add identityDir config for separate identity file location
by rickburn · 2026-02-05
66.4%
#8879: fix(sessions-spawn): resolve target agent's bound accountId for sub...
by gianni-dalerta · 2026-02-04
66.3%
#22982: fix: prevent stale threadId from routing subagent announces to wron...
by unboxed-ai · 2026-02-21
66.1%