Skip to content

The agent that grows with you

fix(kanban): cover remaining add_notify_sub call sites for chat_type (#56580)

张满良c03a06b8d954
diff --git a/hermes_cli/kanban.py b/hermes_cli/kanban.py
index d43ffba2e92..2038d151448 100644
--- a/hermes_cli/kanban.py
+++ b/hermes_cli/kanban.py
@@ -771,6 +771,7 @@ def build_parser(parent_subparsers: argparse._SubParsersAction) -> argparse.Argu
p_nsub.add_argument("task_id")
p_nsub.add_argument("--platform", required=True)
p_nsub.add_argument("--chat-id", required=True)
+ p_nsub.add_argument("--chat-type", default="", help="dm / group / channel (used by wake routing)")
p_nsub.add_argument("--thread-id", default=None)
p_nsub.add_argument("--user-id", default=None)
p_nsub.add_argument(
@@ -2758,6 +2759,7 @@ def _cmd_notify_subscribe(args: argparse.Namespace) -> int:
kb.add_notify_sub(
conn, task_id=args.task_id,
platform=args.platform, chat_id=args.chat_id,
+ chat_type=args.chat_type,
thread_id=args.thread_id, user_id=args.user_id,
notifier_profile=args.notifier_profile or _profile_author(),
)