From fdbcc4dbbe80c09c99aed0064525a19a191920e2 Mon Sep 17 00:00:00 2001 From: DavidJBianco Date: Thu, 23 Apr 2026 08:56:01 -0400 Subject: [PATCH] Disable automatic context.txt injection in Streamlit session --- peak_assistant/streamlit/app.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/peak_assistant/streamlit/app.py b/peak_assistant/streamlit/app.py index 03d8a3e..7dc8552 100644 --- a/peak_assistant/streamlit/app.py +++ b/peak_assistant/streamlit/app.py @@ -156,13 +156,10 @@ logger.debug(f"Received state: {state}") logger.debug(f"Available OAuth states: {[k for k in st.session_state.keys() if k.startswith('oauth_state_')]}") -# Read the local context file if it's not already in the session state. +# Local context should be empty by default to avoid unintentionally sending +# sensitive data from disk to external LLM providers. if "local_context" not in st.session_state: - # Find and load our local context file (used for the agents) - with open("context.txt", "r", encoding="utf-8") as file: - local_context = file.read() - - st.session_state["local_context"] = local_context + st.session_state["local_context"] = "" # Use the full page instead of a narrow central column st.set_page_config(