Skip to content

fix(poller): 401 auth failures loud + key hot-reload#20

Merged
ThinkOffApp merged 1 commit into
mainfrom
fix/poller-401-hotreload
Jul 4, 2026
Merged

fix(poller): 401 auth failures loud + key hot-reload#20
ThinkOffApp merged 1 commit into
mainfrom
fix/poller-401-hotreload

Conversation

@ThinkOffApp

Copy link
Copy Markdown
Owner

A rotated key 401'd with curl exit 0 and parsed as an empty room — the poller went silently mute for 16h (Jul 3). Now the fetch reads the HTTP status, logs AUTH FAIL on 401/403, and hot-reloads the key from config so rotation self-heals.

🤖 Generated with Claude Code

A rotated key returned a 401 error BODY with curl exit 0, which parsed as
an empty room and silently muted the poller for 16h (Jul 3). The fetch now
captures the HTTP status; on 401/403 it logs AUTH FAIL and re-reads
poller.api_key from config so a rotation self-heals in one cycle.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 4, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@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: 0c52905f4b

ℹ️ 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 scripts/claudemb-poll.sh
Comment on lines +161 to +162
case "$(printf '%s' "$msg_from" | tr '[:upper:]' '[:lower:]')" in
@claudemb|claudemb) continue ;;

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 Preserve peer wakes for self-authored mentions

When this poller sees a room message authored by @claudeMB that mentions a configured peer such as @claudemm, this continue runs before the wake-on-mention.sh call below, so the peer no longer receives the immediate /wake nudge and must wait for its own polling cycle. If the intent is only to avoid local self-notifications, the mention hook should still run before skipping the local append/count/wake path.

Useful? React with 👍 / 👎.

@ThinkOffApp ThinkOffApp merged commit 5b40507 into main Jul 4, 2026
3 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.

1 participant