Skip to content

Commit cbe05ac

Browse files
author
whitekernel
committed
[ADD] War room chat topics — expose topic_id on trace-log serializer
1 parent 588f29e commit cbe05ac

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

source/app/business/war_room_chat.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ def list_trace_log(war_room_id, limit=None):
972972

973973
threads_on = _threads_supported()
974974
pin_on = _pin_supported()
975+
topics_on = _topics_supported()
975976
columns = [
976977
WarRoomChatMessage.message_id,
977978
WarRoomChatMessage.war_room_id,
@@ -995,6 +996,12 @@ def list_trace_log(war_room_id, limit=None):
995996
columns.append(WarRoomChatMessage.parent_message_id)
996997
if pin_on:
997998
columns.append(WarRoomChatMessage.is_pinned)
999+
# Trace entries carry their topic so the SPA can auto-switch the
1000+
# stream filter when the operator clicks the sidebar entry —
1001+
# otherwise a decision posted into a topic the operator isn't
1002+
# currently viewing looks like a dead click.
1003+
if topics_on:
1004+
columns.append(WarRoomChatMessage.topic_id)
9981005

9991006
from sqlalchemy import or_
10001007
filters = [

0 commit comments

Comments
 (0)