Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions peak_assistant/streamlit/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading