Skip to content

[codex] extend ai router timeout#22

Merged
0x4007 merged 1 commit into
mainfrom
codex/extend-ai-router-timeout
May 15, 2026
Merged

[codex] extend ai router timeout#22
0x4007 merged 1 commit into
mainfrom
codex/extend-ai-router-timeout

Conversation

@0x4007

@0x4007 0x4007 commented May 15, 2026

Copy link
Copy Markdown
Member

Summary

Extends the Cloudflare router timeout for ai.ubq.fi service routes so long-running model requests can complete through the custom domain.

Root Cause

ai.ubq.fi is served through ubq.fi-router, not directly by the Deno Deploy app. The router proxied service traffic with a hardcoded 6 second timeout, then returned 502 Upstream error on timeout. Direct calls to https://ai-ubq-fi.ubiquity-dao.deno.net bypassed that router and succeeded for OCR requests taking 8-13 seconds.

Changes

  • Adds explicit router timeout constants.
  • Gives ai and preview-ai service routes a 120 second proxy timeout.
  • Uses a 30 second default for other service routes.
  • Adds test coverage for the timeout policy.

Validation

  • bun install --frozen-lockfile --no-progress
  • bun run type-check
  • bun test

@0x4007 0x4007 marked this pull request as ready for review May 15, 2026 07:52
@coderabbitai

coderabbitai Bot commented May 15, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@0x4007 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 56 minutes and 19 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 75cafcd0-e1b1-46f9-a860-981d55cfb7a0

📥 Commits

Reviewing files that changed from the base of the PR and between df2137b and b5b27a2.

📒 Files selected for processing (2)
  • src/worker.ts
  • tests/worker-routing.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/extend-ai-router-timeout

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@0x4007

0x4007 commented May 15, 2026

Copy link
Copy Markdown
Member Author

@codex review

@0x4007 0x4007 merged commit 91bebfb into main May 15, 2026
3 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

ℹ️ 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".

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