fix(agent-team): handle real slack_bolt event envelope + map thread replies; bind start invoker #26

Merged
amoussa1229 merged 2 commits from fix/agent-team-slack-inbound-envelope into main 2026-06-22 19:30:48 +00:00
Showing only changes of commit ae5aa020f3 - Show all commits

View file

@ -660,6 +660,14 @@ def _cmd_start(args: argparse.Namespace, *, out: Any) -> int:
either way.
"""
coordinator = _build_coordinator(args)
# start_task runs the clarifier graph to the first human gate IN THIS PROCESS,
# and the clarifier calls Claude (assess_confidence). The invoker is a
# process-local binding, so a running daemon does not help this CLI process —
# bind the real subscription invoker here, mirroring Coordinator.serve(), or
# start_task fails with "claude_invoke has no invoker bound".
from agent_team.invoker import bind_subscription_invoker
bind_subscription_invoker()
coordinator.setup()
thread_id = coordinator.start_task(
task_text=args.task, transport_name=args.transport