Commit 355418e
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.1 file changed
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 46 | | |
56 | 47 | | |
57 | 48 | | |
| |||
0 commit comments