Repository navigation
feat(licensing): limit conversations on an unlicensed install (OHE-4179) - #1406
Merged
Merged
Conversation
With license enforcement on, an install without a valid license (no license, an ended trial, or a license that can no longer be verified) was held to one user and one organization, but any of its users could start any number of conversations. Such an install now: - can start 50 conversations in its lifetime. Deleted conversations still count. - lets only its first Super Admin start them. An install with no first Super Admin on record lets any Super Admin. The check runs where a conversation starts, and where a client starts a sandbox through the API, because such a client starts its conversations on the sandbox itself. A refusal is a 402 with the error LICENSE_LIMIT_REACHED and the reason, which the automation service reads to mark the run skipped. Nothing changes while enforcement is off, while the first license check is pending, or with a valid license.
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
hieptl
marked this pull request as ready for review
November 17, 2026 02:35
Contributor
|
🚀 Released in 1.95.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
AGENT:
Why
With license enforcement on, an install without a valid license is held to one user and one organization, but nothing limits its conversations. Any of its users can start any number of them, from Canvas, the API, a resolver or an automation.
OHE-4179 asks that an unlicensed install (installed with no license, or a trial that ended) gets a lifetime limit on conversations, and that only its first Super Admin can start them.
Summary
instance_settings.setup_user_id) can start them. An install with no first Super Admin on record lets any Super Admin. Every conversation row counts, deleted ones included, which is the total the usage report sends Customer Center.LiveStatusAppConversationService, which every start goes through (Canvas, API keys, resolvers, Slack, Jira, child conversations, preset automations), and atPOST /api/v1/sandboxes, because a client that starts a sandbox there (a custom automation, the SDK) starts its conversations on the sandbox itself.detail: {"error": "LICENSE_LIMIT_REACHED", "message": "<reason>"}. Canvas shows the message, and the automation service reads the code to skip the run (feat(dispatcher): skip runs the install's license does not allow (OHE-4179) automation#763).Issue Number
OHE-4179
How to Test
Unit tests:
Manual steps:
LICENSE_ENFORCEMENT_ENABLEDunset and no license. Finish the install wizard as the first Super Admin, and add a second user.LICENSE_ENFORCEMENT_ENABLED=trueand restart. Canvas shows the banner about the missing license key.Only the unit tests were run. The manual steps were not run.
Video/Screenshots
N/A. Nothing new in the UI: Canvas shows the reason where it shows any other error from starting a conversation.
Type
Notes
limits.conversationsof a license is still not enforced.POST /api/v1/app-conversations/stream-starthas already answered 200 when the start is refused, so its stream breaks; nothing in Canvas, the automation service or the SDK calls that route.Enterprise server image for this PR: