$npx -y skills add vercel-labs/open-agents --skill remove-demo-limitsRemoves Open Harness hosted demo restrictions from a fork. Use when a maintainer wants to remove managed-template trial caps, hosted deployment gating, or "deploy your own" limits. Triggers on "remove demo limits", "remove trial limits", "remove hosted restrictions", "open this u
| 1 | Remove the managed-template trial restrictions with the smallest coherent change. |
| 2 | |
| 3 | ## Goal |
| 4 | Make the fork behave like a normal self-hosted deployment: |
| 5 | - no trial session cap |
| 6 | - no trial message cap |
| 7 | - no hosted-only restriction errors |
| 8 | - no hosted-demo delete restrictions |
| 9 | - no dead helper code or stale tests |
| 10 | |
| 11 | ## Inspect first |
| 12 | Read these files before editing: |
| 13 | - `apps/web/lib/managed-template-trial.ts` |
| 14 | - `apps/web/app/api/sessions/route.ts` |
| 15 | - `apps/web/app/api/chat/route.ts` |
| 16 | - `apps/web/app/api/sessions/[sessionId]/chats/[chatId]/messages/[messageId]/route.ts` |
| 17 | - `apps/web/app/api/sessions/route.test.ts` |
| 18 | - `apps/web/app/api/chat/route.test.ts` |
| 19 | - `apps/web/app/api/sessions/[sessionId]/chats/[chatId]/messages/[messageId]/route.test.ts` |
| 20 | |
| 21 | Then search for these identifiers and strings to catch older or newer variants: |
| 22 | - `isManagedTemplateTrialUser` |
| 23 | - `MANAGED_TEMPLATE_TRIAL_` |
| 24 | - `deploy-your-own` |
| 25 | - `open-agents.dev` |
| 26 | - `vercel.com` |
| 27 | - `This hosted deployment includes` |
| 28 | - `does not allow message deletion` |
| 29 | |
| 30 | ## Required changes |
| 31 | 1. Remove the guards that block session creation, chat messages, or message deletion for managed-template users. |
| 32 | 2. If the auth callback still blocks non-Vercel emails on hosted deployments, remove that restriction too. |
| 33 | 3. Delete `apps/web/lib/managed-template-trial.ts` if it becomes unused; otherwise simplify it so no dead exports remain. |
| 34 | 4. Remove or update tests that assert the hosted caps, delete restrictions, or hosted-only auth gating. |
| 35 | 5. Do not add feature flags, env toggles, or new dependencies. Prefer deleting the restriction code outright. |
| 36 | 6. Keep unrelated auth, session ownership, and sandbox behavior unchanged. |
| 37 | |
| 38 | ## Verification |
| 39 | This repo uses Bun. After the edits: |
| 40 | - run `bun run ci` |
| 41 | - if a failure is pre-existing, say that clearly and separate it from your changes |
| 42 | |
| 43 | ## Output |
| 44 | Report: |
| 45 | - which restrictions were removed |
| 46 | - which files changed |
| 47 | - verification result |