Skip to content

Commit 355418e

Browse files
authored
fix(runtime): drop spurious "agents" license warning on agent run (CopilotKit#5251)
The v2 `agent/run` handler (`packages/runtime/src/v2/runtime/handlers/handle-run.ts`) logged: ``` [CopilotKit Runtime] Warning: "agents" feature is not licensed. Visit copilotkit.ai/pricing ``` on **every** agent run whenever a `licenseChecker` was present. ## Why remove it - **It can never pass.** `checkFeature("agents")` resolves against `@copilotkit/license-verifier`, whose license catalog defines no `"agents"` feature id. `isFeatureEnabled` returns `false` for any unknown feature before it ever consults the license, so the warning fires for every customer regardless of plan (free, dev, or enterprise). ## Scope - Removes only the warning block. - `runtime.licenseChecker` remains wired (`createLicenseChecker` in `core/runtime.ts`) and is still consumed by `get-runtime-info` for license status reporting — so this does not touch any actual licensing/status behavior. - No tests asserted this warning.
2 parents 64fb343 + d13f944 commit 355418e

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

packages/runtime/src/v2/runtime/handlers/handle-run.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ export async function handleRunAgent({
4343
configureAgentForRequest({ runtime, request, agentId, agent });
4444
await attachIntelligenceEnterpriseLearning({ runtime, request, agent });
4545

46-
if (
47-
runtime.licenseChecker &&
48-
!runtime.licenseChecker.checkFeature("agents")
49-
) {
50-
console.warn(
51-
'[CopilotKit Runtime] Warning: "agents" feature is not licensed. Visit copilotkit.ai/pricing',
52-
);
53-
}
54-
5546
const input = await parseRunRequest(request);
5647
if (input instanceof Response) {
5748
return input;

0 commit comments

Comments
 (0)