Skip to content

Commit c3fa245

Browse files
authored
fix display bug in webapp (#440)
1 parent 24aec11 commit c3fa245

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rdagent/log/ui/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,11 @@ def research_window():
518518
# loaded model exp
519519
with c2:
520520
if mem := state.msgs[round]["d.load_experiment"]:
521+
# 'load_experiment' should in 'r' now, but old version trace may in 'd', so we need to check both
522+
# TODO: modify the way to get one message with a specific tag like 'load_experiment' in the future
523+
me: QlibModelExperiment = mem[0].content
524+
tasks_window(me.sub_tasks)
525+
elif mem := state.msgs[round]["r.load_experiment"]:
521526
me: QlibModelExperiment = mem[0].content
522527
tasks_window(me.sub_tasks)
523528

0 commit comments

Comments
 (0)