Skip to content

fix(security,docs): bind to 127.0.0.1 by default, vendor frontend libs, clarify privacy and requirements - #14

Merged
KazKozDev merged 1 commit into
mainfrom
fix-privacy-security-docs
Sep 4, 2026
Merged

KazKozDev merged 1 commit into
mainfrom
fix-privacy-security-docs

Conversation

@KazKozDev

Copy link
Copy Markdown
Owner

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.

@KazKozDev
KazKozDev merged commit afac907 into main Sep 4, 2026
1 check passed
@KazKozDev
KazKozDev deleted the fix-privacy-security-docs branch September 4, 2026 18:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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".

Comment thread README.md

- **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`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Comment thread backend/server.py

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")))

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 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 👍 / 👎.

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.

1 participant