Skip to content

The agent that grows with you

fix(gateway): await mark_async in _branch_open_thread

kshitijk4poor9bc8fed25ce7
diff --git a/gateway/slash_commands_session.py b/gateway/slash_commands_session.py
index c35965b1483..d87e1c1a382 100644
--- a/gateway/slash_commands_session.py
+++ b/gateway/slash_commands_session.py
@@ -1095,5 +1095,5 @@ class GatewaySessionCommandsMixin:
# Discord only answers un-mentioned follow-ups in threads it has participated in.
threads = getattr(adapter, "_threads", None)
if threads is not None:
- threads.mark(str(thread_id))
+ await threads.mark_async(str(thread_id))
return branch_dest_source(source, parent_id=parent_id, thread_id=str(thread_id), title=title)