Skip to content

Tell chat setup users with no licence to activate one - #1448

Merged
helpcodeai merged 2 commits into
mainfrom
fix/chat-setup-no-licence-hint
Nov 2, 2026
Merged

helpcodeai merged 2 commits into
mainfrom
fix/chat-setup-no-licence-hint

Conversation

@helpcodeai

Copy link
Copy Markdown
Contributor

Summary

Found while testing the chat setup end to end on Cloud (claude.ai, workspace with no licence): setup_install_connector was refused because the workspace has no active licence, which is right, but the answer told the user to "Choose a plan with more connectors, or remove a connector." For an empty workspace without a licence neither helps, and Claude itself pointed out that the hint was misleading.

planLimitAnswer now checks the licence usage first. With no licence at all (plan null: ended trial or lapsed plan):

  • an admin is told the workspace has no active licence and gets the licence page link;
  • other members are told to ask an administrator to activate a licence.

The trial and paid-plan answers are unchanged.

Cloud only in practice: checkCanCreateConnector refuses nothing on self-hosted.

Changes

  • packages/backend/src/adapters/connector-setup.service.ts: no-licence branch in planLimitAnswer.
  • packages/backend/src/adapters/connector-setup.service.spec.ts: two new cases; the default getUsage mock now carries plan: 'trial' so the existing cases keep their meaning.

Type

  • Bug fix

Testing

  • Added/updated unit tests (backend tests in CI)
  • Reproduced on Cloud 2026-11-02 with the AnythingMCP directory connector in claude.ai, empty workspace without licence, asking Claude to add Shopify.

@helpcodeai
helpcodeai requested a review from D3nisty as a code owner November 2, 2026 12:27
@helpcodeai
helpcodeai enabled auto-merge (squash) November 2, 2026 12:42
@helpcodeai
helpcodeai merged commit 5b7b34a into main Nov 2, 2026
14 checks passed
@helpcodeai
helpcodeai deleted the fix/chat-setup-no-licence-hint branch November 2, 2026 12:54
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 2, 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