diff --git a/peak_assistant/streamlit/app.py b/peak_assistant/streamlit/app.py index 801f384..66f13eb 100644 --- a/peak_assistant/streamlit/app.py +++ b/peak_assistant/streamlit/app.py @@ -156,13 +156,12 @@ 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. +# Initialize local context for this user session. +# +# Do not auto-load server-side files into every session because this can +# disclose local context through downstream LLM prompts. 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(