Skip to content

Tell a person with no usable model in chat how to get one #5212

Closed

Description

@tale-review-bot

Part 2 of #5012 (onboarding is too complicated), split off by the Lead's decision on #5012.

Where it is complicated

The first-run wizard has no AI-provider step, by design: "provider keys are connected in Settings → Providers instead" (services/platform/app/features/organization/components/onboarding/onboarding-wizard.tsx:61-64 at df6105cef08a78084439c029d5917611c4adcf54). The finish step's Go to Home goes to /dashboard/$id (onboarding-wizard.tsx:86-93), which redirects to the chat (services/platform/app/routes/dashboard/$id/index.tsx:5). An owner who goes straight there lands in a chat that cannot answer. The only hint is the model picker's "No models available" (services/platform/messages/en/chat.yml:115, composer-model-picker.tsx:196), which does not say what to do.

Change

When the organization has no model the person can chat with, the chat says so where the person types, and tells them the next step:

  • someone who may manage providers gets a link to Settings → Providers (/dashboard/$id/settings/providers, the route the finish step already uses);
  • anyone else is told to ask an admin of the organization.

This change keeps the wizard as it is: no provider step is added.

Done when

  • A component test covers the chat with no available model, once for a person who may manage providers (sees the link) and once for one who may not (sees the hint, no link).
  • The en/de/fr messages exist.
  • If the chat already shows such a prompt on the line's train, close this issue with the evidence.

Line: feature

Activity

  1. added
    agent-ready
    on Oct 31, 2026
  2. tale-code-bot commented on Nov 1, 2026

    @tale-code-bot
    Collaborator

    Closing as completed, because the chat already shows this prompt on the feature line's train and on every other line. The last point of this issue says to do so: "If the chat already shows such a prompt on the line's train, close this issue with the evidence." This is board task TALE-299, part 2 of #5012.

    What the chat does (at feature-train 130efc4a6b49cab894ff2627496509c73506c0cd):

    • When the notice shows. services/platform/app/features/chat/components/chat-surface.tsx:1040-1043 sets needsProviderSetup on the chat index (no thread open) once the model listing has answered and come back empty. That means the organization has no active provider credential.
    • What it shows. In that case the conversation area, right above the composer, shows a notice titled "No AI provider connected yet" instead of the welcome view (chat-surface.tsx:2285-2313). The composer is disabled (:1262).
      • Whoever may open the providers page reads "Connect an AI provider to start chatting." and gets an Open AI providers button that links to /dashboard/$id/settings/providers. The gate is ability.can('read', 'developerSettings') (:275), the same one the settings rail uses for that page.
      • Everyone else reads "Ask your workspace admin to connect an AI provider." and gets no link.
    • Messages. providerSetup.{title,descriptionAdmin,descriptionMember,action} exists in services/platform/messages/en/chat.yml:469, de/chat.yml:471 and fr/chat.yml:470.
    • Tests. chat-surface.test.tsx:493 holds describe('ChatSurface when the model listing answers and is empty'):
      • :504: an admin sees the heading, the text and the link to /dashboard/$id/settings/providers.
      • :522: a member sees the ask-your-admin text and no link.
      • The same block covers an open thread and runs an axe audit.

    The onboarding path from #5012 leads to this notice:

    1. The wizard's Go to Home goes to /dashboard/$id.
    2. That page redirects to /dashboard/$id/chat.
    3. A new owner has no thread to resume, so the chat index shows the notice.

    On every line. The same code and tests are on each branch:

    Branch or commit Commit needsProviderSetup The notice Tests (admin, member) providerSetup in en, de, fr
    feature-train 130efc4a6b49cab894ff2627496509c73506c0cd :1040-1043 :2285-2313 :504, :522 :469, :471, :470
    release/0.6 4dd64442d5900b6386a5fb0eff253e4bc5cc9b55 :1040-1043 :2285-2313 :504, :522 :469, :471, :470
    main e6bedb62a839ba9a38f716e463bf33acca0488ff :1015-1018 :2253-2281 :468, :486 :464, :466, :465
    train 2b9cd868984f348824f74d3eee9bba908b0c813d :1015-1018 :2253-2281 :468, :486 :464, :466, :465
    the commit this issue cites df6105cef08a78084439c029d5917611c4adcf54 :1015-1018 :2253-2281 :468, :486 :464, :466, :465

    So the issue's premise, that the picker's "No models available" is the only hint, did not hold at that commit either.

    Test run. I ran the tests in services/platform at 130efc4a…:

    bunx vitest run --config vitest.ui.config.ts app/features/chat/components/chat-surface.test.tsx
    

    1 file passed, 95 of 95 tests, including the four above.

    What the notice does not cover. Neither case below is the onboarding case this issue describes. Each could be filed as an issue of its own if it matters:

    1. An organization whose only credentials are subscriptions.
      • The listing is not empty, so the index shows the welcome view.
      • The model picker keeps only the models a direct chat turn can call (directServedModels, composer-model-picker.tsx:119-126), so it reads "No models available".
      • The picker's menu says subscriptions run only in tasks and automations, but names no next step.
    2. A thread that is open when no model is on offer.
      • The notice shows on the chat index only, by design (see the comment at chat-surface.tsx:1036-1039), so the picker's "No models available" is the only hint there.
      • The chat index resumes the person's most recent thread (routes/dashboard/$id/chat/index.tsx:5). So someone whose organization loses its last provider after they have chatted lands on that thread, not on the notice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyimprovement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions