From 941eb836b0cbb7d9b1d0d9034494eb8800865b2b Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 7 Feb 2026 11:23:23 +0100 Subject: [PATCH] Force data_cache reassignment after mass update Explicitly reassign st.session_state.data_cache after mass update to ensure Streamlit picks up in-place mutations to the batch data. Co-Authored-By: Claude Opus 4.6 --- tab_batch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tab_batch.py b/tab_batch.py index 5937892..9e05936 100644 --- a/tab_batch.py +++ b/tab_batch.py @@ -67,6 +67,7 @@ def _render_mass_update(batch_list, data, file_path, key_prefix): htree.commit(snapshot_payload, f"Mass update: {', '.join(selected_keys)}") data[KEY_HISTORY_TREE] = htree.to_dict() save_json(file_path, data) + st.session_state.data_cache = data st.session_state.ui_reset_token += 1 st.toast(f"Updated {len(target_indices)} sequences", icon="✅") st.rerun()