mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
test(cron): update _isolate_tick_lock fixture for _get_lock_paths
After PR #13725 replaced the module-level _LOCK_DIR/_LOCK_FILE constants with a dynamic _get_lock_paths() helper, the xdist-isolation fixture needs to patch the function instead of the removed constants.
This commit is contained in:
parent
969bfff449
commit
b014a3d315
3 changed files with 8 additions and 6 deletions
|
|
@ -4090,10 +4090,11 @@ class FeishuAdapter(BasePlatformAdapter):
|
|||
content=payload,
|
||||
uuid_value=str(uuid.uuid4()),
|
||||
)
|
||||
# Detect whether chat_id is an open_id (private message) or a group chat_id.
|
||||
# Feishu API requires receive_id_type="open_id" for user DMs (oc_/ou_ prefix)
|
||||
# and receive_id_type="chat_id" for group chats (ch_ prefix).
|
||||
if chat_id.startswith(("oc_", "ou_")):
|
||||
# Detect whether chat_id is a user open_id (DM) or a chat_id (group).
|
||||
# Feishu API expects receive_id_type="open_id" for user DMs (ou_ prefix)
|
||||
# and receive_id_type="chat_id" for group chats (oc_ prefix, which IS
|
||||
# the chat_id format — see https://open.feishu.cn/document/).
|
||||
if chat_id.startswith("ou_"):
|
||||
receive_id_type = "open_id"
|
||||
else:
|
||||
receive_id_type = "chat_id"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue