We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833112a commit 7ee0270Copy full SHA for 7ee0270
shiny/ui/_chat.py
@@ -1107,16 +1107,13 @@ def update_user_input(
1107
}
1108
)
1109
1110
- _utils.run_coro_hybrid(
1111
- self._session.send_custom_message(
1112
- "shinyChatMessage",
1113
- {
1114
- "id": self.id,
1115
- "handler": "shiny-chat-update-user-input",
1116
- "obj": obj,
1117
- },
1118
- )
1119
+ msg = {
+ "id": self.id,
+ "handler": "shiny-chat-update-user-input",
+ "obj": obj,
+ }
+
+ self._session._send_message_sync({"custom": {"shinyChatMessage": msg}})
1120
1121
def set_user_message(self, value: str):
1122
"""
0 commit comments