Private
Public Access
0
0

Revert "refactor(history_message): migrate HistoryMessage consumers to direct dict access (Phase 4)"

This reverts commit 2ba0aaae3c.
This commit is contained in:
2026-06-25 19:03:43 -04:00
parent d5ab25df1f
commit 5e2d0eb7aa
2 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -7791,11 +7791,7 @@ def _handle_history_logic_result(app: "App") -> Result[bool]:
)
if not changed and len(current.disc_entries) > 0:
last_curr = current.disc_entries[-1]
last_prev = app._last_ui_snapshot.disc_entries[-1]
curr_content = last_curr['content'] if 'content' in last_curr else ''
prev_content = last_prev['content'] if 'content' in last_prev else ''
if curr_content != prev_content:
if current.disc_entries[-1].get('content') != app._last_ui_snapshot.disc_entries[-1].get('content'):
changed = True
if changed: