fix(agent-team): read SLACK_CHANNEL_ID, aligning code with deploy doc + systemd
run-team.py read os.environ['SLACK_CHANNEL'] while DEPLOY-R720.md and the coordinator systemd unit both document SLACK_CHANNEL_ID; the mismatch would silently default the live Slack transport channel to empty. Standardize on SLACK_CHANNEL_ID (decision locked 2026-06-18).
This commit is contained in:
parent
75d9d6c3d4
commit
a645f9c745
1 changed files with 2 additions and 2 deletions
|
|
@ -522,7 +522,7 @@ def _build_transport(args: argparse.Namespace) -> Any:
|
|||
``--help``, and ledger commands never need a token):
|
||||
|
||||
* ``slack`` -> :func:`build_live_slack_transport` over ``SLACK_BOT_TOKEN`` /
|
||||
``SLACK_CHANNEL``.
|
||||
``SLACK_CHANNEL_ID``.
|
||||
* ``github`` -> :func:`build_live_github_transport` over ``GITHUB_TOKEN`` and
|
||||
the issue thread ``GITHUB_OWNER`` / ``GITHUB_REPO`` /
|
||||
``GITHUB_ISSUE_NUMBER``. This is the §3.3.1 human-gate I/O only (post an
|
||||
|
|
@ -540,7 +540,7 @@ def _build_transport(args: argparse.Namespace) -> Any:
|
|||
if args.transport == "slack":
|
||||
from agent_team.transport.slack_live import build_live_slack_transport
|
||||
|
||||
channel = os.environ.get("SLACK_CHANNEL", "")
|
||||
channel = os.environ.get("SLACK_CHANNEL_ID", "")
|
||||
return build_live_slack_transport(channel)
|
||||
if args.transport == "github":
|
||||
from agent_team.transport.github_live import build_live_github_transport
|
||||
|
|
|
|||
Reference in a new issue