Skip to content

settings.conf (was preferences.conf) and "settings" throughout, check_config permission check, docs say push mode - #43

Merged
robdevops merged 4 commits into
mainfrom
claude/kind-newton-ad0z2q
Oct 16, 2026
Merged

robdevops merged 4 commits into
mainfrom
claude/kind-newton-ad0z2q

Conversation

@robdevops

Copy link
Copy Markdown
Owner

What this changes

preferences.conf is now settings.conf

  • The file, its template (defaults/settings.conf, tidied: shorter lines, neater comments, same keys and defaults), the CI check, finbot.service, compose.yaml and every doc.
  • Upgrade: at start, an old <DATA_DIR>/preferences.conf is renamed to settings.conf (said on stderr), unless a settings.conf is already there; if the rename fails it warns. Without this an upgrade would have quietly ignored existing settings. Tests cover it.

"settings", not "preferences"

  • In the code (config.prefs is config.settings, Prefs is Settings, read_preferences is read_settings, PREFERENCE_KEYS is SETTING_KEYS, ...), messages, tests, docs and CLAUDE.md. The old file name preferences.conf stays only where the upgrade renames it.

util/check_config.py

  • Tidied (lines under 100 columns, a shared helper for the startup values).
  • New: warns, on stderr, when finbot.env is not mode 600 owned by root:root, naming the chmod/chown fix. A warning, not an error, so Docker's bind-mounted env files (often owned by the host user) still start. Install docs and finbot.service now say 600 root:root.

Docs

  • "HTTP mode" is "push mode" in the guides, README.md, compose.yaml and defaults/finbot.env (code comments, tests and one startup warning still say "HTTP mode").

Testing

  • 551 tests pass locally (.venv/bin/python -m unittest discover -s tests -b), after merging origin/main (the merge of /compare takes up to 8 tickers #42).
  • Not run on a real data directory or in Docker.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX


Generated by Claude Code

…, neater comments)

An old preferences.conf in the data dir is renamed to settings.conf at start, so
no setting is lost.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
…and docs; check_config warns when finbot.env is not 600 root:root; check_config tidied

config.prefs is config.settings, Prefs is Settings, read_preferences is read_settings and so on. The
legacy file name preferences.conf stays only where an upgrade renames it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
… defaults/finbot.env)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JVEkZofdPjQ4jtXFKipeUX
@robdevops
robdevops merged commit 8e76c14 into main Oct 16, 2026
4 checks passed
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.

2 participants