Skip to content

Give the Cloud trial Team limits for File Search and code mode - #1599

Merged
helpcodeai merged 9 commits into
mainfrom
feat/team-trial-quotas
Nov 9, 2026
Merged

helpcodeai merged 9 commits into
mainfrom
feat/team-trial-quotas

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

The Cloud trial now has the Team limits for File Search and code mode. People can try everything before they pick a plan. Before checkout, the paywall will tell a workspace above Starter what Starter does not include (follow-up PR). The connector, MCP server and user limits of the trial come from the licence site and change there.

Changes

  • file-search-quotas.ts: the Cloud trial entry is Team's: 3 File Search connectors, 2,000 files, 2 GB, 50 MB per file, 3 manual syncs and the Team File Share. Previously it had Starter limits and no File Share. nextPlan() points a Cloud trial at Enterprise, like the self-hosted evaluation.
  • code-mode-quotas.ts: effectiveCodeModePlan takes a cloud flag. Every Cloud trial is treated as Team for code mode, with or without a card: inline code and 20 saved code tools. A self-hosted trial is unchanged.
  • code-run-quotas.ts: new codeRunQuotaPlan. A trial with a card runs on the Team quotas (5,000 a month, 3 at once). A trial without a card keeps a small budget to protect the shared runner, raised from 100 to 500 runs a month, still 1 at once.
  • LicenseGuardService.codeRunPlanForOrg: used by the run-quota check in dynamic-mcp-tools.ts. When a trial without a card hits its budget, the message says to add a payment card to raise it to 5,000.
  • Docs: docs/connectors/file-search.md (limits table, File Share), docs/code-mode.md (gating and quotas), and a note in docs/plans/file-search.md, whose trial column described the old design.

Cloud vs self-hosted: only Cloud trials change. The self-hosted evaluation already had Team limits for File Search, and its code-mode plan is unchanged.

Type

  • Bug fix
  • New feature
  • Documentation
  • Refactoring
  • Performance improvement
  • Other (describe below)

Testing

  • Added/updated unit tests
  • Tested manually (describe steps below)
  • No tests needed (explain why)

In packages/backend, after npx prisma generate:

  • npx jest --maxWorkers=4 src/license src/file-search src/mcp-server: 73 suites passed, 2 skipped; 1,119 tests passed, 5 skipped.
  • npm run lint: 0 errors. The 11 warnings already exist on main.
  • npx tsc --noEmit -p tsconfig.json: clean.

New or updated specs:

  • every Cloud trial is Team for code mode, the self-hosted trial is not;
  • run quotas for a trial with and without a card;
  • the run-limit message for a trial without a card;
  • the Cloud trial File Search quota and File Share;
  • nextPlan('trial', true) returns Enterprise.

Checklist

  • My code follows the existing code style
  • I have tested my changes locally
  • I have updated documentation (if applicable)
  • All existing tests pass (npm test)
  • This PR has a descriptive title

Related Issues

First step of the Team-trial plan: trial limits = Team. Next: plan-fit warnings before checkout, then the automatic downgrade.

@helpcodeai
helpcodeai enabled auto-merge (squash) November 9, 2026 09:06
@helpcodeai
helpcodeai merged commit 694417e into main Nov 9, 2026
16 checks passed
@helpcodeai
helpcodeai deleted the feat/team-trial-quotas branch November 9, 2026 10:34
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant