You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: make RUST_CHAT configurable and de-swallow errors (#606)
§4 cleanup:
- The hardcoded `RUST_CHAT` id becomes a `rust_chat_id` field on
`MentionParameters`, read from the `RUST_CHAT_ID` env var with the old
value as the default (behavior unchanged when unset; a non-numeric
value logs a warning and falls back). Threaded into
`handle_rust_matched_mention` via the dispatcher.
- The best-effort `.map_err(|err| error!(...)).ok()` sites in
chat_gpt_handler (Redis context writes), url_summary_handler and
rust_mention_handler (Telegram sends, mention insert) now use
`.inspect_err(|err| warn!(...)).ok()`: warn (not error) since these are
non-fatal, and `inspect_err` keeps the value/error type so call sites
are greppable. Also fixes a mislabeled "Can't insert mention" log that
actually guarded the latest-mention-time query.
No happy-path behavior change. Local gate green (fmt, clippy -D warnings,
unit tests, integration tests compile).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments