Skip to content

Conversation

Ritikavarshney-hub
Copy link

Which issue does this PR close?

Rationale for this change

This change introduces Anonymous Mode to enhance user privacy. Users may prefer to interact with the mental health companion app without storing any sensitive data (like chats, mood entries, or journals). Adding this feature helps build trust and ensures compliance with privacy-first principles.

What changes are included in this PR?

Added a toggle in the sidebar for "Anonymous Mode"

Updated main.py, chat_interface.py, and utils.py to conditionally disable:

Loading/saving of conversation history

Any future journaling or mood tracking data persistence (if implemented)

When enabled:

No conversations or inputs are saved

Chat history is not loaded from disk

Visual indicator appears confirming anonymous mode is ON

-->

@Ritikavarshney-hub
Copy link
Author

kindly take a look at this pull request

@eccentriccoder01
Copy link
Owner

eccentriccoder01 commented Aug 1, 2025

Great work @Ritikavarshney-hub, please fetch the latest changes in the main and provide a working deployment link of your PR and relevant screenshots. Thanks!

@AquarlisPrime
Copy link

Hello, I would like to work on this issue if open / available.

@eccentriccoder01
Copy link
Owner

eccentriccoder01 commented Aug 3, 2025

@AquarlisPrime This is a Pull Request opened by and assigned to somebody else and not an Issue. Kindly review the existing unassigned Issues in the Issues Section, or open one of your own, and we will duly assign it to you. Reach out to us in case of any doubts!

@Ritikavarshney-hub
Copy link
Author

i made changes in the main

@eccentriccoder01
Copy link
Owner

Great @Ritikavarshney-hub, now please provide a working deployment link of your updated fork or PR. Thanks!

@eccentriccoder01
Copy link
Owner

The main is rapidly being updated too so kindly take note of that and stay updated with the latest changes fetched. And provide the Streamlit Cloud deployment link of your updated fork and relevant screenshots. Looking forward to your response!

@Ritikavarshney-hub
Copy link
Author

Ritikavarshney-hub commented Aug 4, 2025 via email

@eccentriccoder01
Copy link
Owner

Take your time @Ritikavarshney-hub, no hurries. Looking forward to your PR!

@Ritikavarshney-hub
Copy link
Author

Ritikavarshney-hub commented Aug 4, 2025 via email

@eccentriccoder01
Copy link
Owner

@Ritikavarshney-hub Thanks for reaching out, and sorry for the delay, I got caught up with a lot of stuff since yesterday. Based on what I know from the recent changes in the app, the conversations are stored using the save_conversations() and load_conversations() functions in core/utils.py to handle reading/writing the conversations to a JSON file (data/conversations.json).

For further info regarding this you can go through PR #20

And in general Streamlit uses st.session_state to store information, including chat history, for the duration of a single browser session.

Feel free to ask me or @pkbros about further confusions if any or if any guidance is needed. Looking forward to your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anonymous Mode (No Data Stored)
3 participants