Skip to content

Commit bc9b1e2

Browse files
committed
fix JAI compatibility issue
1 parent 17f9fca commit bc9b1e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jupyter_server_documents/rooms/yroom_events_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ def emit_room_event(
4747
"path": path,
4848
"action": action
4949
}
50+
51+
# TODO: Jupyter AI requires the `message` field to be set to 'Room
52+
# initialized' on 'initialize' room events. Remove this when the
53+
# Jupyter AI issue is fixed.
54+
if action == "initialize":
55+
event_data["message"] = "Room initialized"
5056
self._event_logger.emit(schema_id=JSD_ROOM_EVENT_URI, data=event_data)
5157
except:
5258
self.log.exception("Exception occurred when emitting a room event.")

0 commit comments

Comments
 (0)