Skip to content

feat(telegram): /model command for daily and weekly review models - #109

Closed
a-mandala wants to merge 5 commits into
mainfrom
feature/telegram-model-command
Closed

feat(telegram): /model command for daily and weekly review models#109
a-mandala wants to merge 5 commits into
mainfrom
feature/telegram-model-command

Conversation

@a-mandala

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Telegram /model command to view, change, and reset the daily and weekly review models without restarting the bot.
  • /model shows both effective models (default vs custom); /model daily <model> and /model weekly <model> set them; /model daily|weekly default (or reset) restores the env-configured default. Invalid usage replies with usage text.
  • Overrides are persisted in a new review_model_settings table in the default database (migration 0016) and loaded at startup, so they survive restarts.
  • Review generators resolve the model per generation through shared ModelOverride handles threaded via the runtime configs, so a change applies immediately to journal-service generators and the global delivery sweep workers.

Testing

  • New unit tests: review model settings (persistence, reset, restart reload), command handler replies/usage, /model argument parsing, and generator override resolution (daily + weekly, including shared-state propagation).
  • cargo fmt --check, cargo clippy --all-targets (no new warnings), and the full test suite (598 lib + integration tests) pass locally.

@a-mandala a-mandala closed this Aug 29, 2026
@a-mandala
a-mandala deleted the feature/telegram-model-command branch August 29, 2026 06:58
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