Replace per-conversation agent creation with single Hub agent model. Messages from channels are routed to the existing Hub agent via agent.write(), and replies are sent back through the lastRoute context. Desktop and Gateway paths call clearLastRoute() so channel replies stop when the user switches input surface. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| agent | ||
| channels | ||
| client | ||
| console | ||
| gateway | ||
| hub | ||
| shared | ||
| index.ts | ||