From 08315316b63bde58134897261020a1b63a234360 Mon Sep 17 00:00:00 2001 From: Omkar Gaikwad Date: Sun, 9 Aug 2026 16:34:22 +0000 Subject: [PATCH] chore(viewer): delete the unused state.py Nothing imports it. It is a stale copy of main.py's State: 16 fields against 30, still carrying eval_summaries, and selected_main_tab defaults to "List" rather than "Status". Leaving it is a trap. @me.stateclass registers by class identity, so two decorated State classes are two different state objects to Mesop. The first module to import this one instead of main would get its own state with its own defaults, silently, with no error to trace. --- viewer/state.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 viewer/state.py diff --git a/viewer/state.py b/viewer/state.py deleted file mode 100644 index 66f9229e..00000000 --- a/viewer/state.py +++ /dev/null @@ -1,16 +0,0 @@ -import mesop as me - -@me.stateclass -class State: - selected_directory: str = "" - selected_tab: str = "Dashboard" - conversation_index: int = 0 - eval_summaries: str = "" - eval_id_filter: str = "" - product_filter: str = "" - requester_filter: str = "" - sort_column: str = "date" - sort_descending: bool = True - open_dropdown: str = "" - selected_main_tab: str = "List" - trends_product_filter: str = ""