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
9 changes: 3 additions & 6 deletions peak_assistant/streamlit/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = ""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve explicit local context input path

Setting local_context to an empty string here removes the only Streamlit code path that ever populates this value, so every runner now receives empty context in normal app usage. In environments that rely on context.txt guidance (including launches using the --context compatibility option), this is a functional regression rather than just disabling automatic injection; the app should still support an explicit, user-controlled way to provide local context.

Useful? React with 👍 / 👎.


# Use the full page instead of a narrow central column
st.set_page_config(
Expand Down
Loading