Commit Graph

13 Commits

Author SHA1 Message Date
Alex Knight e4ff7c1620 fix: Discord read/search timeout, session-key fallback, and gateway execution mode (#73521)
* fix: Discord read/search timeout, session-key fallback, and gateway execution mode

- Add 15s timeout to readMessagesDiscord and searchMessagesDiscord so they
  fail fast instead of hanging indefinitely (#73431)
- Fall back to CommandTargetSessionKey in dispatchReplyFromConfig when
  SessionKey is empty, so Discord inbound message:received hooks fire
  reliably (#73431, refs #33038)
- Add resolveExecutionMode to Discord channel actions routing read/search
  through gateway timeout path, matching Telegram's pattern (#73431)

* fix: move timeout to fetch layer, drop send.messages wrapper

Inject AbortSignal.timeout into the Discord proxy-request-client fetch
wrapper so every Discord REST call gets a 15s timeout at the HTTP level.
This replaces the Promise.race wrapper in send.messages.ts — cleaner,
covers all calls, and actually aborts the TCP connection.

* fix: remove unused callerController variable in proxy-request-client test

* fix: remove unnecessary mergeAbortSignal helper
2026-04-28 21:46:05 +10:00
Peter Steinberger 87ac8b0456 refactor(discord): use Carbon request client for proxy fetch 2026-04-26 10:20:49 +01:00
Peter Steinberger 439f353cf6 fix(discord): bridge undici multipart types 2026-04-25 06:18:10 +01:00
TC500 52ebdabcfd fix(discord): use undici form data for multipart uploads 2026-04-25 06:18:10 +01:00
Peter Steinberger d014472ab8 refactor: dedupe discord record guard 2026-04-07 00:21:12 +01:00
Peter Steinberger 8d095147b4 fix: restore check gate 2026-04-06 15:20:03 +01:00
Vincent Koc 5c1b1eb169 fix(check): repair current main type drift 2026-04-06 13:56:57 +01:00
Peter Steinberger a8f4c50f18 fix(discord): tolerate carbon request option additions 2026-04-06 13:56:01 +01:00
Vincent Koc 5fa166ed11 fix(check): repair status report typing drift 2026-04-06 13:34:08 +01:00
Peter Steinberger d43ac5d14c fix(discord): restore carbon beta 2026-04-06 13:01:22 +01:00
Peter Steinberger e8cbc1ee8a fix(discord): support carbon ratelimit signature drift 2026-04-05 14:11:43 +01:00
Peter Steinberger c731c1e61f fix(discord): sync proxy request client with carbon 2026-04-05 14:07:32 +01:00
Peter Steinberger d70162864a chore(deps): update direct dependencies 2026-04-05 13:33:16 +01:00