Skip to content

Discord chat: the search answer waits for Discord to be ready - #444

Merged
TripleU613 merged 1 commit into
mainfrom
discord-chat-defer-timing
Nov 25, 2026
Merged

TripleU613 merged 1 commit into
mainfrom
discord-chat-defer-timing

Conversation

@TripleU613

Copy link
Copy Markdown
Owner

Summary

On prod, /search stayed on "thinking…". Sidekiq ran the answer job before Discord had received the forum's deferred response, so editing the original message returned 404 Unknown Webhook. The job now runs 2 seconds after the response and, on a 404, tries up to 3 more times 2 seconds apart, well inside the token's 15 minutes.

Affected module(s)

  • Discord chat

Test plan

New job specs: a retry on 404, and stopping after the last attempt.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BUGDaR7qv2d8CuVp7UGSTs

Run straight away, the job that answers /search and /guide reached Discord
before the forum's "thinking" response had, so there was no message to
edit (404 Unknown Webhook) and the member was left on "thinking". It now
waits two seconds and tries a few more times on a 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BUGDaR7qv2d8CuVp7UGSTs
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T05:45:58.079031Z 6aee56a PR opened
🔒 Security Review ✅ Completed 2026-11-25T05:47:38.913267Z 6aee56a PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@TripleU613
TripleU613 merged commit 071b22c into main Nov 25, 2026
8 checks passed
@TripleU613
TripleU613 deleted the discord-chat-defer-timing branch November 25, 2026 05:56
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