Skip to content

chore(dingtalk): gateway infra — HOME_CHANNEL injection, guard script, misc config#17367

Open
spike2204 wants to merge 1 commit into
NousResearch:mainfrom
spike2204:chore/dingtalk-gateway-infra
Open

chore(dingtalk): gateway infra — HOME_CHANNEL injection, guard script, misc config#17367
spike2204 wants to merge 1 commit into
NousResearch:mainfrom
spike2204:chore/dingtalk-gateway-infra

Conversation

@spike2204

Copy link
Copy Markdown

Summary

Infrastructure and configuration improvements for DingTalk gateway deployments.

Changes

  • gateway/config.py: inject HOME_CHANNEL from DINGTALK_HOME_CHANNEL / FEISHU_HOME_CHANNEL env vars when config.yaml doesn't define one
  • gateway/run.py: add platform display name overrides (DingTalk, WeCom, etc.)
  • hermes_cli/dingtalk_auth.py: change REGISTRATION_SOURCE default from "openClaw" to "DING_DWS_CLAW"
  • scripts/gateway_guard.sh: new auto-restart supervisor script for production deployments
  • .gitignore: add .claude to ignore list
  • tests/hermes_cli/test_dingtalk_auth.py: update assertion for new default

Related

Part of the DingTalk adapter enhancement series — see #12769 for the umbrella PR.

- Hydrate *_HOME_CHANNEL yaml keys into os.environ on gateway boot so
  /sethome survives process restarts (gateway/config.py)
- Platform display-name overrides for /sethome prompt — DingTalk, WeCom,
  etc. render properly instead of naive .title() (gateway/run.py)
- Fix REGISTRATION_SOURCE default (openClaw → DING_DWS_CLAW) in
  hermes_cli/dingtalk_auth.py
- Add scripts/gateway_guard.sh — auto-restart supervisor for the
  gateway process with caffeinate support on macOS
- Add .claude to .gitignore to #
@alt-glitch alt-glitch added type/refactor Code restructuring, no behavior change P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery comp/cli CLI entry point, hermes_cli/, setup wizard platform/dingtalk DingTalk adapter area/config Config system, migrations, profiles labels Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/cli CLI entry point, hermes_cli/, setup wizard comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have platform/dingtalk DingTalk adapter type/refactor Code restructuring, no behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants