#3372·CowAgent

[Bug] scheduled skill_call reads \isgroup\ instead of \is_group\, so results to a group are never delivered

Author: aniruddhaadak80Created Sep 30, 2026Updated Sep 30, 2026

English is recommended so global developers can help. 推荐使用英文提交,谢谢 ❤️

  • I'm on the latest version and searched existing issues (incl. closed) — no duplicate.

Environment

Version: current master (commit 08f64f7) OS: any — platform-independent Python: 3.11 / 3.13 (CI matrix) Install: any Channel: any (Feishu / DingTalk / wecom_bot group receivers)

What happened?

A scheduled task of type skill_call aimed at a group is never delivered, because _execute_skill_call reads the group flag from a key the task never sets.

The action key is is_group. All three sibling executors read it correctly:

agent/tools/scheduler/integration.py:776:   is_group = action.get("is_group", False)   # send_message
agent/tools/scheduler/integration.py:902:   is_group = action.get("is_group", False)   # agent_task
agent/tools/scheduler/integration.py:990:   is_group = action.get("is_group", False)   # tool_call
agent/tools/scheduler/integration.py:1069:  is_group = action.get("isgroup", False)    # skill_call  <-- no underscore

Line 1069 is the only place in the file that uses isgroup (the context key is isgroup, set later at 1089 — the two got mixed up). The lookup therefore never matches, is_group is always False, and the Feishu branch takes the private-message path:

python
context["receive_id_type"] = "chat_id" if is_group else "open_id"   # always "open_id"

A receiver that is a group id (oc_...) sent with receive_id_type="open_id" is rejected by the Feishu API, so the skill result is dropped.

Steps to reproduce

A task in tasks.json:

json
{
  "id": "t1",
  "action": {
    "type": "skill_call",
    "call_name": "digest",
    "receiver": "oc_7a1c... (a group chat id)",
    "channel_type": "feishu",
    "is_group": true
  }
}

Expected: the skill runs and its result is delivered to the group (receive_id_type="chat_id").

Actual: the run logs show receive_id_type=open_id, and nothing arrives in the group. The same flag is also read by the delivery path at line 1202 (is_group=context.get("isgroup", False)), so the message is treated as a private reply throughout.

DingTalk is affected the same way — it branches on is_group to pick between the group and single-receiver send paths.

Suggested fix

One word: read action["is_group"], like the other three executors. Worth a test that pins the key the executors agree on, since the two spellings differ only by an underscore.

Logs

[Scheduler] Task t1: Executing skill 'digest' with params {}
[Scheduler] Feishu: receive_id_type=open_id, is_group=False, receiver=oc_7a1c...
[Scheduler] Task t1 executed: skill result sent to oc_7a1c...

The third line claims success — the send is attempted and rejected downstream, so the task reports delivered.