Skip to content

fix(engine): size the connect plan at 10M api_calls - #563

Merged
khaliqgant merged 2 commits into
mainfrom
fix/connect-plan-10m
Oct 18, 2026
Merged

khaliqgant merged 2 commits into
mainfrom
fix/connect-plan-10m

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Part of AgentWorkforce/cloud#5293, following review on AgentWorkforce/cloud#5296.

Problem

connect allowed 3M api_calls a month while Cloud allowed rooms to live 30 days. A joined seat polls about 22 times a minute, so a full 10-seat room makes about 220 calls/min, about 317k a day: roughly 9.5M over 30 days, past 3M. Cloud now caps rooms at 7 days (AgentWorkforce/cloud#5334), which bounds a full room at about 2.2M; 10M is the approved limit and leaves headroom for faster polling or retries.

Change

  • PLAN_LIMITS.connect.api_calls: 3,000,000 → 10,000,000 (equal to pro). Agents (10), messages (100k), files (1 GiB) and rate (1,200/min) are unchanged and stay below pro.
  • The "between free and pro" test now allows api_calls to equal pro; the other metrics stay strictly below.
  • README table and changelogs ([Unreleased - Patch]).

Approved by Khaliq (10M and a 7-day room cap).

Verification

$ cd packages/engine && npx vitest run src/providers/__tests__/static-entitlements.test.ts
 Test Files  1 passed (1)   Tests  3 passed (3)

🤖 Generated with Claude Code


Note

Low Risk
Single numeric entitlement change with test and doc updates; no auth or billing logic beyond static plan limits.

Overview
Raises the connect workspace plan monthly api_calls quota from 3M to 10M in PLAN_LIMITS, matching pro so Relay Connect rooms with heavy inbox polling (e.g. a full 10-seat room for a 7-day cap) stay under plan limits. Agents, messages, file caps, and rate_per_min are unchanged and still sit below pro.

StaticEntitlementsProvider tests now expect 10M for connect and treat api_calls as allowed to equal pro while other metrics remain strictly between free and pro. Root and engine changelogs ([Unreleased - Patch]) and the README plan table document the new limit.

Reviewed by Cursor Bugbot for commit 0557067. Bugbot is set up for automated code reviews on this repo. Configure here.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Local full engine suite and tsc were not usable on this machine: Could not locate the bindings file for better-sqlite3 under Node 26.8.1, and Cannot find module '@relaycast/types' because the workspace packages are not built in this fresh worktree. CI's Lint, Build & Test is the gate.


Agent Relay sessions

  • claude session 3e515a05 · opened via gh pr create · last active 2026-10-18

A Connect room can hold 10 seats for up to 7 days, and each joined seat
polls its inbox every few seconds. At 3M calls a full room would run out
of quota before it expires, so connect now matches pro's monthly call
budget while keeping its lower agent, message, file and rate limits.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

@greptile-apps greptile-apps 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.

khaliqgant has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T14:02:29.505739Z 763c734 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.

@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6383832a-ec67-47a4-b913-236aff859921
📥 Commits

Reviewing files that changed from the base of the PR and between 7fe4f09 and 763c734.

📒 Files selected for processing: 5
  • CHANGELOG.md
  • README.md
  • packages/engine/CHANGELOG.md
  • packages/engine/src/providers/__tests__/static-entitlements.test.ts
  • packages/engine/src/providers/static-entitlements.ts
+------------------------------------------------------+
| Multiplying to perform multi-threaded bug detection. |
+------------------------------------------------------+
  \
   \     /)/)
        ( '')
        /  |
      o(___)
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@capy-ai capy-ai 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.

Capy found no issues.

Open in Capy

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

@greptile-apps greptile-apps 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.

khaliqgant has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@capy-ai capy-ai 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.

Capy found no issues.

Open in Capy

@khaliqgant
khaliqgant merged commit d0733a3 into main Oct 18, 2026
8 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