Repository navigation
fix(security,docs): bind to 127.0.0.1 by default, vendor frontend libs, clarify privacy and requirements - #14
Conversation
…s, clarify privacy and requirements
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1e6fdd25af
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
| - **Database location:** `data/cbt_sessions.db` (single-file SQLite database). | ||
| - **Backups:** Copy `data/cbt_sessions.db` to back up all diary entries, tests, and conversation memory. | ||
| - **Data deletion:** Delete `data/cbt_sessions.db` and click **Reset all data** in Settings to clear browser `localStorage`. |
There was a problem hiding this comment.
Add the documented data-reset control
Users following this deletion procedure cannot clear the browser copy of their sensitive records: a repo-wide search finds no Reset all data control and no localStorage.clear() implementation, while the Settings modal only provides language, model, TTS, and reminder settings. Consequently, deleting the SQLite file does not complete the promised deletion, and the remaining local sleep, assessment, activity, mood, and crisis-plan data may be synchronized back after restart; either implement the control or document a real browser-storage deletion procedure.
Useful? React with 👍 / 👎.
|
|
||
| uvicorn.run(app, host="0.0.0.0", port=8000) | ||
| host = os.getenv("HOST", os.getenv("CBT_HOST", "127.0.0.1")) | ||
| port = int(os.getenv("PORT", os.getenv("CBT_PORT", "8000"))) |
There was a problem hiding this comment.
Keep launcher ports in sync with the PORT override
When PORT or CBT_PORT is set and the app is started through either advertised launcher, this moves Uvicorn to the overridden port while start_cbt_assistant.command and start_cbt_assistant_windows.ps1 still release, health-check, and open hard-coded port 8000. The macOS launcher therefore reports a failed startup and does not open the app, while the Windows launcher terminates the healthy server after its port-8000 check times out; the launchers need to honor the same override or clear it when launching.
Useful? React with 👍 / 👎.
Bind server to 127.0.0.1 by default for public Wi-Fi safety, vendor Lucide and Chart.js locally, and clarify system requirements, data sovereignty, crisis safety, and license in docs.